G'day Bod,
When you encounter this sort of issue, you'll often find using B::Deparse, to see how Perl interprets your code, will help.
$ perl -MO=Deparse,-p -e 'return $x or $y' ((return $x) or $y); -e syntax OK $ perl -MO=Deparse,-p -e 'return $x || $y' (return ($x || $y)); -e syntax OK
— Ken
In reply to Re: Useless use of string in return statement
by kcott
in thread Useless use of string in return statement
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |