Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Perl sorting unique values

by Khen1950fx (Canon)
on Jun 22, 2011 at 13:59 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2023-03-27 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?