for my $url (map $cgi->param($_), qw(url1 url2)) { # blah }