Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How can I display a unique array if it contains some repeated elements

by nudge (Acolyte)
on Jun 20, 2010 at 07:14 UTC ( [id://845596]=note: print w/replies, xml ) Need Help??


in reply to How can I display a unique array if it contains some repeated elements

use List::MoreUtils qw(uniq); my @list = (1,1,2,3,3,4); print join( ',', uniq(@list) );
  • Comment on Re: How can I display a unique array if it contains some repeated elements
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2025-06-13 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.