home / experts / perl / tutorial / 3 |
|
|
PerlHoo, Part IIBuilding the URLIn page 3 of PerlHoo, Part I, we discussed how PerlHoo interacts with URLs to display directory categories. The category is stored in the PATH_INFO environment variable when we append it to the URL of our PerlHoo script.
Example:
The URL to the script would be:
The PATH_INFO environment variable would contain:
The easiest way to tell the perlhoo.pl script we wanted to recommend a new site
would be to simply add
some information to the QUERY_STRING environment variable. In the URL, we will do it by
appending A better way to visualize this concept is to print all the CGI environment variables
to the browser with our handy printenv.pl script:
You should see some similar to the following:
|
home / experts / perl / tutorial / 3 |
|
Produced by Jonathan
Eisenzopf and
Created: April 20, 1999
Revised: April 21, 1999
URL: http://www.webreference.com/perl/tutorial/3/