Since my understanding of inheritance in Perl is based on using @ISA, I am confused. In an object method invokation, how does an IOC object inherit the PVC methods/subroutines?
The Object::InsideOut section on Foreign class inheritance says ...
One method of declaring foreign class inheritance is to add the class name to the Object::InsideOut declaration inside your package:
package My::Class; {
use Object::InsideOut qw(Foreign::Class);
...
}
This allows you to access the foreign class's static (i.e., class) methods from your own class.
For example, suppose Foreign::Class has a class method called foo.
With the above, you can access that method using My::Class->foo() instead.
What about the foreign class's object methods? IMHO, the @ISA array is central to how inheritance works. If the class name is not in the @ISA array, I worry that IOC won't be able to inherit the PVC's methods.