File Coverage

blib/lib/say.pm
Criterion Covered Total %
statement 16 20 80.0
branch 3 4 75.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 23 28 82.1


line stmt bran cond sub pod time code
1             package say;
2 4     4   51519 use strict;
  4         5  
  4         90  
3 4     4   12 use warnings;
  4         5  
  4         256  
4              
5             our $VERSION = '0.01';
6              
7             sub import {
8 4     4   22 my $class = shift;
9              
10 4         5 my $caller = caller;
11              
12 4 50       13 if( $] < 5.010 ) {
13 0         0 require Perl6::Say;
14 0         0 Perl6::Say->import;
15              
16 4     4   12 no strict 'refs'; ## no critic
  4         6  
  4         348  
17 0         0 *{$caller . '::say'} = \&Perl6::Say::say;
  0         0  
18             }
19             else {
20 4         13 require feature;
21 4         217 feature->import('say');
22             }
23              
24 4 100       921 if (scalar @_) {
25 2         1990 feature->import(@_);
26             }
27             }
28              
29             1;
30              
31             __END__