Here I am duplicate the STDERR to STDOUT.
open STDERR,'>&STDOUT' or die "Can't dup stdout: $!"; [download]
In reply to Re: dup() in perl by irah in thread dup() in perl by vinoth.ree