Now this will loop only through the highest hierarchy of your construct, so $f will be 'Fruits' and then the loop is already finished. To get to the data underneath you have to recursively descend or know exactly what you are looking for.foreach my $f ( keys %$xml ) { ... $xml->{$f} ... }
Please be more specific when asking questions. You also might read a book on data structures.
In reply to Re: Foreach hash of array
by jethro
in thread Foreach hash of array
by rose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |