in reply to How to print STDOUT to a file

If all the STDOUT output of your program should be redirected, then, from the command line prompt:
YourProgram.pl > YourProgram.out

-M

Free your mind