Spidy has asked for the wisdom of the Perl Monks concerning the following question:
Which is, of course, supposed to 'do' the configuration loader file, in the folder above it. This is the configuration loader file:%config = do "../config.cgi" or die("Error: $!");
And, inside our actual config FILE:our %config = do "filename" or die("can't recreate config info: $!"); return %config;
However, the problem is that the first file isn't having anything loaded into it's %config hash. Nothing at all is in there. Does anyone know why this is?%config = ( 'logging_enabled' => 1, 'crypt_salt' => 'xQ' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Having a problem with do
by Tanktalus (Canon) on Jun 02, 2006 at 04:01 UTC | |
|
Re: Having a problem with do
by Joost (Canon) on Jun 02, 2006 at 10:23 UTC |