--------------------------------------
Readme for Tie::STDERR
--------------------------------------
If you use the line
use Tie::STDERR;
at the start of your script (and maybe CGI script), any output that
would go to STDERR will be sent by email to root. You can specify the
recipient, for example
use Tie::STDERR 'adelton';
would send the message to me.
Alternatively, you can pipe the output to some other process or append
the output to some file:
use Tie::STDERR '| logger ...';
use Tie::STDERR '>> /tmp/testing.log';
The module will catch all output, including your explicit prints to
STDERR, warnings, dies and even dies as a result of compilation error.
The dies have one bug -- the output still goes to STDERR and with the
compilation problem, you only get the message that there was
a problem, but not what the problem was -- if you know how to solve
the problem, please let me know.
Warning for now:
Nor the name nor the functionality has yet been cleared with
other people from the Perl community -- if you like the
module, please let me (or c.l.p.misc) know.
Available:
http://www.fi.muni.cz/~adelton/perl/ and from your favorite
CPAN site in the authors/id/JANPAZ/ directory.
Copyright: (c) 1998 Jan Pazdziora,
[email protected]. All rights
reserved. This package is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.