Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Comparing Two Arrays

by kutsu (Priest)
on Feb 23, 2005 at 22:09 UTC ( [id://433875]=note: print w/replies, xml ) Need Help??


in reply to Comparing Two Arrays

This is covered in perlfaq4 under the heading How can I extract just the unique elements of an array?.

"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

Replies are listed 'Best First'.
Re^2: Comparing Two Arrays
by ikegami (Patriarch) on Feb 23, 2005 at 22:38 UTC
    A great link ...that doesn't answer the question.

      It answer the question "how to get a unique set of the values of two arrays". I did not realize he wanted the symmetric difference between two sets (and didn't know what symmetric difference was until I looked it up) and forgot that the heading has changed to How can I remove duplicate elements from a list or array, in 5.8.* at least. I esp. thought point E would be helpful and should point out that perldoc -q 'symmetric difference' will give an example of that too, though I prefer the module now that I see this. I'll leave it there though as it many answer later questions.

      "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

Log In?
Username:
Password:

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

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

    No recent polls found