/usr/share/doc/libxml-dt-perl/examples/ex11.1.pl is in libxml-dt-perl 0.68-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/perl
use XML::DT;
use Data::Dumper;
%handler = ( -default => sub{$c},
person => sub{ print "
$c->{name}
$c->{address}[0]
Dear $c->{name}
Merry Christmas from Morris\n"; $c;},
-type => { people => 'SEQ',
person => MMAPON('address')});
$people = dt("ex11.1.xml", %handler);
print Dumper($people);
print $people->[1]{address}[1];
|