in reply to Re^2: How can I stop relying on a global variable?
in thread How can I stop relying on a global variable?
Sounds like a good place to have a Class::Singleton instance to hold shared configuration information between the different modules.
Update: Just to keep this from growing too deep, for more explanations on what a singleton is see the PPR wiki entry for the Singleton pattern.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can I stop relying on a global variable?
by Anonymous Monk on Feb 03, 2006 at 19:37 UTC |