in reply to Redirect to STDOUT and file

File-Tee seems quite simpler and meets your needs too. Since your specially interested in teeing STDOUT and STDERR, I think you'll find File::Tee a lot easier to use.

Replies are listed 'Best First'.
Re: Redirect to STDOUT and file
by stevendel (Novice) on Jan 09, 2008 at 19:18 UTC
    File::Tee works very well for me on Unix. Unfortunately, I would like this to work on Windows, too, and even with Cygwin, it does not quite work (it does not capture the output of subprocesses).