in reply to Re: Re: Using s///e and it just doesn't feel right
in thread Using s///e and it just doesn't feel right

These are functionally the same, but map generates a return value that can be assigned to another array, and foreach does not, therefore map is not appropriate.
There are also situations where forech aren't appropriate. Like:

foreach(@array){ push(@tmp, $_) if(/$regex/); }
But I respect this way of coding 'cause TMOWTDI.
----------
kral
(sorry for my english)