i understood that and updated the code as
... open my $MYFILE , "<$filename" || "Can't open the output file!"; ...
then the error changed to 'readline() on closed filehandle $MYFILE' even though i have not closed the file. this is the first code that i've written using perl and i am completely new to it. any help is appreciated. thanks.
In reply to Re^4: help with error 'readline() on unopened filehandle'
by bhargavkanakiya
in thread help with error 'readline() on unopened filehandle'
by bhargavkanakiya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |