Just another Perl shrine | |
PerlMonks |
Re^4: Useless use of string in return statementby haukex (Archbishop) |
on Apr 13, 2021 at 15:50 UTC ( [id://11131198]=note: print w/replies, xml ) | Need Help?? |
Not to mention that return $a ? $a : $b; can always* be written as return $a || $b; Nitpick: $a and $b should not be understood as stand-ins for "anything", since @a || @b is not the same as @a ? @a : @b, since the former imposes scalar context on @a (and not on @b).
In Section
Seekers of Perl Wisdom
|
|