Think about Loose Coupling | |
PerlMonks |
Re: Capturing STDERR (this is not a FAQ)by Tux (Canon) |
on Feb 10, 2015 at 07:15 UTC ( [id://1116149]=note: print w/replies, xml ) | Need Help?? |
Preview != create :( Capture::Tiny is indeed the way to go, with a small gotcha:
The gotcha is that STDERR inside capture is not unbuffered, so if your last print STDERR "foo"; does not have a trailing newline, it is lost. That might change in a newer release (at least I hope) Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|