in reply to Redirecting STDOUT and standard error to file
open (COPYOUT, ">&STDOUT"); open (COPYERR, ">&STERR"); [download]