in reply to Re: (2) Parsing external config file (variable interpolation in config file?)
in thread Parsing external config file
Yes!
You can define 4 types of config variable -
- Boolean ("varname!")
- Scalar ("varname=s")
- Array ("varname=@")
- Hash ("varname=%")
[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