#$cgi is cgi object my $string = $cgi->param('string'); print quotemeta $string;