develooper Front page | perl.perl6.users | Postings from February 2019

shift left syntax?

Thread Next
From:
Todd Chester via perl6-users
Date:
February 8, 2019 06:20
Subject:
shift left syntax?
Message ID:
6a39ac9c-3b77-4872-22e2-07b93735ee39@zoho.com
Hi All,

Is this the only way to shift left?

       $i = $i +< 0x01

$ p6 'my int32 $i=0x00005DAE; say $i.base(0x10); $i = $i +< 0x01; say 
$i.base(0x10);'

5DAE
BB5C


Does we have any of those fancy += ~= ways of doing it?

Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About