in reply to writing a PerlIO::via module to log stderr?

I'm not sure why you want a perlio layer for this. If you really want that, I can't help. If you just want to log your output to a file, you could try IO::Tee from cpan:

use warnings; my $logfilename = "./log"; { use IO::Tee; open my $log, +">", $logfilename or die "error opening log: $!"; *STDOUT = (IO::Tee- +>new(*STDOUT{IO}, $log) or die "error making tee: $!") } print "This +is both written to stdout and a logfile\n";

Replies are listed 'Best First'.
Re^2: writing a PerlIO::via module to log stderr?
by DrWhy (Chaplain) on Mar 15, 2005 at 22:23 UTC
    Hmm... Looks like TMTOWTDI...

    --DrWhy

    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."