To expose the environment that your client browser sees for each request, you could use the following (note, do not leave this lingering in production code, only use it for debugging):
print "<!--\n";
foreach my $param ( sort keys %ENV ) {
print "$param is: $ENV{$param}\n";
}
print "-->\n";