in reply to Re: Removing Duplicates in an array?
in thread Removing Duplicates in an array?

You have to first make sure the array is sorted...

No you don't. This method works just fine on an unsorted array.

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>

  • Comment on Re: Re: Removing Duplicates in an array?

Replies are listed 'Best First'.
Re: Re: Re: Removing Duplicates in an array?
by the_0ne (Pilgrim) on Jun 26, 2001 at 18:32 UTC
    Thanks davorg, you're right. I was thinking of a previous version I had tried of that statement that didn't use a hash in the way it is using here.