![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: How Do I Bundle Perl Modules and Their Tests Into the Same File?by jdhedden (Deacon) |
on Feb 13, 2006 at 00:16 UTC ( #529710=note: print w/replies, xml ) | Need Help?? |
The ifdef module would be useful for this. Write your module like this:
Then run it like this: I'm sure others will offer more ideas, too. Update: Added missing 1; as pointed out below. Remember: There's always one more bug.
In Section
Seekers of Perl Wisdom
|
|