summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-05-17 11:46:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-05-17 11:46:25 +0000
commit81c76e97748fab77d4ac4444a0f1a1341b777793 (patch)
treec0ac4f02ccb5734b0b12fe7f0dd16ed1f5672c17 /pod
parenta58644dec03db93f2899d4dd4466cc91cea2bd00 (diff)
downloadperl-81c76e97748fab77d4ac4444a0f1a1341b777793.tar.gz
Clarify the explanation of the warning "Possible precedence problem
on bitwise operator". p4raw-id: //depot/perl@19540
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod4
1 files changed, 3 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index c79d68d455..28905731b2 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -2997,7 +2997,9 @@ with a numeric comparison operator, like this :
This expression is actually equivalent to C<$x & ($y == 0)>, due to the
higher precedence of C<==>. This is probably not what you want. (If you
really meant to write this, disable the warning, or, better, write
-C<$x & ($y == 0 ? 1 : 0)>).
+C<$x & ($y == 0 ? 1 : 0)>). (This warning might also be produced when you
+use the bitwise exclusive or, C<^>. Consider using the low-precedence
+C<xor> operator instead. See L<perlop>.)
=item Possible unintended interpolation of %s in string