in reply to Re: What is easiest config file parser?
in thread What is easiest config file parser?
The problem is that if $cfgpath contains anything other than a full path and filename it doesn't work. If I just specify the config filename alone it doesn't find it, even if it's in the same directory as the script (which I can sort of understand, it's probably looking at some other directory) BUT it also won't work if I specify something like ~/temp/myconfig.cfg, even though the file exists. If I specify the full path then it works. Not a huge deal, I guess, but I wish I understood why that won't work.if ($cfgpath) { use Config::Simple ('-lc'); my $cfg = new Config::Simple($cfgpath) or die "Could not find configuration file $cfgpath\n"; .....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is easiest config file parser?
by parv (Parson) on Mar 22, 2008 at 10:02 UTC |