I despise the PHP language, and I\'m quite certain that I\'m not alone. But the great thing about PHP is the way that mod_php takes and hides the gory details of integrating wi
There are a lot of possibilities, depending on what you want to do.
If you want to take advantage of the speed of mod_perl, but the simplicity of vanilla CGI, check out the Modperl::Registry distribution from CPAN. This will allow you to run your plain CGI scripts largely unaltered.
In terms of frameworks, I'm a big fan of CGI::Application. It provides a very simple inheritance-based framework that handles most everything a web application will need to do, giving you the freedom to design your application the way you like. A simple app can be done in a monolithic fashion; a more complex one can use a full-fledged MVC design. Like Perl in general, CGI-App gives you a lot of options and generally stays out of your way.
CGI-App supports the excellent HTML::Template module by default, and has plugins for other templating systems such as the spectacular Template Toolkit. There are also a plethora of plugins for other purposes.
If you want more work done for you, check out Catalyst. This way of doing things may be more familiar if you've used Ruby on Rails.
Other popular web-app frameworks include Jifty and CGI::Prototype, written by Randal Schwartz, which is based on the Class::Prototyped object framework.