When in doubt about what exactly the precedence will be, B::Deparse is your friend.
$ perl -MO=Deparse,-b,-p -e 'my $o = mysub() || print STDERR "WHY U NO + WORK\n";' (my $o = (mysub() || print(STDERR "didnt work\n")));
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re^3: Returned value from subroutine is 1 when returning ""
by Fletch
in thread Returned value from subroutine is 1 when returning ""
by fidesachates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |