Test::Simple - Basic utilities for writing tests.
use Test::Simple tests => 1;
ok( $foo eq $bar, 'foo is bar' );
** If you are unfamiliar with testing read Test::Tutorial first! **
This is an extremely simple, extremely basic module for writing tests suitable for CPAN modules and other pursuits. If you wish to do more complicated testing, use the Test::More module (a drop-in replacement for this one).
The basic unit of Perl testing is the ok. For each thing you want to test your program will print out an "ok" or "not ok" to indicate pass or fail. You do this with the ok() function (see below).
The only other constraint is you must pre-declare how many tests you plan to run. This is in case something goes horribly wrong during the test and your test program aborts, or skips a test or whatever. You do this like so:
use Test::Simple tests => 23;
You must have a plan.