/usr/share/doc/libxml-dt-perl/examples/ex6.pl is in libxml-dt-perl 0.63-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 18 19 20 21 22 23 | #!/usr/bin/perl
use XML::DT ;
use Data::Dumper;
sub XML::DT::Dumper {}# Dumper(shift)}
my $filename = shift;
%xml=(
'-default' => sub{
if(inctxt('url'))
{"\n (sunof url) $q:$c\n pai=". ctxt(1). "\n" }
elsif(inctxt('foto'))
{"\n (sun of foto) $q:$c\n pai=". ctxt(1). "\n" }
elsif(inctxt('desenho.*'))
{"\n (desenho....) $q:$c\n pai=". ctxt(1). "\n" }
else {"\n (outros) $q:$c\n pai=". ctxt(1). "\n" }
},
'-outputenc' => 'ISO-8859-1'
);
# print dt("$filename");
print dt($filename,%xml);
|