Thanks, I am almost there. I am using the following code:
my $type = ref( $e->{mealplans}->{mealplan} ); if ($type eq "ARRAY") { $mealplans=$e->{mealtypes}->{mealtype}; for my $mealtype ( @{$e->{mealtypes}->{mealtype}} ) { $rateid = $mealtype->{rateid}; print "$mealtype"; } }
It prints out: HASH(0x27acfbc)HASH(0x27acfcc) How do I get the Array readable?
In reply to Re^4: xml simple not a hash reference
by Noverast
in thread xml simple not a hash reference
by Noverast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |