On Wednesday, 29 October 2003 at  5:36:01 +0900, Daniel Carrera wrote:
> Hi all,
> 
> I'm trying to figure out what the boolean "xor" operator is in Ruby.  I 
> thought it was "^^" but that doesn't work.  I searched through PickAxe and 
> couldn't find a mention of xor.
> 
> Does Ruby have an xor?

irb(main):001:0> 1 ^ 0
=> 1
irb(main):002:0> 1 ^ 1
=> 0
irb(main):003:0> 0 ^ 0
=> 0
irb(main):004:0> 0 ^ 1
=> 1


-- 
Jim Freeze
----------
The Roman Rule
	The one who says it cannot be done should never interrupt the
	one who is doing it.