jaa has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I recently upgraded from Perl 5.6.1 to Perl 5.8.3 and I am now getting a new warning from IO/File:
Filehandle STDIN reopened as GEN6 only for output at /usr/lib/perl/5.8/IO/File.pm line 70.
This happens because our Perl run harness uses open3() to execute a child process, passing its own STDIN to the child process. It then opens a file for logging output, which ends up getting issued the magic filenumber for STDIN - hence the warning about opening STDIN for output.
I guess I could open up a random file for input, before opening up the output log - but this feels ugly.
Is there a better way to ignore this warning, just in this curcumstance?
Regards & thanks,
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New warnings Perl 5.8.3 in IO/File
by ysth (Canon) on Mar 23, 2004 at 10:50 UTC | |
by jaa (Friar) on Mar 23, 2004 at 14:45 UTC | |
by ysth (Canon) on Mar 23, 2004 at 18:49 UTC | |
by jaa (Friar) on Mar 23, 2004 at 23:51 UTC | |
by Anonymous Monk on Mar 24, 2004 at 04:39 UTC | |
|