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?
... while (<DATA1>) { next if /^\s*$/; if (/^.+?\s(.+?)\s/) { print $_ if not exists $hash{$1}; # note HERE } } ..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl: How to print unmatched data after comparison of two files?
by MidLifeXis (Monsignor) on Jul 17, 2013 at 12:33 UTC | |
|
Re^4: Perl: How to print unmatched data after comparison of two files?
by WWq (Novice) on Jul 17, 2013 at 09:21 UTC |