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

Re: Processing Multilevel Hash

by themage (Friar)
on Dec 15, 2006 at 10:05 UTC ( #590006=note: print w/replies, xml ) Need Help??


in reply to Processing Multilevel Hash

hi beginr,

What result would you expect? If your State have cities, do you want a total for each city or just for the state? Or both?

Which would you expect as result for your example with State1=>city=>[]?

TheMage
Talking Web

Replies are listed 'Best First'.
Re^2: Processing Multilevel Hash
by beginr (Novice) on Dec 15, 2006 at 10:56 UTC
    I would like a output like this .
    country=>state1=>city1=>[]; country=>state2=>city2=>[]; . . country2=>state1=>city1=>[]; . .
    Idea is i have to traverse from top to bottom and get all the keys and the array.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590006]
help
Chatterbox?
usemodperl laughs, at you
usemodperl can see the monastery has become a rehab for children of the serpent :-)
usemodperl can't figure out how to get metacpan.org to comply with HTTP standards :-( HTTPS only!? Breaks older HTTP::Tiny...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-06-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?