in reply to Sharing Namespaces
Perl will not use or require the same file twice without some prodding, so you're not saving anything in your attempted optimization.
Aside from the excellent advice to use Exporter, if your Config.pm file (not a good name BTW) has a package declaration and the variables are package variables, then you can access those variables by their full name (i.e. $Config::foobar) from within your main program and any modules that use your module. It sounds like this is what you're doing, but I wanted to be sure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sharing Namespaces
by skazat (Chaplain) on Jan 27, 2006 at 09:17 UTC | |
by tirwhan (Abbot) on Jan 27, 2006 at 09:30 UTC | |
by ysth (Canon) on Jan 27, 2006 at 11:00 UTC | |
by Anonymous Monk on Jan 29, 2006 at 00:29 UTC |