Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: removing duplicates entries from an array

by l3v3l (Monk)
on Jan 06, 2006 at 17:20 UTC ( [id://521553]=note: print w/replies, xml ) Need Help??


in reply to removing duplicates entries from an array

... and there is also the ever popular :
%seen = (); @unique = sort(grep { ! $seen{$_} ++ } @list);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found