in reply to Re^2: If Exists in an Array?
in thread If Exists in an Array?

I prefer:
my %target_matches = map { chomp; $_,undef } <$MATCHFILE>;

No need for @keys that way.