map is a slow
Why do you say that?
map{} takes an input array and makes a new output array
map transforms lists, not only arrays. Likewise, for iterates over lists.
As well, map doesn't have to produce any output. A void context map is poor style in my book, but there's no performance penalty in modern Perls.
In reply to Re^2: Map Vs Foreach
by chromatic
in thread Map Vs Foreach
by perlCrazy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |