When you have a question about a function built into Perl, reading the documentation that comes with Perl for that function usually helps.
> perldoc -f print Prints a string or a list of strings. Returns true if successful. ...
So, if the print function does not return a true value, an error happened. Also see perlvar on $!.
In reply to Re: Detecting write errors (disk full, bad media)
by Corion
in thread Detecting write errors (disk full, bad media)
by Nyyr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |