in reply to delete an element from an array

splice will do as you ask, but if all you want to do is get a list of unique items in the array, see "How can I remove duplicate elements from a list or array?" in perlfaq4