And you can easily check this if you close the filehandle before printing "CCC".
print $fh "CCC\n" or die "The file has vanished.";
will returns something like "print() on closed filehandle $fh at ... line ... The file has vanished. at ... line ..."
In reply to Re: Detecting write errors (disk full, bad media)
by aanriot
in thread Detecting write errors (disk full, bad media)
by Nyyr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |