P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
AFAIK for( @f ) is optimized to act like an iterator without expanding and caching the list.
But in for(reverse @f ) there is no for-context which helps reverse to act differently. I'm to lazy for benchmarks (we had them before), but this was surely not fixed in 5.8.8
Cheers Rolf In reply to Re^3: counting backward (optimize foreach reverse low .. high
by LanX
|
|