noname.pl untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2
3 use Markup::Content;
4
5 my $content = Markup::Content->new( target => 'noname.html',
6 template => 'noname.xml',
7 target_options => {
8 no_squash_whitespace => [qw(script style pi code pre textarea)]
9 },
10 template_options => {
11 callbacks => {
12 title => sub {
13 print shift()->get_text();
14 }
15 }
16 });
17
18 $content->extract();
19
20 $content->tree->save_as(\*STDOUT);