blib/lib/End.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 96.7% 30 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package End;
2  
3 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶no warnings 'syntax';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 our @ISA = qw /Exporter/;
12 2 our @EXPORT = qw /end/;
13  
14 2 our $VERSION = '2009110401';
15  
16 10 ▶sub end (&) {
Subroutine end: called CC=1 SCAR=0.0
Pod undocumented
17 10 my $code = shift;
18 # Due to a bug in Perl 5.6.0, we can't just bless $code.
19 # But by creating an extra closure, it'll work.
20 10 ▶ bless sub {$code -> ()} => __PACKAGE__;
Subroutine __ANON__: called CC=1 SCAR=0.0
21 }
22  
23 10 ▶DESTROY {$_ [0] -> ()}
Subroutine DESTROY: called CC=1 SCAR=0.0
24  
25 2 1;
26  
27 __END__
↑ Summary