I don't see why using map in a void context is so wrong. Sometimes it expresses something better, particularly if the order of operation doesn't matter:
map {transform($_)} @elements; # transform() does something inline
| A massive flamewar beneath your chosen depth has not been shown here |
In reply to map vs foreach
by dash2
in thread Using s///e and it just doesn't feel right
by rkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |