Of course, you'll likely have trouble if you execute your command as listed above, since the channels will clobber each other. You probably meanselect(STDERR); $| = 1; select(STDOUT); $| = 1;
script.pl > script.out 2>&1
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: interleaf stdout stderr to a file
by kennethk
in thread interleaf stdout stderr to a file
by hg2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |