![]() |
|
P is for Practical | |
PerlMonks |
Re: How to Test Output from the Standard Outputby GrandFather (Saint) |
on Jun 10, 2010 at 03:28 UTC ( #843963=note: print w/replies, xml ) | Need Help?? |
One way is to redirect stdout to a file. For this purpose it helps if the file is actually a Perl variable. Consider:
Prints:
The error is deliberate btw.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|