in reply to Adding Tests to Mature Web App

I second the recommendations of Perl Medic & the Testing Notebook.

For adding function/acceptance tests onto an existing web app I'd also look at Selenium and wtr (ruby - but good :-)

You may also find the non-perl book Working Effectively with Legacy Code a useful read.