There are a number of test modules for Perl, ranging from very simple tests through to very complex tests. Here are some links to some of them; all of these use the Test Anything Protocol to report their successes or failures:
TAP::Parser Cookbook - Cooking with TAP
A set of test files, designed to output TAP, are used to define the specification for Perl 6. Only a few modules exist, but Test is a core module for every implementation that produces Test Anything Protocol output.