Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: splitting a list

by tlm (Prior)
on Jul 06, 2005 at 01:54 UTC ( [id://472659]=note: print w/replies, xml ) Need Help??


in reply to splitting a list

Against my doctors orders, I continue to use:

my @no_dups = do { my %h; grep !$h{ $_ }++, @list1, @list2 };

the lowliest monk

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found