Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Looping through Multi Dimensional Hashes

by CodeJunkie (Monk)
on Jul 15, 2003 at 13:01 UTC ( #274389=note: print w/replies, xml ) Need Help??


in reply to Re: Looping through Multi Dimensional Hashes
in thread Looping through Multi Dimensional Hashes

Yeah thanks that is what I am trying to do, I will check out the module.

Also found code and adapted to create this:

foreach my $key1 (keys %category_hash) { foreach my $key2 (keys %{$category_hash{$key1}}) { if ($category_hash{$key1}{$key2}{name} eq '0') { $category_dropdown.="<p>$category_hash{$key1}{$key2}{name} Is +a top Level category</p>"; } else { $category_dropdown.="<p>$category_hash{$key1}{$key2}{name} Is +a sub Level category</p>"; } } }

Take a look at the hash code here

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-06-01 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (12 votes). Check out past polls.

    Notices?