Just another Perl shrine | |
PerlMonks |
Re^2: Possible precedence issue with control flow operatorby LanX (Saint) |
on Jan 13, 2020 at 18:48 UTC ( [id://11111371]=note: print w/replies, xml ) | Need Help?? |
A return is evaluated in the context of the sub's caller. so this variant
is safer (resp. only correct) if it's supposed to be a scalar.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|