For automated testing in perl take a look at Test::Harness, which contains the prove tool.
The prove tool can be executed with the following command:
prove -r -Ilib t
This will recursivly test all *.t files in the 't/' directory, while adding lib to the include path.