I have used IO::Tee in the past. IIRC, it was pretty simple and did the job.
use IO::Tee; $tee = IO::Tee->new( $handle1, $handle2 ); print $tee "foo";
In reply to Re: Logging output of a script to screen AND file
by bobf
in thread Logging output of a script to screen AND file
by elTriberium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |