use CGI; my $query = CGI->new(); my @selected = $query->param("listName");