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.
In reply to Re: Inheritance not working...
by adrianh
in thread Inheritance not working...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |