Remove duplicates from array
Posted on 2006-10-26
I have a program that sends out emails to a generated list separated by semi-colons. There are never more than 5 addresses but I want to be sure that I don't have any duplicates. I can load them into an array using split(emails, ";"). How do I sort and remove duplicates?