You might want to revisist XML::Simple's documentation: forcearray => 1 coerces all nested elements into arrayrefs, turning something like...
$i->{snmp}->{version}
...into the less aesthetic...
$i->{snmp}->[0]->{version}->[0] # or $i->{snmp}[0]->{version}[0], which # reads more legibly to me (YMMV)
You might find a workaround in some of XML::Simple's other options, 'though.
--k.
In reply to Re: Calling nested containers with XML::Simple
by Kanji
in thread Calling nested containers with XML::Simple
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |