Keep It Simple, Stupid | |
PerlMonks |
Re: Cleaner redirection of STDERRby RhetTbull (Curate) |
on Sep 24, 2001 at 07:58 UTC ( [id://114243]=note: print w/replies, xml ) | Need Help?? |
You may want to take a look at the Filter::Handle module. Instead of using a separate subroutine to write to your logfile or STDERR you could simply use 'print STDERR "my message";' and let Filter::Handle do what you meant. Take a look at my node about Filter::Handle for an example. Regards,
-RT
In Section
Seekers of Perl Wisdom
|
|