We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e08bfd commit 001761dCopy full SHA for 001761d
lib/FileHandle.pm
@@ -4,7 +4,7 @@ use 5.006;
4
use strict;
5
our($VERSION, @ISA, @EXPORT, @EXPORT_OK);
6
7
-$VERSION = "2.02";
+$VERSION = "2.03";
8
9
require IO::File;
10
@ISA = qw(IO::File);
@@ -36,7 +36,7 @@ require IO::File;
36
#
37
# Everything we're willing to export, we must first import.
38
39
-import IO::Handle grep { !defined(&$_) } @EXPORT, @EXPORT_OK;
+IO::Handle->import( grep { !defined(&$_) } @EXPORT, @EXPORT_OK );
40
41
42
# Some people call "FileHandle::function", so all the functions
@@ -88,8 +88,8 @@ sub import {
88
89
90
sub pipe {
91
- my $r = new IO::Handle;
92
- my $w = new IO::Handle;
+ my $r = IO::Handle->new;
+ my $w = IO::Handle->new;
93
CORE::pipe($r, $w) or return undef;
94
($r, $w);
95
}
0 commit comments