in reply to array comparison question
my %present; for my $a ( \@array1, \@array2, \@array3 ) { $present{ $_ }++ for @{ $ +a } } my @only_two = grep $present{ $_ } == 2, keys %present;
--
We're looking for people in ATL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array comparison question
by jhourcle (Prior) on Aug 23, 2005 at 14:07 UTC | |
|
Re^2: array comparison question
by reasonablekeith (Deacon) on Aug 23, 2005 at 14:01 UTC | |
by lidden (Curate) on Aug 23, 2005 at 14:49 UTC | |
by spiritway (Vicar) on Aug 24, 2005 at 05:03 UTC |