Re: perlfqaq4: How can I remove duplicate elements from a list or array?
[email protected] (brian d foy) Fri, 21 Apr 2006 15:15:53 -0500
| Newsgroups | perl.perlfaq.workers,perl.documentation |
|---|---|
| Message-ID | <210420061515530868%[email protected]> |
In article <[email protected]>, Paul Johnson <[email protected]> wrote: > 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. ah, yes, i messed that up in the cut-and-paste (who has window focus? ugh!). It's correct in the file. Thanks though :)