See perlfaq4 for "duplicate". That shows the basic approach of removing duplicates from any kind of list.
Adapting this algorithm to your specific needs is left as an exercise.
In reply to Re^3: Compare usernames
by Corion
in thread Compare usernames
by PerlUserNL
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |