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
In reply to Re^2: readline() on closed file-handle is coming when reading the file
by johngg
in thread readline() on closed file-handle is coming when reading the file
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |