Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: testing in perl: main and caller

by chromatic (Archbishop)
on Sep 05, 2005 at 06:14 UTC ( [id://489150]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://489150]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found