Do you know where your variables are? | |
PerlMonks |
Perl Test - Capture print statementsby iamdaboss (Novice) |
on Jul 10, 2007 at 21:10 UTC ( [id://625928]=perlquestion: print w/replies, xml ) | Need Help?? |
iamdaboss has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I wanted to know how to capture print statements using Perl test scripts.
Example : There is a PM xyz.pm whose subroutines print statements.
I need to write xyz.t test script which captures those print statements and checks them if they are right.
Note:
- I am not supposed to use Test::Expect.
- The module and test script would be part of the test harness.
Thank You.
Back to
Seekers of Perl Wisdom
|
|