in reply to Invoking method in another package
In a standard situation is there anything wrong (slow, etc) with the following:I can imaging why it works. It is, IMO, only intended to call a SUPER method in case you have multiple inheritance, thus more than one parent in @ISA, and where more than one parent class have a thisone method. This way, you can specify which parent class you want to invoke the sub from.my $fb = new Foobar; $fb->Barfoo::thisone;
This is all pretty low level. I would accept it as a hack (still better than leaving these things up to chance, I suppose), in the code that implements the class Foobar, but not in normal user code, which merely uses Foobar.
|
|---|