[cgiapp] - I have created a simple configuration service (read: package.) This package reads an xml file and puts this data into an internal structure. Right now, I'm putting this object reference into my CGI::Application's sub-class by way of the ->param method, while doing this I started to wonder a few things about how CGI::Application works it's magic.
I'm wondering how often the ->new method for my configuration service is called. If ->new is called for these objects (the ones stored in CGI::Application ->param) each time a call is made to the CGI::Application, my service probably will not work, due to overhead. I guess I'm trying to figure out how CGI::Application creates 'persistence,' is it real or fake. I have a feeling after reading the docs / looking at the code that it's 'fake' (AKA, all requests are coupled to setup() and a bunch of ->new() calls are made.) I'm also curious to know if running CGI::Application under PerlEX[1] (an activestate[2] product) is possible, and if so, know issues / advantages? Thanks so much, Cory Trese [1] http://www.activestate.com/Products/PerlEx/ [2] www.activestate.com > -----Original Message----- > From: Jerry Hamlet [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 14, 2002 1:15 PM > To: Andy Huhn; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [cgiapp] Application Configuration Discussion > > > On 3/14/02 10:00 AM, "Andy Huhn" <[EMAIL PROTECTED]> wrote: > > > > > You could also use this as an extra layer of abstraction--within the > > Configuration module, you could store the data in a DB, or using the > > Storable module, or in a text file, and the rest of your app doesn't > > need to know about these details. > > Zactly!! :) > > Among other abstractions, such as pre-processing the information. > > If you wanted to be so robust, you could pass your configuration > class' new > method a reference to your CGI::Application app, and have it set those > variables for the app. > > -jerry > > +---------------------------+ > | Jerry Hamlet | > | Web Designer/Programmer | > | www.hamletzone.com | > | [EMAIL PROTECTED] | > +---------------------------+ > > > > > --------------------------------------------------------------------- > Web Archive: http://www.mail-archive.com/[email protected]/ > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
