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
In reply to Re: array comparison question
by Fletch
in thread array comparison question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |