Don't despair. Put together the Class::Singleton and AppConfig suuguestions. Then you can just have:
package Some::Module; use MyConfig; ## ... sub do_something { my $self = shift; my $config = MyConfig->instance; $self->_blah_de_blah() if $config->do_blah(); return $self->bloop() unless $config->no_bloop(); }
Nobody had to pass anyone else anything.
In reply to Re: Re: Program configuration in the OOP world
by Fletch
in thread Program configuration in the OOP world
by Tardis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |