Don't ask to ask, just ask | |
PerlMonks |
Re: map versus forby toolic (Bishop) |
on Aug 04, 2008 at 15:50 UTC ( [id://702096]=note: print w/replies, xml ) | Need Help?? |
I do have PBP in front of me, and the focus is
definitely on style, rather than performance. Perhaps there are some applications for which map is significantly faster than for, but, judging by your experiment, the code
example in the book seems not to be one of them.
A related discussion (with more links and examples) is Map: The Basics in the Tutorials section.
In Section
Seekers of Perl Wisdom
|
|