#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html>\n";
print "<head>\n";
print "<title>Environment</title>\n";
print "</head>\n";
print "<body bgcolor=ffffff>\n";
print "<h1>Environment</h1>\n";
foreach $x (keys(%ENV)) {print "$x=$ENV{$x}<br>\n";}
print "</body>\n";
print "</html>\n";
exit;
You could then run the program and see the environment that the program runs in.