in reply to Array::Compare issues
@ARGV = qw(file1 file2); my %found_in; while (<>) { $found_in{$_} .= $ARGV; } print "file1 and not file2:\n"; print grep { $found_in{$_} eq "file1" }, keys %found_in; print "file2 and not file1:\n"; print grep { $found_in{$_} eq "file2" }, keys %found_in;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Array::Compare issues
by sunadmn (Curate) on Oct 06, 2003 at 14:06 UTC | |
|
Re: •Re: Array::Compare issues
by sunadmn (Curate) on Oct 06, 2003 at 17:09 UTC | |
by merlyn (Sage) on Oct 06, 2003 at 17:49 UTC | |
by sunadmn (Curate) on Oct 06, 2003 at 18:26 UTC |