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