in reply to Re: ISA with packages ... A barebones minimal example
in thread ISA with packages ... A barebones minimal example

The B::method syntax is a package reference. It looks for a method inside package B.

No, it looks for a subroutine inside package B. A subroutine is not a method unless it is called with the pointy arrow syntax. This may be slightly confusing, but it's important to pay attention to the difference, because methods and normal subroutine calls receive different arguments.

B::foo; # subroutine call B->foo; # method call

Replies are listed 'Best First'.
Re^3: ISA with packages ... A barebones minimal example
by radiantmatrix (Parson) on Oct 10, 2004 at 06:34 UTC

    Sorry, I forgot that OO-language CS types use "method" to mean exclusively object methods. I generally use the term as a generic way of saying "subroutine, function, procedure, accessor, etc.". So, using my nomenclature:

    B::bar; #package method (subroutine, in this case) B->bar; #object method (subroutine, in this case)
    Hope that clears up any vaguities in my earlier post.

    radiantmatrix
    require General::Disclaimer;