[cgiapp] How to retrieve 'action'

Richard Jones ra.jones at dpw.clara.co.uk
Wed Dec 3 06:03:47 EST 2008


As in Catalyst action. Currently doing this:

my $action = (split '/', $ENV{PATH_INFO})[1];

So in a request http://localhost/myapp/admin/list_users, the action 
would be 'admin', so I can highlight the appropriate navigation link.

But I'd assume there's a better way, something build-in to CGI::App?
-- 
Richard Jones


More information about the cgiapp mailing list