use CGI; $query=CGI::new(); $param1=$query->param('param1'); @params=$query->param; #gets a list of all the names of the parameters passed to the script