Don't ask to ask, just ask | |
PerlMonks |
Re^2: How foreach loops decide what to iterate throughby ikegami (Patriarch) |
on Feb 14, 2009 at 03:09 UTC ( [id://743757]=note: print w/replies, xml ) | Need Help?? |
1% and even 5% is within the margin or error of Benchmark, so that last phrase is inaccurate. I'm actually surprised they're the same speed. @a = sort @a; is optimized to be done in place, and I think for (@a) is optimized over the more general for (LIST) (it's definitely implemented differently).
In Section
Seekers of Perl Wisdom
|
|