Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: I fear my code is unreadableby Boldra (Deacon) |
on May 06, 2008 at 15:46 UTC ( [id://684987]=note: print w/replies, xml ) | Need Help?? |
I've adopted it because I saw it saves a loop iteration.
The second version there is now actually broken. It works if you add parens, so:
ref () ? @$_ : $_
In Section
Seekers of Perl Wisdom
|
|