Gosh.. what ever happened to good ol' grep
my %seen;
@uniq = grep !$seen{$_}++, @array;
> -----Original Message-----
> From: Jon Howe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: remove duplicate values from array
>
>
> Can anyone tell me the best method for removing duplicate
> array values.
>
> eg:
>
> @array = qw( a a a b b b c);
>
> becomes after some operation I cant seem to figure:
>
> @new_array_or_same = (a b c);
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]