in reply to writing a PerlIO::via module to log stderr?
I wonder if what you really want to do is to use Tie::FileHandle::MultiPlex. What I would do here is open a new filehandle that duplicates STDOUT or STDERR, then close STDOUT or STDERR, open the logfile(s), and then tie STDOUT or STDERR to the multiplex of the duped filehandle and the logfile.
But more info about PerlIO::via is always a good thing :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: writing a PerlIO::via module to log stderr?
by DrWhy (Chaplain) on Mar 15, 2005 at 21:56 UTC |