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?
In reply to Re^4: xml simple not a hash reference
by Anonymous Monk
in thread xml simple not a hash reference
by Noverast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |