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 |