This is a FAQ. Please see perldoc -q duplicate or perlfaq4, How can I remove duplicate elements from a list or array. Obviously you want to keep just the duplicates instead of removing them, but doing so is left as an exercise.
In reply to Re: What is the best way to get just the duplicates from an array?
by Corion
in thread What is the best way to get just the duplicates from an array?
by wenD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |