Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Processing Multilevel Hash

by l.frankline (Hermit)
on Dec 15, 2006 at 11:58 UTC ( [id://590019]=note: print w/replies, xml ) Need Help??


in reply to Processing Multilevel Hash

Hi

Try this...if my guess is right

%Country= ( 'State1' =>{ 'city'=> [ '1', '9.4495', '97.1521', '22.0331' ] } ); foreach my $state (keys %Country) { foreach my $city (keys %{$Country{$state}}) { for my $c (@{$Country{$state}{$city}}) { print $c; } } }

bye

Don't put off till tomorrow, what you can do today.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found