package Cow;
our @ISA = qw(Animal);
However, if you think your code might be used by people stuck with
Perl 5.005 or earlier, it's be best to avoid
our.
If you're bringing in the class from outside, via an
object-oriented module, change:
package Cow;
use Animal;
use vars qw(@ISA);
@ISA = qw(Animal);
to just:
package Cow;
use base qw(Animal);