in reply to Re^3: Inheritable configuration options.... but with default values?
in thread Inheritable configuration options.... but with default values?
yeah, but I tought that's what the OP asked for !?!
> > > Basically i have a series of classes and subclasses, each level adding a bit more functionality to its parent and in each class i have behaviour which can be modified by configuration options which are specific to that class
see? Class not Object.
> That's a lot of boiler work (for me ;) ).
Well my code was shorter than yours. ;)
(...and I'm sure this could be even shortened further with some sugar)
> and for a package variable %{$self->SUPER::cfg};
I doubt it, according to the docs cfg here - i.e. the part after SUPER:: - must be a sub in the super class.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|