Posted on 2007-10-24 05:55:07-07 by iskander
Using Extended and Interpolated subclasses at the same time
Hello, I have a question about your Config::General and its two subclasses. Is it possible to use the Config::General::Extended interface with config files that contain variables? It seemed to me that, to have variables/substitutions, one needs to use the Config::General::Interpolated module, which is not subclassed by Config::General::Extended. However, I was wondering if you'd spent any time thinking about the case of using both variables and the OO interface. Thanks!
Direct Responses: 6520 | Write a response
Posted on 2007-11-25 19:25:58-08 by tlinden in response to 6318
Re: Using Extended and Interpolated subclasses at the same time
Ahm, normally you use it this way:
use Config::General; my $conf = new Config::General( -ExtendedAccess => 1, -InterPolateVars => 1, -ConfigFile => "configfile" );
Now interpolates vars and you can access the resulting hash the OOP way.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.