#!/usr/bin/perl # use strict; print "Content-Type: text/html\n\n"; print "
\n"; print "Stdin= [$in]\n"; print "\n"; } elsif ($ENV{'REQUEST_METHOD'} eq "POST") { my $in; sysread(STDIN, $in, $ENV{'CONTENT_LENGTH'}); print "
\n"; print "Stdin= [$in]\n"; print "\n"; } print "
\n"; foreach my $key (sort(keys(%ENV))){ print "$key", " "x(23-length($key)), "= $ENV{$key}\n"; } print "\n"; print "\n"; exit 0;