You're not doing anything with '$v +| 0b00010000'. Were you looking for something like '+|='? (Which I think should work.)
On Thu, Oct 4, 2018 at 2:58 PM ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > I am trying to come up with something like += > > $ p6 'my $v = 32; $v += 2; say $v;' > 34 > > to replace > > $ p6 'my $v = 0b00100000; $v = $v +| 0b00010000; say $v;' > 48 > > > 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) > > 32 > > Where is my goof? > > Many thanks, > -T > -- brandon s allbery kf8nh allber...@gmail.com