my %unique; @unique{@dups} = (); my @uniq = keys %unique;
If you want this data to be unique you might be better to use a hash in the first place.
cheers
tachyon
In reply to Re: Removing duplicate elements from an array
by tachyon
in thread Removing duplicate elements from an array
by mkurtis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |