in reply to Binary Math?

Uh, are you looking for the binary operators  | & ^ defined in perlop?