P:\test>perl -e"print 'This goes to stdout', $/; print STDERR 'This goes to STDERR', $/;" 1>junk.log 2>&1 P:\test>type junk.log This goes to STDERR This goes to stdout