- or download this
use Data::Printer;
p $data;
- or download this
\ {
node [
...
}
]
}
- or download this
foreach my $node (@{$data->{node}}) {
print $node->{name}.": ".$node->{text}."\n";
}
- or download this
1st node: Text of 1st node
2nd node: Text of 2nd node
3rd node: Text of 3rd node
- or download this
my $xml = XML::Simple->new( KeyAttr => 1, ForceArray => 0, KeepRoot =>
+ 1 );