Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Mapping URLs to code - in search of perlish dispatch schemes

by geektron (Curate)
on Jul 20, 2006 at 20:46 UTC ( #562713=note: print w/replies, xml ) Need Help??


in reply to Re: Mapping URLs to code - in search of perlish dispatch schemes
in thread Mapping URLs to code - in search of perlish dispatch schemes

As far as I know, there are no dispatchers based on query parameters. There may be a good reason for that.

Something similar can be accomplished by passing a coderef to mode_param() in CGI::Application. the executed code could then examine query parameters to enhance the dispatch mechanism.

  • Comment on Re^2: Mapping URLs to code - in search of perlish dispatch schemes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://562713]
help
Chatterbox?
[Discipulus]: ah! thanks shmem it works in strawberry 5.24
[shmem]: ah. Introduced in 5.22.0, see perl5220delta
[Discipulus]: if so the previous error is a bit misleading, anyway
[shmem]: well, previous to that << was always treated as the left-shift operator
[Eily]: or the here-doc operator
[Eily]: which is actually how it is parsed in this case
[shmem]: older versions of perl can't guess that "use of <<>> may be implemented someday" :D
Discipulus how much wise my brothers are? ;=)
[karlgoethebier]: thanks ;-
[karlgoethebier]: ...to all for reading the manuals

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-07-21 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (320 votes). Check out past polls.