That works for me.@array = sort { $a cmp $b } @array; # Now remove dups. %saw = (); @de_duped_array = grep (!$saw{$_}++, @array);
In reply to Re: Removing Duplicates in an array?
by the_0ne
in thread Removing Duplicates in an array?
by pharaoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |