my %Params; if($Query->param) { %Params = $Query->Vars; } #### while (my ($key, $value) = each %Params) { my $$key = $value; }