in reply to (tye)Re: plugins and inheritance
in thread plugins and inheritance
Now calls to MainOne::Foo would still go to MainOne itself, right? You could provide new functions with this idea, but not override existing ones.package MainOne; sub foo { ...} package NewPlugin; unshift @MainOne::ISA, __PACKAGE__; sub foo { warn "new plugin!" ... }
dave hj~
|
|---|