in reply to Re^2: comparing an ID fom one file to the records in the second file
in thread comparing an ID fom one file to the records in the second file

Check that your ID file does not have hidden spaces, tabs etc. Ensure 'clean' data by adding a regex

while (<FILEID>){ chomp; s/[\s]//g; $ID{$_}=1 if $_; }
poj
  • Comment on Re^3: comparing an ID fom one file to the records in the second file
  • Download Code

Replies are listed 'Best First'.
Re^4: comparing an ID fom one file to the records in the second file
by ag88 (Novice) on Dec 02, 2017 at 12:33 UTC

    Thanksalot poj. It worked. I have to run this script on multiple files now. I will get back to you for further help if needed. Thanksalot again :)