Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    ));
    
    print Dumper \%ref;
    
  2. or download this
    $VAR1 = {
              'node' => [
    ...
                          }
                        ]
            };
    
  3. or download this
    <?xml version="1.0" encoding="utf-8"?>
    <test>
    ...
      <node id="ip_1.2.3.4"
            desc="ipaddr" />
    </test>
    
  4. or download this
    <?xml version="1.0" encoding="utf-8"?>
    <test>
    ...
            <desc>ipaddr</desc>
      </node>
    </test>
    
  5. or download this
    # create 1st node
    push(@{$ref{'node'}},{
    ...
      'desc' => ['ipaddr'],
      'data' => ['testdata2'],
    });