I have an legacy application which prints message to tty through print command. Now I need to print messages to the tty as well as the to a file. I can't use IO::Tee as I need to change all the print statements to print to the tee handle instead of printing to STDOUT. I am looking for duping the STDOUT handle a file. Is there anyway to redirect STDOUT message to tty as well as to a file ?