# doesnt work ... "&STDOUT" = "&STDERR"; # Assign STDOUT to STDERR *STDOUT = *STDERR; # Open STDERR open STDERR, ">o.txt"; # Print something to STDERR warn "hi"; # run a subprocess which output to STDOUT `pgp -h`; # Print something to STDOUT print "ho!\n"; # Now ole'! it's all in the same file!
In reply to Intermixing STDOUT and STDERR to a file by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |