Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
1nickt is installing all Perl versions so as to be able to send test reports to CPANTS ...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-09-19 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (226 votes). Check out past polls.

    Notices?