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
In reply to Re^2: ISA with packages ... A barebones minimal example
by Anonymous Monk
in thread ISA with packages ... A barebones minimal example
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |