|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Reset while loop to beginning of hash when using 'each'by perlmonkey (Hermit) |
| on Sep 25, 2003 at 19:31 UTC ( [id://294293]=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.
according to the each perldoc page, you have to reset the each call or else it will always keep iterating from where you left off.
To reset the is says execute: keys %hash; so you need something like:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||