if ($ENV{'REQUEST_METHOD'} eq 'POST') {  read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); } else {  $buffer = $ENV{'QUERY_STRING'}; } @pairs = split(/&/, $buffer); foreach $pair (@pairs) {        ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/\"//ge; $value =~ s/%22//ge; $value =~ s/\%22//ge; $value =~ s/~!/ ~!/g; $value =~ s/\|//g; $FORM{$name} = $value; }