in reply to Re: Possible precedence issue with control flow operator
in thread Possible precedence issue with control flow operator

When you're trying to suss out precedence problems the "-p" flag to B::Deparse can be useful to get it to shove in explicit parens everywhere.

$ perl -MO=Deparse,-p -e "sub test { return int(rand(2)) or print 'Nop +e' }" sub test { ((return int(rand(2))) or print('Nope')); } -e syntax OK

The cake is a lie.
The cake is a lie.
The cake is a lie.