Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl sorting unique values

by Khen1950fx (Canon)
on Jun 22, 2011 at 13:59 UTC ( [id://910911]=note: print w/replies, xml ) Need Help??


in reply to Perl sorting unique values

You could examine $f2 with List::Uniq.
#!/usr/bin/perl use strict; use warnings; use List::Uniq qw(:all); use Data::Dumper::Concise; my $f2 = [ qw|a c d b e d a|]; my $uniq = uniq( {sort => 1}, $f2 ); print Dumper($uniq);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://910911]
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: (8)
As of 2024-04-18 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found