if ($cgi->param('Submit') eq "Go") ... #### my $submit = $cgi->param('Submit') || ""; if ($submit eq "Go") ...