in reply to How to write code tests

I usually use Test::More and the associated(?) prove tool - they're standard with newer perls.

Most CPAN modules have tests in either test.pl or the t/*.t files. Take a look at cpan.org: here are the tests for CGI.pm for example.

update: other links that might be of interest:

A Test::MockObject Illustrated Example

the Test::Unit documentation

Unit Testing @ extremeperl.org

update2: also take a look at

The Joy of Test

Replies are listed 'Best First'.
Re^2: How to write code tests
by adrianh (Chancellor) on Jun 02, 2005 at 07:58 UTC
    the Test::Unit documentation

    Even though I'm biased I'd recommend avoiding Test::Unit and using Test::Class instead. Unlike the former Test::Class is maintained (by me :-) and plays with all the other Test::Builder based Perl test modules.