Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: testing in perl: main and callerby chromatic (Archbishop) |
on Sep 05, 2005 at 06:14 UTC ( [id://489150]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|