Help for this page

Select Code to Download


  1. or download this
    my $ref = $xmlParser->XMLin(<<'EOX', ForceArray => 1, KeyAttr => { nod
    +e => 'id' });
    <?xml version="1.0" encoding="utf-8"?>
    ...
      </node>
    </test>
    EOX
    
  2. or download this
    $VAR1 = {
              'node' => {
    ...
                                       }
                      }
            };
    
  3. or download this
    push(@{$ref{'node'}},{
      'id'   => 'net_1.2.3.0',
      'desc' => 'network',
    });
    
  4. or download this
    push @{$ref{node}}, {
        'net_1.2.3.0' => {
            desc => ['network']
        } 
    };
    
  5. or download this
    <?xml version="1.0" encoding="utf-8"?>
    <test>
    ...
        <desc>ipaddr</desc>
      </node>
    </test>