Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-10-25 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (146 votes), past polls