use CGI; my $cgi = CGI->new($string); my $rangeid = $cgi->param("RANGEID");