Think about Loose Coupling | |
PerlMonks |
Re: Re: (2) Parsing external config file (variable interpolation in config file?)by BoredByPolitics (Scribe) |
on Jan 21, 2001 at 20:22 UTC ( [id://53338]=note: print w/replies, xml ) | Need Help?? |
Yes!
You can define 4 types of config variable -
[section] has the effect of prefixing the varname with the section name, so login would become SetPass_login. Multiple assignments to the same array or hash add further elements. Both environment varibles, and those previously defined in the config file, can be expanded as values. Take a look at the pods for AppConfig::State and AppConfig::File for more details. Overall I'm very impressed with this module - it has definately saved me alot of time with the program I'm currently writing. Pete
In Section
Seekers of Perl Wisdom
|
|