Front page | perl.perl6.users |
Postings from October 2018
October 4, 2018 18:58
Message ID: firstname.lastname@example.org
I am trying to come up with something like +=
$ p6 'my $v = 32; $v += 2; say $v;'
$ p6 'my $v = 0b00100000; $v = $v +| 0b00010000; say $v;'
But I obviously have something wrong:
$ p6 'my $v = 0b00100000; $v +| 0b00010000; say $v;'
WARNINGS for -e:
Useless use of "+|" in expression "$v +| 0b00010000"
in sink context (line 1)
Where is my goof?