But notice that CGI::p in this case is not actually a subroutine; it is implemented using AUTOLOAD.
And, as noted above, it's impossible to pre-declare a method call because it's subject to inheritance (for this same reason, prototypes don't work for methods).
In reply to Re: Can One Predeclare a Package's Methods?
by bikeNomad
in thread Can One Predeclare a Package's Methods?
by sierrathedog04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |