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.
In reply to Re^4: testing in perl: main and caller
by chromatic
in thread testing in perl: main and caller
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |