#!/usr/bin/perl use CGI; print "Content-type: text/plain\n\n"; print "Before the translation the returned string looks like this:"; print "$ENV{'QUERY_STRING'}"; print "\n"; print "After stripping out all the + the returned string looks better:\n"; $ENV{'QUERY_STRING'} =~ s/\+/\ /g; print $ENV{'QUERY_STRING'}; print "\n"; print "And after stripping out the foo=\n"; $ENV{'QUERY_STRING'} =~ s/foo=//g; print $ENV{'QUERY_STRING'}; print "\n"; print "If there happen to be & or % signs, they are URL encoded characters"; print "and must be converted,";