Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Why Does the Hash Seem Empty?

by imp (Priest)
on Jul 20, 2007 at 19:54 UTC ( #627869=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why Does the Hash Seem Empty?
in thread Why Does the Hash Seem Empty?

From each:
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 .
Perl isn't continuing a while loop, it is starting a new while loop, but your loop condition is the hash iterator, which was not reset.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627869]
help
Chatterbox?
[stevieb]: ...something I had overlooked in the extreme depths of the core functionality. After merging, then a couple of extra tweaks, I still have 100% test coverage. Yay for people who write tests!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-01-24 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (199 votes). Check out past polls.