⭐ in reply to How do I find if an array has duplicate elements, if so discard it?
A one-liner from "Effective Perl Programming"...