OR,
add use autodie qw(open close); just after use warnings; in your script.
Your script should work fine, except you have other things in mind.
For detailed information check autodie
Cheers
In reply to Re: readline() on closed file-handle is coming when reading the file
by 2teez
in thread readline() on closed file-handle is coming when reading the file
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |