Next | Tricks of the Wizards | 115 |
That version returns silently if there is no 'next' method
You might like it to die instead
For example, an AUTOLOAD might decide it's not prepared to emulate a certain function
It wants to delegate control to the next AUTOLOAD, which might handle it
But if there are no more AUTOLOADs, it should croak, since nobody will handle it
$self->NEXT::ACTUAL::method(...) will croak if there is no 'next' method
The code is simple
Next | Copyright © 2003 M. J. Dominus |