foreach my $name ($query->param) { $template->param($name => scalar $query->param($name)); }