Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: Ouch! Each! Reentrant it is not

by ysth (Canon)
on Jul 15, 2005 at 09:45 UTC ( #475156=note: print w/replies, xml ) Need Help??

in reply to Re^2: Ouch! Each! Reentrant it is not
in thread Ouch! Each! Reentrant it is not

keys and values don't depend on the iterator, just each.

Replies are listed 'Best First'.
Re^4: Ouch! Each! Reentrant it is not
by Thilosophy (Curate) on Jul 15, 2005 at 09:51 UTC
    Experimentation proves you right. Interesting. I must have mis-interpreted the perldoc:

    There is a single iterator for each hash, shared by all "each", "keys", and "values" function calls in the program.

      That just indicates that keys and values affect the iterator (resetting it).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475156]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2020-06-05 07:20 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (35 votes). Check out past polls.