In what kind of situations map function is more applicable then for\foreach\while?Effective Perl Programming item 20, "Use foreach, map and grep as appropriate", provides a nice summary of when to use foreach, map and grep:
In reply to Re: map vs for\foreach.
by eyepopslikeamosquito
in thread map vs for\foreach.
by builat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |