The following module was proposed for inclusion in the Module List:
modid: CGI::URI2param
DSLIP: bdpfp
description: extract query keys and values out of an URI
userid: DOMM (Thomas Klausner)
chapterid: 15 (World_Wide_Web_HTML_HTTP_CGI)
communities:
mod_perl mailing list
similar:
CGI::PathInfo
rationale:
CGI::URI2param takes a request object (as supplied by CGI.pm or
Apache::Request) and a hashref of keywords mapped to regular
expressions. It applies all of the regexes to the current URI and
adds everything that matched to the 'param' list of the request
object.
With CGI::URI2param you can instead of:
http://somehost.org/db?id=1234&style=fancy
present a nicerlooking URL like this:
http://somehost.org/db/style_fancy/id1234.html
and still get at the parameters using $req->param('id') etc
The difference to CGI::PathInfo is that CGI::PathInfo only parses
URL of the format /key-value/otherkey-otherval I asked the author of
CGI::PathInfo if he would like to incorporate my idea into his
module, and he declined, so I wrote CGI::URI1param
enteredby: DOMM (Thomas Klausner)
enteredon: Thu Jul 5 11:24:14 2001 GMT
The resulting entry would be:
CGI::
::URI2param bdpfp extract query keys and values out of an URI DOMM
Thanks for registering,
The Pause Team
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=51000000_d94005383adfc776&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=51000000_d94005383adfc776&SUBMIT_pause99_add_mod_insertit=1