in reply to Looping through nested repeated elements using XML::Simple

$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.

Replies are listed 'Best First'.
Re^2: Looping through nested repeated elements using XML::Simple
by ranjan_jajodia (Monk) on Dec 13, 2006 at 07:17 UTC
    Thanks ikegami for the explanation. I am off to exploring more on the same.
    Regards,
    Ranjan