You don't really need to split it into 3 files. Once I encountered the modulino concept, I've been playing around with modules having their own test fixtures inside them. So if you call the module directly, it will test itself. So you'd need only the module (.pm) for the code and tests, and you can just use a .pl file to use your module for other things.
If you wanted the application, module and tests all in a single file, you can do that, too. For that, I'd put it into test mode with a command-line switch or something, though.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: How to get started in test first programming without writing modules? package ?
by roboticus
in thread How to get started in test first programming without writing modules? package ?
by Gulliver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |