my @values = map { $q->param($_) } $q->param; myfunc(\@values);