Re: perlfqaq4: How can I remove duplicate elements from a list or array?
[email protected] (Paul Johnson) Fri, 21 Apr 2006 03:16:17 +0200
| Newsgroups | perl.perlfaq.workers,perl.documentation |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 20, 2006 at 04:49:18PM -0500, brian d foy wrote: > +If you want to use a module, try the C<uniq> function from > +C<List::MoreUtils>. In list context it returns the unique elements, > +reserving their order in the list. In scalar context, it returns the I suspect you meant "preserving" there, with a P. > +number of unique elements. -- Paul Johnson - [email protected] http://www.pjcj.net