in reply to Problems with Filehandles and TeeOutput
open (LOG, ">>test.out"); [download]
open (LOG, ">>test.out") or die "Failed to open test.out: $!"; [download]