Keep It Simple, Stupid | |
PerlMonks |
Re: Capturing both STDERR and STDOUT without shell redirectby Narveson (Chaplain) |
on Aug 06, 2009 at 21:31 UTC ( [id://786598]=note: print w/replies, xml ) | Need Help?? |
Here's some code I've used that implements nimdokk's suggestion above:
where of course you have to set $log_file first. I liked this approach enough to put it in the import sub of a module I named Log::Simple. I'm sure there are better implementations of this idea on CPAN.
In Section
Seekers of Perl Wisdom
|
|