in reply to Re^3: xml simple not a hash reference
in thread xml simple not a hash reference

Thanks, I am almost there. I used the following code:

my $type = ref( $e->{mealtypes}->{mealtype} ); if ($type eq "ARRAY") { for my $mealtype ( @{$e->{mealtypes}->{mealtype}} ) { $rateid = $mealtype->{rateid}; print "$mealtype"; } }

However now I getting HASH(0x279d04c)HASH(0x279d05c). How do get the array in a readable state?