marlin has asked for the wisdom of the Perl Monks concerning the following question:
Hello!
I am very new to Perl and CGI scripting. I know a fair bit of the Perl language but I'm having trouble putting together a CGI-driven website.
How are CGI-run websites usually organized? Is there a single script that is called when a user visits the website, and then that single script will perform all the website functions like accepting inputs, writing to a database and generating html for all the pages?
Or, is there a directory of perl scripts that are embedded into the html pages of the website? And they can each pass info to each other?
Currently I have it set up so that index.html has a Perl script embedded in the center and it outputs all the main content, but how do I make it clear the page or switch to another script, and is that even a good idea?
My goal is to make a server-side Perl program that will accept inputs from a web page, do several computations with these inputs, and then post the results in HTML (and eventually SVG) and continuously do this on the same page without having to refresh.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI layout
by davido (Cardinal) on Oct 13, 2011 at 17:07 UTC | |
|
Re: CGI layout
by Khen1950fx (Canon) on Oct 13, 2011 at 16:34 UTC | |
|
Re: CGI layout
by aaron_baugher (Curate) on Oct 13, 2011 at 20:32 UTC | |
|
Re: CGI layout
by marlin (Initiate) on Oct 13, 2011 at 19:30 UTC | |
|
Re: CGI layout
by Anonymous Monk on Oct 14, 2011 at 00:41 UTC | |
|
Re: CGI layout
by nando (Acolyte) on Oct 14, 2011 at 06:34 UTC | |
by Anonymous Monk on Oct 14, 2011 at 10:07 UTC | |
by Anonymous Monk on Oct 14, 2011 at 10:48 UTC | |
by nando (Acolyte) on Oct 14, 2011 at 12:51 UTC |