Viewing all the environment variables.
if you would like to see all the environment vairiables available to you,
you can create a little script to do just that. Remember, however, that the
results depend on how the script is called (with POST or GET), and on what
server you use.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head><title>Environment Variables</title></head><body>";
foreach $env_var (keys %ENV) {
print "<font color=red>$env_var</font> is set to
<font color=blue>$ENV{$env_var}</font>.<br />\n";
}
print "</body></html>";
|