in reply to Automating CGI Testing

For testing websites WWW::Mechanize is your friend.

Other modules that may be of use include Test::HTTPStatus, Test::XML and Test::HTML::Content.

Also take a look at Unit Testing Generated HTML and Small test harness for testing basic auth for some useful tips.