What you are talking about is very similar to the question, "PerlFAQ 4: How can I remove duplicate elements from a list or array?," which I think suggests methods you may wish to look into.
(Personally, I tend toward:
-but that's just me.)
In reply to Re: Add distinct elements to an array
by atcroft
in thread Add distinct elements to an array
by cosmicsoup
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |