Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Answer: How can I find the union/difference/intersection of two arrays?

by Anonymous Monk
on Nov 16, 2017 at 16:10 UTC ( [id://1203605]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I find the union/difference/intersection of two arrays?
in thread How can I find the union/difference/intersection of two arrays?

the problem with that method is that your @isect can contain identical elements

for example,if @a=(1,2,3,4,2) and @b=(1,2,4), your @isect will be: (1,2,2,4)

before using this method you have to make sure each element is unique in both tab
  • Comment on Re: Answer: How can I find the union/difference/intersection of two arrays?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-23 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found