Change-Id: Ic9dcad6db5d8198c0259acc39c006430d74b1a34
This commit is contained in:
2024-07-07 10:03:49 +08:00
commit c637eac89e
560 changed files with 177147 additions and 0 deletions

30
common/perl-base/IO.pm Normal file
View File

@@ -0,0 +1,30 @@
#
package IO;
use XSLoader ();
use Carp;
use strict;
use warnings;
our $VERSION = "1.38";
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);
local @INC = @INC;
pop @INC if $INC[-1] eq '.';
eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
or croak $@;
}
1;
__END__