in reply to Calling nested containers with XML::Simple
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Calling nested containers with XML::Simple
by c (Hermit) on Jul 05, 2002 at 07:06 UTC | |
by jeffa (Bishop) on Jul 05, 2002 at 15:51 UTC |