In such cases B::Deparse is your friend
perl -MO=Deparse,-p -e 'my ($not_foo) = context() // print "Whoops"' (my($not_foo) = (context() // print('Whoops')));
Used -p to add extra parens to highlight precedence.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: Odd (to me) case of wrongly guessing context
by LanX
in thread Odd (to me) case of wrongly guessing context
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |