Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Pick any key from a very large hash

by QM (Vicar)
on Jul 15, 2009 at 21:36 UTC ( #780482=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Pick any key from a very large hash
in thread Pick any key from a very large hash

"In particular, calling keys() in void context resets the iterator with no other overhead."
Unfortunately, that's on the keys entry, and not on the each entry, which it seems to be more relevant to. If I'm using keys without each, why do I care if keys resets the each iterator?

Granted, a little digging would have found this. And perhaps the OP's avoidance of keys caused the miss.

-QM
--
Quantum Mechanics: The dreams stuff is made of


Comment on Re^4: Pick any key from a very large hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2014-10-22 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls