The answer by dvergin is actually about 50% faster for lists smaller than ~2000 items.my %h; grep { !$h{$_}++ } @list;
In reply to Re: How can I display a unique array if it contains some repeated elements
by tadman
in thread How can I display a unique array if it contains some repeated elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |