... 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