his is probably faster though. I wonder why ...Because map takes a list and returns one, whereas for just iterates through one. This idiom is called "map in void context" (not using the list returned by map). It's considered bad form. See What's wrong with using grep or map in a void context?.
In reply to (ar0n) Re (2): Use of grep with arrays/hashes
by ar0n
in thread Use of grep with arrays/hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |