use CGI; my $query = CGI->new(); my @selected = $query->param("listName"); #### #### Method: param # Returns the value(s)of a named parameter. # If invoked in a list context, returns the # entire list. Otherwise returns the first # member of the list.