in reply to how to send both STDOUT and STERR to the same file

what about
open (STDERR, ">&STDOUT");
LuCa

Replies are listed 'Best First'.
Re^2: how to send both STDOUT and STERR to the same file
by Anonymous Monk on Oct 19, 2006 at 17:32 UTC
    Same thing...STDERR never gets written to the file, only the terminal
    use strict; use warnings; use IO::Handle; my $file = 'C:\Progra~1\Ethereal\output.dat'; open (STDERR, ">&STDOUT"); open (OUTPUT, ">$file") || die $!; STDOUT->fdopen(\*OUTPUT, "w") || die $!; print "This is STDOUT\n"; warn "This is a warning\n";
Re^2: how to send both STDOUT and STERR to the same file
by jeanluca (Deacon) on Oct 19, 2006 at 17:37 UTC
    Please ignore my answer, sorry!
    My test script didn't work very well, so nothing was printed, which made me a little bit to enthousiastic :)

    LuCa