in reply to Re^4: How to capture and verify STDOUT of a Perl Module
in thread How to capture and verify STDOUT of a Perl Module

Why not:
my $capture = qx{echo HELLO};

Replies are listed 'Best First'.
Re^6: How to capture and verify STDOUT of a Perl Module
by yuri123 (Novice) on Jul 29, 2013 at 19:34 UTC
    You suggest I change the code under test so that the test passes? Module calls system for a reason so that the user sees the output.