Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Traversing through HoH

by tangent (Parson)
on Apr 04, 2012 at 23:43 UTC ( [id://963552]=note: print w/replies, xml ) Need Help??


in reply to Traversing through HoH

You can also use while with each, I find it reads better though it is still nested loops:
while ( my ($key1,$hash1) = each %{$hoh} ) { while ( my ($key2,$value) = each %{$hash1} ) { ### CODE ### } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found