Re: How to use Inheritance with Inside-Out Classes and Hash Based Classesby ikegami (Pope)
|on Nov 15, 2005 at 17:13 UTC||Need Help??|
The short answer is that you can't. You need to dispatch the methods to the "base class" yourself instead of letting perl do it through @ISA, because you need to use ident on the invoker first. In other words, you need to wrap the "base class" instead of inheriting from it.
It can be done by removing the use base and adding one of the following functions:
You might want to override can method to check File::Samba in addition to your class. The following should do the trick, but it's untested:
The above function have been tested (IIRC), but to a limited extent.
There may be a better method.
Update: Various bits added for roundness.