yuri123 has asked for the wisdom of the Perl Monks concerning the following question:
Any advice would be greatly appreciated.... use Test::More; plan tests => 1; BEGIN { use_ok( 'Module' ) || print "Bail out!\n"; } ... my $obj = Module->new; $obj->run; # Will emit STDOUT I want to capture and verify
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to capture and verify STDOUT of a Perl Module
by Perlbotics (Archbishop) on Jul 29, 2013 at 18:11 UTC | |
by yuri123 (Novice) on Jul 29, 2013 at 18:33 UTC | |
by toolic (Bishop) on Jul 29, 2013 at 18:51 UTC | |
by yuri123 (Novice) on Jul 29, 2013 at 19:27 UTC | |
by Loops (Curate) on Jul 29, 2013 at 19:31 UTC | |
| |
by 2teez (Vicar) on Jul 29, 2013 at 21:20 UTC | |
| |
|
Re: How to capture and verify STDOUT of a Perl Module
by toolic (Bishop) on Jul 29, 2013 at 18:20 UTC | |
|
Re: How to capture and verify STDOUT of a Perl Module
by tobyink (Canon) on Jul 29, 2013 at 21:39 UTC |