On May 16, jane doe said:

>How do I remove duplicate items from an array?  I apologize for being a
>"newbie". :)

Please read 'perldoc -q duplicate' or 'perldoc -q unique'.  You can see
these answers in Perl FAQ #4, online at http://www.perldoc.org/, or on
your computer via the 'perldoc' command.

(Perl 5.005)
  friday:~ $ perldoc -q unique
  =head1 Found in /usr/local/lib/perl5/5.00502/pod/perlfaq4.pod

  =head2 How can I extract just the unique elements of an array?

(Perl 5.6)
  jpinyan@sushi [7:11pm] ~ #525> perldoc -q duplicate
  Found in /usr/local/lib/perl5/5.6.0/pod/perlfaq4.pod
     How can I remove duplicate elements from a list or array?

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
*** I need a publisher for my book "Learning Perl Regular Expressions" ***

Reply via email to