The keys of %unique are the unique values.my @list = qw(some list of of non unique words); my %unique = (); foreach my $item (@list) { $unique{$item}++; }
In reply to Re: Removing Duplicates in an array?
by voyager
in thread Removing Duplicates in an array?
by pharaoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |