clinton has asked for the wisdom of the Perl Monks concerning the following question:
Where do you store this base configuration for each application?
My approach to this has been something like this:
Then in each website/application, use a subclassed version of this module:-------------------------------------- package Form::Validator; my %Config; sub set_config { my $class = shift; my %settings = @_; @{$Config{$class}}{keys %settings} = values %settings; } --------------------------------------
package Website1::Form::Validator; use base 'Form::Validator';
Do you see any flaws with this approach? Can you suggest a better way of doing this?
thanks
Clint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where to store class configuration settings in a module used by multiple applications
by pc88mxer (Vicar) on Feb 09, 2008 at 18:15 UTC | |
|
Re: Where to store class configuration settings in a module used by multiple applications (factory)
by tye (Sage) on Feb 10, 2008 at 03:23 UTC | |
by clinton (Priest) on Feb 10, 2008 at 12:17 UTC | |
by clinton (Priest) on Feb 10, 2008 at 12:22 UTC | |
|
Re: Where to store class configuration settings in a module used by multiple applications
by pajout (Curate) on Feb 10, 2008 at 11:44 UTC |