in reply to RE: RE: Intermixing STDOUT and STDERR to a file
in thread Intermixing STDOUT and STDERR to a file

open STDERR, ">&STDOUT"; # Open STDERR open STDOUT, ">o.txt";
You've done the operations in the reverse order. Your stderr now goes where stdout used to go, and stdout is now going into the file. If you want them to go to the same place, reverse the operations.

-- Randal L. Schwartz, Perl hacker