bar() will get $self if you call it like this:
sub foo { my $self = shift; $self->bar( "do something" ); }
If foo() had to call a method in the parent class:
sub foo { my $self = shift; $self->SUPER::foo( "do something" ); }
In reply to Re: Inheritance and Internal object methods
by fglock
in thread Inheritance and Internal object methods
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |