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 |