sub true { return 1; } sub True { return 2; } if (true() xor True()) { print "xor is true.\n"; } if (true() ^ True()) { print "^ is true.\n"; } __END__ ^ is true.