Next | Tricks of the Wizards | 112 |
If some of the methods are missing, NEXT figures that out:
But how does this all work?
NEXT is essentially a big fat AUTOLOAD
->NEXT::method wants to call NEXT::method
But there isn't one, so it calls NEXT::AUTOLOAD instead
NEXT::AUTOLOAD examines the inheritance hierarchy
Figures out the correct 'next' method
Jumps there with magic goto
Next | Copyright © 2003 M. J. Dominus |