Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Config::Simple with vars methodby davidj (Priest) |
on Jul 06, 2004 at 04:55 UTC ( [id://372021]=note: print w/replies, xml ) | Need Help?? |
First, Data::Dumper reveals why you are not getting anything returned. output: Now the reason for it (from a cursory reading of the Config::Simple manpage): Config::Simple assumes config information is formatted in a block system, such as: Since your config file does not have any block delimiters (indicated by brackets), the values are assigned to the 'default' block. changing your config file to the following: generates the following output: I would suggest you perldoc Config::Simple to learn more about the module. hope this helps, davidj
In Section
Seekers of Perl Wisdom
|
|