in reply to Saving .cgi Output; Passing File As Argument?
Would something like File::Tee or even the following work?
open (STDOUT, "| tee -ai log.txt"); [download]