http://qs1969.pair.com?node_id=1149577


in reply to Inheritance confused

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

$self->SUPER::chkAccessRight
that construct will move up the inheritance tree to find the next chkAccessRight method. This construct
$self->{Parent}->SUPER::chkAccessRight
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