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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-08-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (351 votes). Check out past polls.