in reply to mod-perl and globals

The mod_perl solution I prefer is to write a module that houses most of your code, and make the CGI script use your module and just call init().

Pretty simple that way.

Disclaimer: I'm not a mod_perl wizard.