- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

7.15 Bitwise Or and Exclusive Or

Binary "|" returns its operands ORed together bit by bit. (See also 7.37 and 7.36.)

Binary "^" returns its operands XORed together bit by bit. (See also 7.37 and 7.36.)

Note that "|" and "^" have lower priority than relational operators, so for example the brackets are essential in a test like

print "false\n" if (8 | 2) != 10;
ISBN 9781906966027Perl Language Reference ManualSee the print edition