[GLLUG] CGI/Perl Script

chuck williams chuckwilliams1@netscape.net
Tue, 20 Aug 2002 10:24:01 -0400


I think this is a simple approach: 

if ($ENV{'REQUEST_METHOD'} eq 'GET') {
$buffer = $ENV{'QUERY_STRING'};
($first, $second, $third, $fourth, $fifth, $sixth) = split(/&/, $buffer);
# whatever
}
and the corresponding call:
http://www.you.com/cgi-bin/script.cgi?param1&param2&param3&param4&param5&par 
am6& 

chuck williams 


Adam McDougall extolled: 

> Could anyone point me to or give me a crash course in passing multiple 
> variables supplied via a url to a Perl script?