Can anyone suggest a perldoc or recommended practise that will help me
in regards to:
I have numerous classes, all suited to a different object-type or function.
When I instantiate an object (all classes are under the same Module::
umbrella), I *think* what I want to do is create an 'error' object, but
I want that _specific_ instance of the Error object carried along with
ALL objects created during the time the life-cycle is in operation.
This way, I believe that I can build Sanity checks into objects from
certain classes, and these Sanity checks will ALWAYS work on the same
Error object.
How can I do this sort of thing, without having to 'pass around' the
Error object?
Is it time that I look deeper into inheritance, and create inheritable
instantiation methods in a base class?
Steve
|