Perlito5X/UNIVERSAL.pm untested

filter: Statementstmt 0.0% 0 / 5 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 11 CC 3 SCAR 24.8
CC
3
Cov
0%
import
12.0
CRAP 12.0
1 package UNIVERSAL;
2  
3 our $VERSION = '1.12';
4  
5 # UNIVERSAL should not contain any extra subs/methods beyond those
6 # that it exists to define. The existence of import() below is a historical
7 # accident that can't be fixed without breaking code.
8  
9 # Make sure that even though the import method is called, it doesn't do
10 # anything unless called on UNIVERSAL.
11 sub import {
12 return unless $_[0] eq __PACKAGE__;
13 return unless @_ > 1;
14 die ("UNIVERSAL does not export anything");
15 }
16  
17 1;
18 __END__