Re: [cgiapp] How to retrieve 'action'

2008-12-03 Thread Richard Jones
Jason Purdy wrote: This is when CGI::Application::Dispatch helps out, tremendously. Once you set it up, the action in your case translates to the runmode along with optional parameters. http://search.cpan.org/~markstos/CGI-Application-Dispatch-2.14/lib/CGI/Application/Dispatch.pm Yes, sorry

Re: [cgiapp] How to retrieve 'action'

2008-12-03 Thread Richard Jones
Clayton Scott wrote: On Wed, Dec 3, 2008 at 6:03 AM, Richard Jones <[EMAIL PROTECTED]>wrote: 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

Re: [cgiapp] How to retrieve 'action'

2008-12-03 Thread Jason Purdy
This is when CGI::Application::Dispatch helps out, tremendously. Once you set it up, the action in your case translates to the runmode along with optional parameters. http://search.cpan.org/~markstos/CGI-Application-Dispatch-2.14/lib/CGI/Application/Dispatch.pm - Jason Richard Jones wrote: A

Re: [cgiapp] How to retrieve 'action'

2008-12-03 Thread Clayton Scott
On Wed, Dec 3, 2008 at 6:03 AM, Richard Jones <[EMAIL PROTECTED]>wrote: > 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 na

[cgiapp] How to retrieve 'action'

2008-12-03 Thread Richard Jones
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::