Hi,
 
I would like to have a config file like /etc/mywebapp.conf where I would put all my modules configuration. Then I would have a WebApp::LoadConfig module that would run from startup.pl, and initialize my Perl modules default variables at Apache start.
 
My config file would be some like :
 
### /etc/mywebapp.conf
###
###
MyPackageOne::Default_Value_One = 1
MyPackageOne::Default_Value_One = 2
 
and my startup.pl would have :
 
### startup.pl
WebApp::LoadConfig->run("/etc/mywebapp.conf")
 
Of course,this means that i would have to use those modules whithin mod_perl only, or have to call that WebApp::LoadConfig->run("/etc/mywebapp.conf") at the begining of each console script that use those modules ...
 
Would this be a good idea ? What do you think about? does somebody already use it ?
 
Thanks,
 
Fred

Reply via email to