|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Remove Duplicates from Arrayby dragonchild (Archbishop) |
| on Oct 31, 2008 at 21:03 UTC ( #720786=note: print w/ replies, xml ) | Need Help?? |
|
Don't do that. Use List::MoreUtils and the uniq() function. uniq() will work in cases where yours won't, such as lists of objects and other edge cases. Plus, List::MoreUtils has a ton of really good functions to have on hand. My criteria for good software:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||