in reply to Foreach hash of array

Between this and your first post, maybe there is enough info to infer what you're looking for. First some tips:

With that out of the way, you are dealing with a nested data structure with several levels. Foreach will only iterate over only one level at a time.

# first, create a reference to the level you are interested in. my $oranges = $xml->{Fruits}->[0]->{Season}->{Orange}; # then do whatever you need to with it, ie: foreach (keys %$oranges){ ...

To better understand this stuff, please read Nested Data Structures and Perl Data Structures Cookbook.