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
|
|---|