Re: Comparing items from multiple files

John Douglas Porter <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
my %data; @data{@ARGV} = ();

/$regex/ && $data{$ARGV}{$1}++ while <>;

print
map { my $this = $_;
map { my $that = $_;
map { "In $this but not $that $_\n" }
grep { not exists $data{$that}{$_} } keys %{$data{$this}} }
grep { not $_ eq $this } keys %data } keys %data;


-- 
John Douglas Porter



__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.