in reply to Removing Duplicates in an array?
That works for me.@array = sort { $a cmp $b } @array; # Now remove dups. %saw = (); @de_duped_array = grep (!$saw{$_}++, @array);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing Duplicates in an array?
by davorg (Chancellor) on Jun 26, 2001 at 17:57 UTC | |
by the_0ne (Pilgrim) on Jun 26, 2001 at 18:32 UTC | |
|
Re: Re: Removing Duplicates in an array?
by the_0ne (Pilgrim) on Jun 26, 2001 at 17:39 UTC |