Showing posts with label xor. Show all posts
Showing posts with label xor. Show all posts

Sunday, 1 February 2015

How to check boolean equality in Perl




Boolean equality can be checked in Perl with


!($x xor $y)


or with



!$x == !$y






And the winner is...