in reply to Re^3: Strange problem with Config::General
in thread Strange problem with Config::General
Well, at one point, being the guy I am who tries to write robust code, I had added
This somehow changed the context of probably the getall call, because when I changed it tomy $conf = Config::General->new($cfgfile) || die "New config with $cfg +file failed: $!"; my %config = $conf->getall || die "config->getall with $cfgfile faile +d: $!";
, it worked perfectly. Thanks for taking me down a proper debugging path.my $conf = Config::General->new($cfgfile);# || die "New config with $c +fgfile failed: $!"; my %config = $conf->getall;# || die "config->getall with $cfgfile fai +led: $!";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Strange problem with Config::General
by Eily (Monsignor) on Nov 18, 2013 at 17:50 UTC |