use CGI; ... my $cgi = new CGI(); ... my @paramsInOrder = $cgi->all_parameters();