|
|
| "be consistent" | |
| PerlMonks |
zcat pipe gives "gzip: stdout: Broken pipe" errorby Special_K (Pilgrim) |
| on Mar 25, 2025 at 16:09 UTC ( [id://11164414]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Special_K has asked for the wisdom of the Perl Monks concerning the following question: I have the following code segment in a much larger script:
When I run the script that contains the above, I receive the following error at the "close(MYFILE)" line:
But the script runs to completion without any other apparent issues.
If I just copy/paste the above code into a standalone script and hardcode the path to $myfile, the error doesn't occur.
If I add the following code either before or after the timestamp assignment, the error doesn't occur:
If I don't close the filehandle, the error doesn't occur and it doesn't seem to cause any other problems in the script.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||