OfficeLinebacker has asked for the wisdom of the Perl Monks concerning the following question:
I have implemented a solution to use a config file to store the database connection credentials so as to make an app I'm building more portable. I chose Config::General because it's pretty neat. When testing on my local box (Windows 7), when I do
I get the expected values. However, on the web host (GoDaddy Linux for those wondering), I getmy $cfgfile = 'prodsafety.cfg'; my $conf = Config::General->new($cfgfile); my %config = $conf->getall; foreach my $k (keys %config){ print "$k is $config{$k}." }
and that's it. I've tried playing with line endings but to no avail. Any thoughts?7/16 is .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange problem with Config::General
by toolic (Bishop) on Nov 18, 2013 at 15:22 UTC | |
by OfficeLinebacker (Chaplain) on Nov 18, 2013 at 16:03 UTC | |
by Eily (Monsignor) on Nov 18, 2013 at 16:33 UTC | |
by OfficeLinebacker (Chaplain) on Nov 18, 2013 at 17:17 UTC | |
by Eily (Monsignor) on Nov 18, 2013 at 17:50 UTC | |
|
Re: Strange problem with Config::General
by Eily (Monsignor) on Nov 18, 2013 at 15:20 UTC | |
by OfficeLinebacker (Chaplain) on Nov 18, 2013 at 16:04 UTC | |
by Eily (Monsignor) on Nov 18, 2013 at 16:48 UTC |