From: Daniel Carrera Date: 2003-10-29T06:28:45+09:00 Subject: Re: XOR operator? Thanks everyone. Yeah, ^ seems to work. On Tue, Oct 28, 2003 at 03:04:04PM -0600, Lyle Johnson wrote: > Daniel Carrera wrote: > > >I'm trying to figure out what the boolean "xor" operator is in Ruby. I > >thought it was "^^" but that doesn't work. > > It's just a single "^" character, e.g. > > six = 2 ^ 4 > > Hope this helps, > > Lyle -- Daniel Carrera | OpenPGP KeyID: 9AF77A88 PhD grad student. | Mathematics Dept. | "To understand recursion, you must first UMD, College Park | understand recursion".