Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having a coffee break in the Monastery: (3)
As of 2024-04-26 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found