Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

(jeffa) 3Re: Calling nested containers with XML::Simple

by jeffa (Bishop)
on Jul 05, 2002 at 15:51 UTC ( [id://179669]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $snmp (@{$i->{snmp}}) {
       for my $version (@{$snmp->{version}}) {
          print "$version\n";
       }
    }
    
  2. or download this
    use XML::XPath;
    
    ...
    my $nodeset = $xp->find('global/snmp/version');
    
    print $_->string_value, "\n" for $nodeset->get_nodelist;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://179669]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found