Do you know where your variables are? | |
PerlMonks |
Re^2: I usually debug via...by Anonymous Monk |
on Feb 21, 2005 at 22:21 UTC ( [id://433179]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Past Polls
|
|