in reply to Re^2: Using packages to store global configuration vars
in thread Using packages to store global configuration vars
The second is that, in your original question, you said you had use Config at "The tail end of [your] startup.pl". Unless something else has caused Config.pm to be loaded earlier in your startup process, the perl compiler won't know about anything from Config until it hits that use line. Move use Config up towards the top of your code, so that it appears before any references to the variables in Config.pm, and it should take care of that problem.
If neither of those things resolves your problem, try stripping both startup.pl and Config.pm down to the bare minimum necessary to demonstrate the issue and post them in full (not just snippets) so that we can see exactly what's going on. Unless, that is, you find a solution while you're in the process of creating your minimum failing case...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using packages to store global configuration vars
by fuzzyping (Chaplain) on Sep 06, 2009 at 18:09 UTC |