Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: readline() on closed file-handle is coming when reading the file

by johngg (Abbot)
on Aug 31, 2012 at 08:50 UTC ( #990947=note: print w/replies, xml ) Need Help??


in reply to Re: readline() on closed file-handle is coming when reading the file
in thread readline() on closed file-handle is coming when reading the file

Or, even better:

or die "Cannot open file: $!";

so that you can see the o/s error generated when the filehandle failed to open.

Cheers,

JohnGG

  • Comment on Re^2: readline() on closed file-handle is coming when reading the file
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990947]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-03-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.