in reply to How do I find if an array has duplicate elements, if so discard it?

A one-liner from "Effective Perl Programming"...

@uniq = sort keys %{ { map { $_, 1 } @list } };
  • Comment on Re: How do I find if an array has duplicate elements, if so discard it?
  • Download Code