Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Remove redundency from an array

by jdporter (Paladin)
on Sep 24, 2007 at 19:01 UTC ( [id://640778]=note: print w/replies, xml ) Need Help??


in reply to Re: Remove redundency from an array
in thread Remove redundency from an array

Doesn't need to be lengthy.

my @u = do { my %seen; grep { ! $seen{$_}++ } @a };

Log In?
Username:
Password:

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

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

    No recent polls found