Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: How foreach loops decide what to iterate through (push array inside foreach)by ikegami (Patriarch) |
on Feb 14, 2009 at 03:14 UTC ( [id://743758]=note: print w/replies, xml ) | Need Help?? |
I think it iterates over the array instead of putting it on the stack. You can circumvent the optimisation by changing for (@a) to for ((),@a).
In Section
Seekers of Perl Wisdom
|
|