The call to open3() opens STDIN for reading in the child process and closes it in the run harness. Adding
# This opens FH0 to prevent File::IOs new 5.8.3 warning FileHandle->new("</dev/null") or die "unable to open /dev/null: $!" # Alternatively, open the next file READ as well as write FileHandle->new("<>$pidFile") or die "unable to open $pidFile: $!"
just after the open3() call prevents File::IO from warning, because FH0 is opened for read.
Ughhh! I will do this for the moment, but this is the first time I can ever recall having to do something unnecessary to suppress a warning. I have, until now always treated warnings as something I NEVER want to do, sigh - IMHO this devalues my 'Absolutely No Warnings' tenet.
Regards,
Jeff
In reply to Re: New warnings Perl 5.8.3 in IO/File
by jaa
in thread New warnings Perl 5.8.3 in IO/File
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |