open STDOUT,">","some_file.txt" or die "Can't redirect STDOUT: $!" [download]
In reply to Re: redirect all output by Joost in thread redirect all output by mrborisguy