blob: 0087530c7e630f5e722e6014dff879bc73bdf968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#
package IO;
use XSLoader ();
use Carp;
$VERSION = "1.20";
XSLoader::load 'IO', $VERSION;
sub import {
shift;
my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
or croak $@;
}
1;
__END__
=head1 NAME
IO - load various IO modules
=head1 SYNOPSIS
use IO;
=head1 DESCRIPTION
C<IO> provides a simple mechanism to load some of the IO modules at one go.
Currently this includes:
IO::Handle
IO::Seekable
IO::File
IO::Pipe
IO::Socket
IO::Dir
For more information on any of these modules, please see its respective
documentation.
=cut
|