http://www.perlmonks.org?node_id=394324


in reply to Re^2: A "but" operator.
in thread A "but" operator.

In your analogy, but can't be XOR, it's ($A and !$B). XOR is ($A and !$B) || (!$A and $B). Or equivalently, but could be "A and (A XOR B)", if you prefer to keep it complicated and silly, in a Lewis Caroll (sp?) sort of way.