Next | Tricks of the Wizards | 111 |
NEXT is the solution to this problem
Each method calls ->NEXT::method
This magically redispatches to the correct 'next' method
For example:
Note that when $self->NEXT::method in class A depends on the class of $self
If $self is a D, then A dispatches to C
If $self is a B, then A dispatches nowhere
Damian Conway invented this
Next | Copyright © 2003 M. J. Dominus |