Now for the fun part: Perl takes the class in which the instance was
blessed, in this case Horse, and uses it to locate
the subroutine to invoke the method, as if you had said
Horse->sound instead of
$tv_horse->sound. The purpose of the original
blessing is to associate a class with that reference to allow the
proper method (subroutine) to be found.
In this case, Horse::sound is found directly
(without using inheritance), yielding the final subroutine
invocation:
Horse::sound($tv_horse)
Note that the first parameter here is still the instance, not the
name of the class as before. neigh is the return
value, which ends up as the earlier $noise
variable.