I have a Perl script that works most of the time. When it doesn't, it always fails in the syswrite() call with an error message on the console of "Write failure". I believe this is a bug in my lower level NFS failing for some reason. But, I would like to capture the failure in my Perl script.
My question is how do I capture a failure from my syswrite() call. The documentation is a little sparse about how to handle failures in syswrite().
Thanks.
-brad w.