in reply to cgi problem returns

You have to create a CGI object to use the params:
... use CGI; my $q = CGI->new; my @teamOption = $q->param("teamOption"); ...