in reply to OOP and import()
update: note that if you need your code in SomeClass to run only once per process (instead of once per use) you can just put that code outside of any subroutine in SomeClass.pm and it will get run the first time that module is require()d or use()d.
update 2 there is no modeling reason any of your modules should inherit from the configuration at all. I would go as far as to say that that would be a badly implemented model. (though you could make the case that it should inherit from a base that has access to the configuration). See also my reply to Sharing data between children modules.
|
|---|