Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
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.


in reply to Reset while loop to beginning of hash when using 'each'

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://294290]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.