http://qs321.pair.com?node_id=435229


in reply to Adding Unique Elements to Array

Have you tried tieing a hash to Tie::InsertOrderHash? Add your values as the key of the hash and it will prevent duplicates. Pull back the keys with keys(), and it will return them in the order they were inserted.