Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
laziness, impatience, and hubris
 
PerlMonks  

Re^2: I usually debug via...

by Anonymous Monk
on Feb 21, 2005 at 17:21 UTC ( [id://433179]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: I usually debug via...
in thread I usually debug via...

Gotta question re: unit tests. In C or C++, I'd do something like this in a foo.c/foo.cpp file:

#define FOO_UNIT_TEST
(various functions or objects... )
#ifdef FOO_UNIT_TEST
int main (int argc, char ** argv) {
(code that tests the above )
#endif
--then I'd just compile the one file when testing, or comment out the first line when integrating.

Is there a similar mechanism for Perl?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://433179]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.