Skip to content

Commit e285151

Browse files
committed
perlop: Specifically give an operations' results
1 parent da8c2d9 commit e285151

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
@@ -998,9 +998,13 @@ C<"experimental::bitwise"> category.
998998
X<operator, bitwise, or> X<bitwise or> X<|> X<operator, bitwise, xor>
999999
X<bitwise xor> X<^>
10001000

1001-
Binary C<"|"> returns its operands ORed together bit by bit.
1001+
Binary C<"|"> returns its operands ORed together bit by bit. If both
1002+
corresponding bits are 0, the resulting bit is 0; if either is 1, the result is
1003+
1.
10021004

1003-
Binary C<"^"> returns its operands XORed together bit by bit.
1005+
Binary C<"^"> returns its operands XORed together bit by bit. If both
1006+
corresponding bits are 0 or both are 1, the resulting bit is 0; if just
1007+
one is 1, the result is 1.
10041008

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

0 commit comments

Comments
 (0)