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

Re^2: Looping through a hash where some keys are the same

by lidden (Curate)
on Feb 18, 2005 at 10:42 UTC ( [id://432263]=note: print w/replies, xml ) Need Help??


in reply to Re: Looping through a hash where some keys are the same
in thread Looping through a hash where some keys are the same

each is returning a two element list, hence it is looping two times and $k, $v is only set once. It works as expected with a while. See "perldoc -f each".

Replies are listed 'Best First'.
Re^3: Looping through a hash where some keys are the same
by qq (Hermit) on Feb 18, 2005 at 11:10 UTC

    I new I was overlooking something obvious - thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found