in reply to Re: Re: Re: Re: Instance field access from private methods
in thread Instance field access from private methods

The reason printWorld is not printing "HASH=" is that you are calling it incorrectly. You're invoking it as a subroutine, not as a method, so it is not inherited at all; it just happens to be in the same package as printGoodBye.

The correct way to call it is to use the version of printGoodBye in guha's post, which uses $self->printWorld() instead.