[Catalyst] How to get the name of the subroutine accessed?

Octavian Râşniţă orasnita at gmail.com
Tue Dec 8 21:05:58 GMT 2009


> 2009/12/8 Octavian Râşniţă <orasnita at gmail.com>:
>> Is there a similar method for $c->action that can be used for getting the
>> name of the subroutine which is accessed?
[...]
> If the information from my post from long ago [1] still holds true,
> you should be able to use $c->stack->[ -1 ] to get the most "recent"
> action.
$c->stack->[ -1 ] is what I used in the Dispatcher chapter of the book
for this very purpose.

Great! It was exactly what I needed.

Thank you all for your help.

Octavian




More information about the Catalyst mailing list