![]() | |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]() | |
![]() |
http://hostname/progname?entry1=value1&entry2=value2&textarea=blahblahIf the web server is configured to have "progname" as a CGI script, it will run that program. CGI is nothing more than a specification of some environmental variables that the program can use to know the "environment" it was launched. Values such as the server version, last url referenced, and authorization information are included in this specification.
Perl offers quick access to the environmental variables through a special
associative array, %ENV
.
################################################################ # Process Query ################################################################ @cgiPairs = split("&",$ENV{'QUERY_STRING'});
The National Center for Supercomputing Applications
University of Illinois at Urbana-Champaign
johnsonb@ncsa.uiuc.edu
Last modified: June 19, 1997