|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: When would you choose foreach instead of map?by dvergin (Monsignor) |
| on May 20, 2004 at 16:06 UTC ( [id://355059]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
And of course if you wanted to alter the array in place (not creating a new one) and also wanted to do it in one succinct line (as your map does), you could just say:
------------------------------------------------------------
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||