To test STDERR (that is, stuff that warn emits, as well as direct prints to STDERR), you can use Test::Warning. I use this for a couple of distributions, and it's great.
Hmm... I didn't know about cpan:://Test::Output, which should solve both problems. Just goes to show, you can test just about anything these days.
• another intruder with the mooring in the heart of the Perl
In reply to Re: Testing a module's stdout/stderr
by grinder
in thread Testing a module's stdout/stderr
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |