Up till now, I've just used a .pl file with a bunch of "our" global vars in it.. eg: our $temp_dir = '/var/somewhere/tmp';
my web config app just re-writes that file when you make changes.. And the main script requires that file in a begin block... Its not neat.. but it works well enough.. rgds Frank -----Original Message----- From: John Lawton [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 December 2002 8:27 AM To: [EMAIL PROTECTED] Subject: Re: [cgiapp] Global configuration --- Mark Stosberg <[EMAIL PROTECTED]> wrote: > > > In the recent best practices document that Mark started, he > mentions > > configuration information that is global, i.e. is needed by more > than > > one cgi script. What CPAN configuration modules are people using in > > their CGI::Apps? > > John, > > I think the optimal answer here depends on what kind of user you are > targeting to configure the application. Good point. In many cases using raw Perl makes perfect sense. I'd also like a programming interface to make it possible to update configuration parameters from a web-based user interface. -john > > I use a simple ".pm" module that contains regular Perl with comments. > This works great for me. Usually I'm just defining "key = value" > relations in a %CFG hash. However, in a few cases where I want to do > something more complicated, I have the full power of Perl to use, and > I > know the syntax already. :) > > Sometimes I dream of having a web-based configuration tool for > applications, which could necessitate having some other config file > format, or perhaps storing everything in a database (except the > databse > connection options...). > > -mark > > http://mark.stosberg.com/ > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
