On Jul 30, Kirby_Sarah said:

>I have instances where I want to delete duplicate elements out of an array.
>Is there an easy way to do this?

Yes, and the FAQ tells you:

  perldoc -q duplicate

or

  perldoc -q unique

depending on which version of Perl you've got.  (Newer versions have it
under "uplicate".)  The FAQ is also online at http://www.perldoc.com/.

  
http://www.perldoc.com/perl5.6.1/pod/perlfaq4.html#How-can-I-remove-duplicate-elements-from-a-list-or-array-

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to