in reply to hash and matching synonyms

If I understand you correctly, you just need to change this line:

if (exists $hash{$nam[0]})
to this:
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.

Replies are listed 'Best First'.
Re^2: hash and matching synonyms
by Anonymous Monk on Jun 03, 2007 at 18:30 UTC
    Same problem is coming again.....I trimmed the input files to minimum +also..........
      Try posting your revised code along with sample name500 and name_sym files, with just a few lines in each, and your expected and actual match and nomatch files.