On Fri, 10 Aug 2001, Jennifer Pan wrote:
> I have two list,
> @list1 and @list2, each element @list1 is unique (could be a hash I
> suppose)
>
> I want to find out all the elements @list2 that is an element in list1
> and have appeared two or more times
I would break this down algorithmically into two separate steps:
* find out which elements in @list2 are duplicated values
* find the matching elements in the subset of @list2 and @list1
Each step is well documented in 'The Perl Cookbook'.
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Where will it all end? Probably somewhere near where it all began.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]