http://qs321.pair.com?node_id=1105708


in reply to Re^2: How to test exit? - wrote a quick Test::Exit module
in thread How to test exit?

You can use Test::Trap , to catch exitcode, stdout, stderr etc of a subroutine