Yes, mod_perl definitely can do that.
But if I were starting from scratch, I'd go the mod_fastcgi or mod_fcgid route. I really like CGI::Fast and find it's a convenient way to upgrade regular old CGI to the point of having persistence. It also means speed boosts that put perl up there with those other dynamic languages.
You can, of course, teach mod_perl to convert regular CGI to mod_perl CGI, but you have to then worry about things like your global my and global subs not working well together....
UPDATE: perrin, yes, I suppose that's true. I still say fastcgi is easier (or even better), unless you really need to get at the entire http protocol layer for some reason.
|