http://www.perlmonks.org?node_id=135595


in reply to Log Files

Not the clearest question, but here's a try
You can reopen STDOUT and STDERR in your perl script so that the output goes to the log files.

open(STDOUT, ">>stdout.log") or die "horribly";
After that your default print statements goes to stdout.log. Doing the same with STDERR will cause all your error messages to be sent to the log. You may to turn buffering off for this purpose as well.