## each missed field is placed in a new array for my $i(@required) { if (! exists $FORM{$i}) { push @missed_fields, $i; } }