BEGIN { *STDERR = *STDOUT; } #### test.pl > results.txt #### perl test.pl > foo.txt 2>&1
## test.pl > results.txt ##
## perl test.pl > foo.txt 2>&1