Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: tweaking of perldoc function (sorting/preserving order)

by lodin (Hermit)
on Jan 18, 2008 at 08:42 UTC ( [id://663028]=note: print w/replies, xml ) Need Help??


in reply to Re: tweaking of perldoc function (sorting/preserving order)
in thread tweaking of perldoc function (sorting/preserving order)

ikegami:

Note that your code (and almut's) incorrectly calculates the difference.

perlfaq4 (from where the code is taken):

Note that this is the symmetric difference, that is, all elements in either A or in B but not in both. Think of it as an xor operation.

That means that what ikegami calls "complement of intersection" is was perlfaq4 calls "(symmetric) difference". Different authors have different definitions for difference and the symbol they use, such as - or \.

perlfaq4 is correct with the definition of difference it provides.

lodin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-03-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found