There's more than one way to do things | |
PerlMonks |
Re^4: Getting a result from "foreach" blockby AnomalousMonk (Archbishop) |
on Jun 26, 2014 at 18:31 UTC ( [id://1091384]=note: print w/replies, xml ) | Need Help?? |
Better, IMHO, is my @result = map $_ * 13, @data; as already suggested by AppleFritter and CountZero. (Better because more concise and expressive, and it just leaves $_ the heck alone.)
In Section
Seekers of Perl Wisdom
|
|