select(STDERR); $| = 1; select(STDOUT); $| = 1; #### script.pl > script.out 2>&1