blob: 58f5972ba231a39552ab2446c563ffbbf1c09df9 [file] [log] [blame]
Rashed Abdel-Tawab4db47f42019-09-06 10:38:22 -07001#
2
3package IO;
4
5use XSLoader ();
6use Carp;
7use strict;
8use warnings;
9
10our $VERSION = "1.38";
11XSLoader::load 'IO', $VERSION;
12
13sub 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 local @INC = @INC;
22 pop @INC if $INC[-1] eq '.';
23 eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
24 or croak $@;
25}
26
271;
28
29__END__
30