in reply to Method inheritance

Inheritance only works for method calls, but what you do is a subroutine call.

This should work intead:

sub run { my $self = shift; $self->_dosomething; ... }

Or you can directly call one::_dosomething, but then there's no need for inheritance in the first place.

Replies are listed 'Best First'.
Re^2: Method inheritance
by alafarm (Novice) on May 11, 2012 at 17:33 UTC
    Thanks. What was confusing me is that (correct me if I'm wrong), if these two modules were not specified as "packages" and without the "@ISA", then the subroutine call would have worked.