Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: how do I learn about Perl CGI programming?

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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.


MB

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://443523]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.