blib/lib/HTML/HeadParser/Liberal.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 33 / 33 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« _build/lib/MyBuilder.pm ↑ Summary
1 package HTML::HeadParser::Liberal;
2 2 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use HTML::HeadParser;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use B::Deparse;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = "0.02";
9  
10 BEGIN {
11 2 ▶ my $code = "sub " . B::Deparse->new->coderef2text(\&HTML::HeadParser::start);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 $code =~ s/(if \(\$\$attr{'name'}\) {)/$1 \$attr->{name} =~ s\/:\/_\/g;/gsm;
13  
14 2 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶ *HTML::HeadParser::start = eval $code;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 }
17  
18 2 1;
19 __END__
« _build/lib/MyBuilder.pm ↑ Summary