grep { $hash{$_} == 2 } keys %hash;
print join ' ',@duplicate;
-Original Message-
>From: anand kumar <[EMAIL PROTECTED]>
>Sent: Feb 6, 2006 2:34 AM
>To: beginners@perl.org
>Subject: Duplicates elements in an array
>
>Hi all
>
> I h
anand kumar am Montag, 6. Februar 2006 08.34:
> Hi all
>
> I have an array with hundreads of elements in it. Can anyone
> suggest the easiest way to keep only the duplicate elements in the array.
Hi Anand
Depends a bit if you want to keep all duplicates of a duplicate element or
jus
Hi all
I have an array with hundreads of elements in it. Can anyone
suggest the easiest way to keep only the duplicate elements in the array.
Thanks in Advance for the help
Regards
Anand
-
Jiyo cricke