in reply to Re: 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

Thankyou so much for the help. I really appreciate it. But I am unable to print the line having matched ID via (print $line if exists $ids{$id};). I am trying to figure it out :(

  • Comment on Re^2: comparing an ID fom one file to the records in the second file

Replies are listed 'Best First'.
Re^3: comparing an ID fom one file to the records in the second file
by Laurent_R (Canon) on Dec 02, 2017 at 11:45 UTC
    Hi ag88,

    please check the content of your hash. There may be invisible characters in the lines of your first file (like extra space, carriage return, etc.). The best might be to use something like the Data::Dumper module (which is core, so it should be on your machine).