LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

How to short-circuit XOR; gotcha

How to short-circuit XOR; gotcha

Posted Feb 19, 2009 16:42 UTC (Thu) by Max.Hyre (subscriber, #1054)
In reply to: How do you short-circuit XOR? by jimparis
Parent article: The Periodic table of Perl operators

Thanks, both you and im14u2c. Sure, short-circuiting logical xor is a snap.

I, however, was thinking of bitwise xor, hence my confusion.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds