Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: removing duplicate entries from an array

by Withigo (Friar)
on Nov 08, 2005 at 05:21 UTC ( #506610=note: print w/ replies, xml ) Need Help??


in reply to removing duplicate entries from an array

Here's a way that doesn't involve dirtiness:

use List::MoreUtils qw/uniq/; my @foo = (1,1,1,2,3); my @uniques = uniq @foo;


Comment on Re: removing duplicate entries from an array
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://506610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-07-04 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls