Yes, Foo could override the method, then call $self->SUPER::method. (Slight difference, same idea.)
Now, if you're talking about doing some sort of plugin idea ... that's getting really complicated, involving on-the-fly modifications to @ISA, etc. Essentially, what it sounds that you really want to do is create a dispatch table that would have, instead of a coderef, a list of coderefs (or function names) that would be called in that order.
There has to be a better way to do what you want to do.
Period.
Maybe if you started describing what it is you want to design for, we can help.
------ We are the carpenters and bricklayers of the Information Age. Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. | [reply] |
Yes, Foo could override the method, then call $self->SUPER::method. (Slight difference, same idea.)
Of course but important difference ;-)...I used Foo so as not to confuse the issue.
I mucked with dispatch tables and it didn't seem right...oh well back to the drawing board. Thanks.
| [reply] |