Re: Duplicates elements in an array

2006-02-06 Thread Jeff Pang
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

Re: Duplicates elements in an array

2006-02-06 Thread John Doe
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

Duplicates elements in an array

2006-02-05 Thread anand kumar
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