in reply to Re^3: testing in perl: main and caller
in thread testing in perl: main and caller

The book has:

ok( require( 'foo.pl' ), 'loaded file successfully' ) or exit;

I think require_ok() would also work, though I'm not in a position to try it right now, nor do I remember if I wrote it as above for a specific reason.