XP is just a number | |
PerlMonks |
Re^3: What is happening ?by tilly (Archbishop) |
on Aug 19, 2009 at 06:08 UTC ( [id://789699]=note: print w/replies, xml ) | Need Help?? |
Yes, executing that loop only called each once. But if after that loop you put a second loop that calls each, then that second loop will get a second pair out of the hash. Or if you try to iterate through with a while/each loop, you'll get every pair except the one already consumed in the for loop. In other words the hash has been left in a potentially bad state.
In Section
Seekers of Perl Wisdom
|
|