- or download this
...
<Persons>
...
<Person>...</Person>
</Persons>
...
- or download this
my $persons = $parent->{Persons};
...
: !$persons->{Person} ? ()
: !ref($persons->{Person}) ? $persons->{Person}
: @{ $persons->{Person} };
- or download this
GroupTags => { Persons => 'Person' },
ForceArray => [qw( Person )],
my @persons = $parent->{Persons} ? @{ $parent->{Persons} } : ();
- or download this
my @persons = $parent->findnodes('Persons/Person');
- or download this
...
<Person>
...
...
</Person>
...
- or download this
my $country =
!defined($person->{Country}) ? undef
: !ref($person->{Country}) ? $person->{Country}
: $person->{Country}{content};
- or download this
my $country = $person->{Country} && $person->{Country}{content}
- or download this
my $country = $person->findvalue('Country');