If I understand you correctly, you just need to change this line:
to this:if (exists $hash{$nam[0]})
if ( grep { exists $hash{$_} } @nam )
If not, then trim both your input files to the bare minimum of data needed to demonstrate the failing behavior, and post them in this thread.
In reply to Re: hash and matching synonyms
by Util
in thread hash and matching synonyms
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |