use strict;
use lib '/wasd_root/src/perl/cgipm';
use CGI qw(:standard);
my $query = new CGI;
print $query->header(),
"Using GGI.pm to demonstrate a POST
Content-Length: ", $ENV{CONTENT_LENGTH};
#CGI.pm 5.6 does not have a 'dump' method! (plagiarized from 5.8)
if ($query->param) {
my($param,$value,@result);
push(@result,"
");
foreach $param ($query->param) {
my($name)=$query->escapeHTML($param);
push(@result,"- $param");
push(@result,"
");
foreach $value ($query->param($param)) {
$value = $query->escapeHTML($value);
$value =~ s/\n/
\n/g;
push(@result,"- $value");
}
push(@result,"
");
}
push(@result,"
");
print join("\n",@result);
} else {
print "";
}
if (defined $main::perlRTEcount) {
print "Engine usage count: ", $main::perlRTEcount,
"
Cached script usage count: ", $main::perlRTEcache;
}