good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: map versus forby GrandFather (Saint) |
on Aug 05, 2008 at 11:41 UTC ( [id://702330]=note: print w/replies, xml ) | Need Help?? |
Well, it all depends on what you do with the results. Consider the following benchmark code:
Prints:
Update: and for about 100,000 or fewer elements percentages are:
In this case for my @source = 1 .. 100;, but the percentages are very much the same over a wide range of elements. Perl reduces RSI - it saves typing
In Section
Seekers of Perl Wisdom
|
|