The stupid question is the question not asked | |
PerlMonks |
Re^2: tr/// on a listby GrandFather (Saint) |
on Sep 14, 2007 at 22:37 UTC ( [id://639098]=note: print w/replies, xml ) | Need Help?? |
Because map operates on an alias of each element you don't need to assign the result of the map anywhere:
However map in a void context is frowned on so it would be more usual to use for/foreach as a statement modifier:
DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|