[GLLUG] CGI/Perl Script
Adam McDougall
mcdouga9@egr.msu.edu
Tue, 20 Aug 2002 10:02:24 -0400
On Sun, Aug 18, 2002 at 09:24:06PM -0400, Matt Graham wrote:
On Sunday 18 August 2002 20:53, after a long battle with technology,
Mike Johnson wrote:
> Can anyone suggest a good CGI or perl script that is easily
> configurable and and works well.
#!/usr/bin/perl -w
use CGI;
print header, h1("Hello, world!")
print end_html;
Works well. Configurable by editing in your favorite text editor. Or
is that not what you meant?
Maybe you should phrase your question a bit more explicitly, like "How
do you get mod_perl working with Apache on Linux?", or "What is a good
CGI-Perl based set of scripts that does $FOO?", or "How can I implement
a site that does $BAR using CGI-Perl scripts that query a $BAZ
database?"
Since you are so inviting... :)
Could anyone point me to or give me a crash course in passing multiple
variables supplied via a url to a Perl script? Basically I want to
have a program pass several arguments to a CGI script that would
combine them to create a file path which it would deal with. I know
trusting user supplied paths is bad, so I figure I could give it
each component of the path seperately and the CGI could combine them
using /'s to form a real path, so I can discard any /'s from user input.