mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
29 lines
413 B
Perl
29 lines
413 B
Perl
|
#
|
||
|
|
||
|
package IO;
|
||
|
|
||
|
use XSLoader ();
|
||
|
use Carp;
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
our $VERSION = "1.25";
|
||
|
XSLoader::load 'IO', $VERSION;
|
||
|
|
||
|
sub import {
|
||
|
shift;
|
||
|
|
||
|
warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated})
|
||
|
if @_ == 0 ;
|
||
|
|
||
|
my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
|
||
|
|
||
|
eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
|
||
|
or croak $@;
|
||
|
}
|
||
|
|
||
|
1;
|
||
|
|
||
|
__END__
|
||
|
|