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

Kieren Diment diment at gmail.com
Tue Dec 8 20:04:46 GMT 2009


On Wed, Dec 9, 2009 at 6:39 AM, Brian Cassidy <brian.cassidy at gmail.com> wrote:
> 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.



More information about the Catalyst mailing list