in reply to removing duplicates entries from an array
Is it possible that you are throwing away the result of the RDup call? In specific, shoulnd't
RDup(@unique); [download]
@unique = RDup(@unique); [download]