Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: extracting redundant and unique items

by gmax (Abbot)
on May 14, 2003 at 16:22 UTC ( [id://258147]=note: print w/replies, xml ) Need Help??


in reply to extracting redundant and unique items

Or, alternatively, use an anonymous hash to get the unique values, in a classical way.

my @unique = keys %{{map {$_,undef} @array}}; print join ",", sort {$a <=> $b} @unique; __END__ 11,23,54,78
 _  _ _  _  
(_|| | |(_|><
 _|   

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found