in reply to Pre/post subroutine assertions and documentation module?
Couldn't you just put in extra lines of code with a test flag?
sub myFunc { my ($x, $y) = @_; ### Assertion if ($::test) { ### Do something } ### Rest of sub }
Might help if you could give an example of what a simple sub might do with and without an assertion.
In Section
Seekers of Perl Wisdom