in reply to Re^2: Perl: How to print unmatched data after comparison of two files?
in thread Perl: How to print unmatched data after comparison of two files?

No worries, you just need to reverse the test that decides which lines to print. One way is to change the if statement to an "unless" statement.

print "$_\n" unless exists $ids{$id};
  • Comment on Re^3: Perl: How to print unmatched data after comparison of two files?
  • Download Code

Replies are listed 'Best First'.
Re^4: Perl: How to print unmatched data after comparison of two files?
by WWq (Novice) on Jul 17, 2013 at 07:17 UTC
    Yes It works perfectly. Thanks for your guidance. =)