in reply to Compare two signed integers without using comparision operator in perl
You can compare two integers for equality by exploiting the properties of "exclusive or" (^). See perlop.