skx has asked for the wisdom of the Perl Monks concerning the following question:
I've inheritted a CGI application which I think is a good fit for CGI::Application as it has a lot of "page" states.
Unfortunately these pages are currently called by different parameters - rather than one.
For example I have the following requests:
?page=top ?stats=1 ?new=1
Rather than the CGI::Application-styled single run mode:
?mode=stats ?mode=article ?mode=new
Given that I wish all the old historical links to work, is there a way of shoe-horning CGI::Application to work with these parameters? Or would I be better off sticking with my current dispatch-table styled approach?
(I guess I could use mod_rewrite to coerce things, but that seems like the worst of both worlds)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting to CGI::Application
by PodMaster (Abbot) on May 14, 2005 at 10:05 UTC | |
by skx (Parson) on May 14, 2005 at 11:14 UTC | |
|
Re: Converting to CGI::Application
by mpeters (Chaplain) on May 14, 2005 at 23:22 UTC | |
|
Re: Converting to CGI::Application
by derby (Abbot) on May 14, 2005 at 10:41 UTC |