in reply to How can I redirect STDOUT and STDERR from a program on WIN32?

Simplest is from the command window. For STDOUT:

myscript.pl>myfile.txt

For STDERR

myscript.pl 2>myfile.txt