If that's so, then the docs should be clearer:
> 2) it uses the built-in iterator.
In that case, I suppose nested loops over the same hash are covered by saving and restoring the localized iterator?
I was expecting a more intelligent solution than literally "copying to a flat list" but this also leads to another question:
What happens if the hash is altered inside the loop, if it's not copied "before the loop starts"
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^5: Why does each() always re-evaluate its argument? ("for_list" )
by LanX
in thread Why does each() always re-evaluate its argument?
by Darkwing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |