]> iEval git - pod-constants.git/commitdiff
No need for IO::Handle
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 17 Jul 2015 11:15:15 +0000 (14:15 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 17 Jul 2015 12:31:33 +0000 (15:31 +0300)
lib/Pod/Constants.pm

index 3e24fea847f0afe4b580adcccfe7c405f828e27e..80c2eab0fee8ada6d2883caf25f5b1fae395d103 100644 (file)
@@ -130,8 +130,6 @@ sub import {
        goto \&import_from_file;
 }
 
-use IO::Handle;
-
 sub import_from_file {
        my $filename = shift;
 
@@ -147,8 +145,7 @@ sub import_from_file {
        $parser->add_hook(@_);
 
        print "Pod::Parser: DEBUG: Opening $filename for reading\n" if $parser->{DEBUG};
-       my $fh = new IO::Handle;
-       open $fh, "<$filename" or die "cannot open $filename for reading; $!";
+       open my $fh, "<$filename" or die "cannot open $filename for reading; $!";
 
        $parser->parse_from_filehandle($fh, \*STDOUT);
 
This page took 0.024283 seconds and 4 git commands to generate.