Skip to content

Commit 001761d

Browse files
geniojkeenan
authored andcommitted
Indirect object syntax fixed in FileHandle.pm
Increment $FileHandle::VERSION. For: RT #128178
1 parent 9e08bfd commit 001761d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/FileHandle.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.006;
44
use strict;
55
our($VERSION, @ISA, @EXPORT, @EXPORT_OK);
66

7-
$VERSION = "2.02";
7+
$VERSION = "2.03";
88

99
require IO::File;
1010
@ISA = qw(IO::File);
@@ -36,7 +36,7 @@ require IO::File;
3636
#
3737
# Everything we're willing to export, we must first import.
3838
#
39-
import IO::Handle grep { !defined(&$_) } @EXPORT, @EXPORT_OK;
39+
IO::Handle->import( grep { !defined(&$_) } @EXPORT, @EXPORT_OK );
4040

4141
#
4242
# Some people call "FileHandle::function", so all the functions
@@ -88,8 +88,8 @@ sub import {
8888
#
8989

9090
sub pipe {
91-
my $r = new IO::Handle;
92-
my $w = new IO::Handle;
91+
my $r = IO::Handle->new;
92+
my $w = IO::Handle->new;
9393
CORE::pipe($r, $w) or return undef;
9494
($r, $w);
9595
}

0 commit comments

Comments
 (0)