No such thing as a small change | |
PerlMonks |
Re: Re: Re: Using s///e and it just doesn't feel rightby kral (Monk) |
on Jun 23, 2003 at 08:44 UTC ( [id://268076]=note: print w/replies, xml ) | Need Help?? |
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: But I respect this way of coding 'cause TMOWTDI. ---------- kral (sorry for my english)
In Section
Seekers of Perl Wisdom
|
|