But map and grep work out the same in this case, and the potential difference is largely irrelevant because both run more slowly than simple looping and waste more memory while they are at it. So use a loop.
In reply to Re (tilly) 2: Use of grep with arrays/hashes
by tilly
in thread Use of grep with arrays/hashes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |