Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Formatting STDERRby DaWolf (Curate) |
on Feb 12, 2004 at 09:53 UTC ( [id://328518]=perlquestion: print w/replies, xml ) | Need Help?? |
DaWolf has asked for the wisdom of the Perl Monks concerning the following question:
Greetings.
I have an application the outuputs STDERR to a file, in this form: I'd like to prepend every error msg with date and time. Is it possible? I know how to do it in an ordinary string, but can I tell Perl that every STDERR should be formatted in this way? Thanks in advance,
my
($author_nickname, $author_email) = ("DaWolf","erabbott\@terra.com.br")
if ($author_name eq "Er
Galvão Abbott");
Back to
Seekers of Perl Wisdom
|
|