RE: Removing duplicates in arrays

2003-10-22 Thread Marcos . Rebelo
keys{%{{map {$_=>$_}(@array)}}); -Original Message- From: Marius Roets [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 7:29 AM To: [EMAIL PROTECTED] Subject: Removing duplicates in arrays I know this has been asked before, but I can't seem to find it. Is there a simple way to

Re: Removing duplicates in arrays

2003-10-22 Thread Stefan Lidman
>I know this has been asked before, but I can't seem to find it. >Is there a simple way to remove duplicates from an array. >Currently I sort the array, and then iterate through the sorted array, >and push elements into a new array when its different than the previous >one. I have read somewhere of