Perlito5X/IO.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 3 SCAR 19.5
CC
3
Cov
0%
import
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 7.0
1 #
2  
3 package IO;
4  
5 # use XSLoader ();
6 use Carp;
7 use strict;
8 use warnings;
9  
10 our $VERSION = "1.28";
11 # XSLoader::load 'IO', $VERSION;
12  
13 sub import {
14 shift;
15  
16 warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated})
17 if @_ == 0 ;
18
19 my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
20  
21 eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
22 or croak $@;
23 }
24  
25 1;
26  
27 __END__