Thank you everyone for responding to my question.
perdeep
-Original Message-
From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 9:26 AM
To: Mehta, Perdeep
Cc: Perl-Unix-Users (Perl-Unix-Users)
Subject: RE: [Perl-unix-users] parsing multiple arrays
In
In general, when you have basic algorithmic task such as below, I recommend
first using http://search.cpan.org to find out if someone has packaged the
functionality you need as a module. Usually you find such a module. And in
fact, I found List::Compare, which seems to do exactly what you have
requ
It's not recursive, but it should do the job...
my %ids = ();
foreach (@arr1) { $ids{$_}++;}
...
foreach (@arr8) { $ids{$_}++;}
foreach (keys(%ids)) { print $_ if $ids{$_} == 8; }
This assumes that each array contains only unique ids.
-David
On Tue, 17 Aug 2004 08:53:21 -0500, Mehta, Perdeep
<[