$config->{person} returns a reference to an array, not an array.
my $persons = $config->{person}; print "Size:".@$persons;
Hashes values can't be arrays, only scalars. References are scalars, so references to arrays are valid hash values.
In reply to Re: Looping through nested repeated elements using XML::Simple
by ikegami
in thread Looping through nested repeated elements using XML::Simple
by ranjan_jajodia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |