in reply to Pretty URLs in CGI::Application

You could stick that code in your app under cgiapp_prerun() using prerun_mode(). See the CGI::Application documentation.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Pretty URLs in CGI::Application
by carthag (Scribe) on Sep 16, 2003 at 20:36 UTC

    I had tried before, but I couldn't get it to work properly, but following your advice, I looked at the documentation again and got a working solution using a sub reference in mode_param() in setup containing the code I previously had in my index file, with an added return $q->param('op') at the end. That worked! Thanks :)

    Sorry for convoluted sentence