3 ms·
Note that the two examples are only the same if all subroutines are global. The difference is that (usually) methods are looked up where the classes are define
by perlgeek 14y ago
Note that the two examples are only the same if all subroutines are global.
The difference is that (usually) methods are looked up where the classes are defined, but subroutines are looked up where they are called. So visibility is different in the case of method invocation.