Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: how do I learn about Perl CGI programming?

by matthewb (Curate)
on Mar 30, 2005 at 15:48 UTC ( #443523=note: print w/replies, xml ) Need Help??

in reply to how do I learn about Perl CGI programming?

I'm not sure that everyone else is following what you're talking about but it may be me so apologies if so.

You can access the query string with $cgi_object->self_url(), split it on the forward-slash into an array, shift off the sections and get your script to respond based on what they contain. An example of this procedure can be found in the source of Maypole (look at the parse_path() method.

If, for whatever reason, you just want to set up a simple web app that works this way to see how you get on, you might find CGI::Application::Dispatch useful; it loads CGI::Application modules and runs their so-called `run-modes' according to the path in the query string.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://443523]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-09-28 06:40 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (143 votes). Check out past polls.