Welcome to the Monastery | |
PerlMonks |
Re^2: map vs for\foreach.by karlgoethebier (Abbot) |
on Mar 11, 2015 at 21:36 UTC ( [id://1119694]=note: print w/replies, xml ) | Need Help?? |
"I strictly reserve map for coercion of a set of FOO items into a set of BAR items (@lista -> map -> @listb)..." And i don't understand why you insist on this. Just because there must be an example:
So why is map { ++$_ } @foo; wrong? I vaguely remember that there where some performance issues...patched? Best regards, Karl «The Crux of the Biscuit is the Apostrophe»
In Section
Seekers of Perl Wisdom
|
|