You might want to have a look at
Catalyst (
http://catalystframework.org), a very fine web development framework IMHO. With Catalyst, I'm able to write my application at an abstraction level that makes the question of cgi vs mod_perl vs fastcgi rather less important, since I can quickly switch back and forth between any of them.