my $check=param('check'); my $value=param('value'); if (($value) && ($check)) { #update text file here or go to sub routine } else { #show report }