in reply to using CGI::Application::Dispatch in my existing application

http://search.cpan.org/src/MARKSTOS/CGI-Application-Dispatch-2.13/t/ contains examples, anyway, try
# index.cgi use CGI::Application::Dispatch; CGI::Application::Dispatch->dispatch( table => [ '' => { app => 'Myapp', } '/' => { app => 'Myapp', } 'Item' => { app => 'Myapp', id =>'Item', rm => 'view', } 'find' => { app => 'Myapp', id =>'Item', rm => 'find', } 'view/Item' => { app => 'Myapp', id =>'Item', rm => 'view', } 'edit/Item' => { app => 'Myapp', id =>'Item', rm => 'edit', }, 'create/Item' => { app => 'Myapp', id =>'Item', rm => 'create', }, ], ); #

Replies are listed 'Best First'.
Re^2: using CGI::Application::Dispatch in my existing application
by punkish (Priest) on Oct 29, 2008 at 18:11 UTC
    I did say I am being dense here, and that denseness continues. I saw the code you refer to. What am I to do with that code? Does it go in my package or in my index.cgi? It seems it should go in index.cgi, but putting it there (with the necessary modifications, of course) and then going to http://<server>/myapp/index.cgi/view, ends up with the error

    No such run mode 'view' at .../index.cgi

    Additionally, I can't really have id => 'Item' hard coded in my script. The string 'Item' is shown just for example. It changes all the time.

    Sorry, I am not getting it.

    --

    when small people start casting long shadows, it is time to go to bed
      Jeebus, I finally understand it!

      CAD docs need some serious rewrite (and I shall do so, soon as I figure *everything* out about it) especially for someone like me who already has a working CGI::App application and then wants to add CAD to it (and happens to be a bit dense like me).

      Great app, but docs need to be improved.

      --

      when small people start casting long shadows, it is time to go to bed
        Please do share your findings so that the original question has an answer within this thread.