in reply to RE: RE: Intermixing STDOUT and STDERR to a file
in thread Intermixing STDOUT and STDERR to a file
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.open STDERR, ">&STDOUT"; # Open STDERR open STDOUT, ">o.txt";
-- Randal L. Schwartz, Perl hacker
|
|---|