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.