Actually I don't think I will use Singleton, it just seems like a lot more work then it's worth for me.
It's more useful for handling access to an object, like a Template Toolkit instance for example.
I have a hash for the posted cgi variables but that gets cleared out when it's reset anyways, and I have about 30 global variables that I just set explicitly at the start of the code.
That sounds fine. Eventually you should probably look at turning those into lexicals or possibly wrapping them in an object if they are all related. Globals are generally a maintenance problem, regardless of whether or not they are being used in a mod_perl app.
- Perrin
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html