Though you can do that in Perl, I can't recommend it as a "best practice" (in either Perl or Python) because it doesn't scale well as your module (and its tests) grow.
The recommended testing solution for Perl is Test::More (start by reading Test::Tutorial), and for Python it's PyUnit.
In reply to Re: Self Testing Modules
by eyepopslikeamosquito
in thread Self Testing Modules
by Sheol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |