I have the same question as was asked HERE but unfortunately I cannot install Moose and I think the solution described there was particular to Moose. Can someone tell me how to the same in old school "use base" speak?
To reiterate the question, I would like to have my base classes to have an automatic logging mechanism using Log4perl so if the user does not do anything I get some reasonable logging but if the user of my class needs/wants to overwrite the logger they can.
Here is the solution I came up with for anyone else that might be interested:
MyBaseClass.pm
MyRegrClass.pm
my_script.pl
Well, if you want to have role/mixin type behavior and such just like in the other answer, you could use vanilla multiple inheritance, or better yet use something like Ovid's Role::Basic.
Sounds a bit like Log::Any.