Perl has bitwise AND, OR, and XOR (exclusive OR)
^. These operators work differently on
numeric values than they do on strings. If either operand is a
number, then both operands are converted to integers, and the
bitwise operation is performed between the two integers. If both
operands are strings, these operators do bitwise operations between
corresponding bits from the two strings.