Skip to content

Commit a8732a7

Browse files
committed
perlop: Specifically give an operations' results
1 parent 9e1f61d commit a8732a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pod/perlop.pod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,9 +990,13 @@ C<"experimental::bitwise"> category.
990990
X<operator, bitwise, or> X<bitwise or> X<|> X<operator, bitwise, xor>
991991
X<bitwise xor> X<^>
992992

993-
Binary C<"|"> returns its operands ORed together bit by bit.
993+
Binary C<"|"> returns its operands ORed together bit by bit. If both
994+
corresponding bits are 0, the resulting bit is 0; if either is 1, the result is
995+
1.
994996

995-
Binary C<"^"> returns its operands XORed together bit by bit.
997+
Binary C<"^"> returns its operands XORed together bit by bit. If both
998+
corresponding bits are 0 or both are 1, the resulting bit is 0; if just
999+
one is 1, the result is 1.
9961000

9971001
Although no warning is currently raised, the results are not well
9981002
defined when these operations are performed on operands that aren't either

0 commit comments

Comments
 (0)