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 requested.
Also, if you're not familiar with it already, you may want to check out the bioperl set of modules (http://search.cpan.org/~birney/bioperl-1.4/). You can create Sequence objects and perform operations on them, compare them, etc. I am not in bioinformatics so I'm unfamiliar with them, but you may be able to save yourself a lot of wheel-reinventing. There's also a whole series of O'Reilly books on the subject of perl and bioinformatics (http://bio.oreilly.com/). -- Mark Thomas [EMAIL PROTECTED] Internet Systems Architect DigitalNet, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;; > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mehta, Perdeep > Sent: Tuesday, August 17, 2004 9:53 AM > To: [EMAIL PROTECTED] > Subject: [Perl-unix-users] parsing multiple arrays > > > Hi, > > I have a set of 8 1D arrays each containing around 100 to 150 > ids. I want to recursive parse each array to find what is > common and unique across all 8 arrays and print that out. > Does any one know of an algorithm or has an idea that > recursively could do the task? > > Thanks in advance for your thoughts and time. > perdeep > > Perdeep K. Mehta, PhD > Hartwell Center for Bioinformatics & Biotechnology > St. Jude Children's Research Hospital > Memphis, TN 38105-2794 > > > > > _______________________________________________ > Perl-Unix-Users mailing list [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs