Re: Global Config Module

2002-04-01 Thread Perrin Harkins
> In my limited understanding then, in the startup.pl, one could do the > following: > > use strict; > use MyMod::Config(); > > MyMod::Config::load(); Yes. Then you can have a function for accessing the config variables, or put them in globals ($MyMod::Config::database_password), or various oth

Re: Global Config Module

2002-04-01 Thread Christopher H. Laco
> Christopher H. Laco wrote: >> If I use the module in startup.pl, and have it load all of it's data at startup, it that the instance all child processes will use? > > Yes, that's the best way to do it. > >> On a side note, I'm fairly comfortable with Perl/OOP at the >> batch/command/cgi level, bu

Re: Global Config Module

2002-04-01 Thread Perrin Harkins
Christopher H. Laco wrote: > If I use the module in startup.pl, and have it load all of it's data at > startup, it that the instance all child processes will use? Yes, that's the best way to do it. > On a side note, I'm fairly comfortable with Perl/OOP at the > batch/command/cgi level, but the w

Global Config Module

2002-04-01 Thread Christopher H. Laco
I have a Perl Module that loads configuration data from various sources, ldap, ini, xml, etc. It was originally designed for batch file usage, but I want to start using it in some new mod_perl commerce site development I'm working on. Barring the usual global variable issues, what's the best app