blib/lib/parent.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 2 SCAR 12.8
CC
2
Cov
0%
import
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package parent;
2 use strict;
3  
4 our $VERSION = '0.244';
5  
6 sub import {
7 my $class = shift;
8  
9 my $inheritor = caller(0);
10  
11 if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14 for ( my @filename = @_ ) {
15 local @_; # protect us against the loaded module changing @_
16 s{::|'}{/}g;
17 require "$_.pm"; # dies if the file is not found
18 }
19 }
20  
21 {
22 no strict 'refs';
23 push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected
24 };
25 };
26  
27 1;
28  
29 __END__