|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Inheritance confusedby derby (Abbot) |
| on Dec 07, 2015 at 13:59 UTC ( [id://1149577]=note: print w/replies, xml ) | Need Help?? |
|
You do not need to keep a reference to the parent, that's what SUPER does for you. In the Lite.pm constructor, drop the parent and in the methods, just that construct will move up the inheritance tree to find the next chkAccessRight method. This construct asks the *parent* object to move up it's hierarchy to find the method. Since the parent is the base, there's nowhere to move up to.
-derby
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||