http://www.perlmonks.org?node_id=990947


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