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
In reply to RE: RE: RE: Intermixing STDOUT and STDERR to a file
by merlyn
in thread Intermixing STDOUT and STDERR to a file
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |