Thank you!


> On Nov 2, 5:06 pm, bryan_r_har...@raytheon.com (Bryan R Harris) wrote:
>> I have these lines in my script:
>> 
>> **************************************
>> for my $handle (*STDIN, *STDERR) {
>>     open($handle, "+</dev/null") or die "$me:  Can't reopen $handle to
>> /dev/null: $!.  Exiting.\n";
>> 
>> }
>> 
>> # open outfile for further recording
>> open(STDOUT,">$outfile") or die "$me:  Couldn't open $outfile:  $!\n";
>> $| = 1;         # and don't buffer it
>> **************************************
>> 
>> I decided I want STDERR to also be redirected to the same outfile as STDOUT
>> instead of sending it to /dev/null.  Is that possible?
>> 
> 
> perldoc perlopentut   and look for:    Re-Opening Files (dups)
> 
> --
> Charles DeRykus
> 
> 
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
> 
> 



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to