in reply to It's friday, I can't think.

Best bet is to print to a filehandle for the subroutine requiring STDOUT going to a file, and then just use print alone (w/out the filehandle) for the rest of the subroutines.