I need to write some code that will log whatever it's writing to STDOUT and/or STDERR to log file(s). Seems like this might be doable with a PerlIO::via::something module. I didn't find anything to fit the bill on CPAN so I'm considering writing one myself. I've never written a perlio layer before and I find myself a little confused by this whole area of Perl. I'm wondering if there's something akin to a whitepaper on PerlIO layers and how they are supposed to work. I've read a bunch of the commonly available documentation, the PerlIO and PerlIO::via man pages among them, but I'm still having a difficutl time 'putting it all together'. So, I'm looking for something that would describe the whole structure of perlio layers. I don't necessarily need deep gorey details at this point, but I need some more detail than end user documentation.
Of course, maybe there's another simpler way to do this output mirroring/logging/whatever you want to call it. If anyone knows or can think of such a way I'd be happy to hear that too.
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
In reply to writing a PerlIO::via module to log stderr? by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |