You might be interested in Test::Inline, which puts test in special POD comments and is cute.
There's also Test::Extreme which also inlines tests (but isn't cute in my opinion)
Personally, I'm not to enamoured of inline tests since I find it makes refactoring test suites harder... but other people seem to like it ;-)
In reply to Re: RFC: Runnable test code integrated into Modules.
by adrianh
in thread RFC: Runnable test code integrated into Modules.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |