The line 'use parent -norequire => "Parent"' generates a compilation error.
I guess I'm still dragging too much Java baggage along with me. In my 'real life' implementation of this idea, the 'Parent' package contains an elaborate routine that calls a number of supporting subroutines to control its operation. The idea was to override the supporting subroutines to create new behaviors.
I was trying to avoid making it truly OO as there was only one use of the class after it was created.
In reply to Re^4: Overriding 'static' methods of a perl package
by Anonymous Monk
in thread Overriding 'static' methods of a perl package
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |