Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How do I get an array which is the logical AND of the elements of two other arrays?by ayrnieu (Beadle) |
on Feb 25, 2006 at 23:00 UTC ( [id://532817]=note: print w/replies, xml ) | Need Help?? |
my @C = List::Compare->new(qw/-u -a/, \@A, \@B)->get_intersection;
Updated: and now that I actually read your code, I notice this problem:
The [...] you have here almost certainly isn't what you want. Try one of
In Section
Seekers of Perl Wisdom
|
|