go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I couldn't find any mention in the perldelta and Perldoc.org doesn't list 16.3.
For loops used to have the limitation to flatten the iterated structure to a list, which resulted sometimes in unfortunate memory requirements. IIRC this was partially fixed by parsing if it's an @array or a range-operator, and acting like an iterator (ie for (reverse 1..1e18) remained problematic, because reverse was not detected) I'd say this is the essential hook allowing your trick of iterating an "injected" tied array. Did I miss something?
Cheers Rolf
In reply to Re^7: Getting for() to accept a tied array in one statement
by LanX
|
|