Hi there, I was googling about an hour for something like "perl print write error handling" but it seems that no one experienced (or thinked about possibility of) write errors.
All error handling code I have found is about the open() function.
What happens if:
open(my $filehandle, '>', 'C:\TEST.txt'); <--- OK
print $filehandle "AAA\n"; <--- OK
print $filehandle "BBB\n"; <--- OK
print $filehandle "CCC\n"; <--- disk write error
How does PERL resp. PRINT FILEHANDLE function report such error?
Does it return FALSE or UNDEF or does it throw an exception which has to be handled by:
eval { print $filehandle ....... }
if ($@) { error hnadling }
???
Thanks :-)