|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Reset while loop to beginning of hash when using 'each'by Nkuvu (Priest) |
| on Sep 25, 2003 at 19:25 UTC ( [id://294290]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The Camel says (in the definition of the each function):
There is a single iterator for each hash, shared by all each, keys and values function calls in the program; it can be reset by reading all the elements from the hash, or by evaluating keys %hash or values %hash.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||