Welcome to the Monastery | |
PerlMonks |
Re: Insensitive Scoundrelby tadman (Prior) |
on Sep 26, 2002 at 18:10 UTC ( [id://200980]=note: print w/replies, xml ) | Need Help?? |
It's probably a case of keeping things simple. After all, why make map operate like for when you already have a perfectly servicable for-loop mechanism.
Like using a screwdriver to stir paint, or hammer in a nail, you can use map and grep to iterate. Unlike other programming languages, there's nothing to stop you. They work, just not as well. You can also use C's malloc() in void context too. Just don't whine when you wonder where all your memory has gone.
In Section
Meditations
|
|