in reply to Can One Predeclare a Package's Methods?
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).
|
|---|