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};
In reply to Re^3: Perl: How to print unmatched data after comparison of two files?
by Loops
in thread Perl: How to print unmatched data after comparison of two files?
by WWq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |