Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Hash value interpolation

by ikegami (Patriarch)
on Feb 16, 2009 at 21:47 UTC ( [id://744217]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Hash value interpolation
in thread Hash value interpolation

The problem can be avoided by calling keys before each.
keys %$ht; # Reset iterator while (my ($key, $value) = each(%$ht)) {

Update: Checked source to make sure it's efficient. Yes it is. It doesn't enumerate the keys at all in void context.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found