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.

  • Comment on Re^3: How can I stop relying on a global variable?

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
    Could you please elaborate? I have heard of "singleton classes" before but I don't know what they are. And how could one help me here?