my %seen;
grep !$seen{$_}++, @LIST;
and then sort the list by names:
sort {uc($a) cmp uc($b)} @LIST;
( Note: I copied the first code snippet from https://stackoverflow.com/questions/7651/how-do-i-remove-duplicate-items-from-an-array-in-perl )
In reply to Re: Counting matches and removing duplicates
by harangzsolt33
in thread Counting matches and removing duplicates
by LexPl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |