in reply to Inheritance not working...
My guess is that you have the two packages in different files. In which case you have to ensure that Object package is loaded by the file containing objFood.
Either use use base qw(Object) instead of the assignment to @ISA, or do an explicit use Object in the objFood file.
|
|---|