From: Rafael Garcia-Suarez Date: Sat, 17 May 2003 11:46:25 +0000 (+0000) Subject: Clarify the explanation of the warning "Possible precedence problem X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=81c76e97748fab77d4ac4444a0f1a1341b777793;p=p5sagit%2Fp5-mst-13.2.git Clarify the explanation of the warning "Possible precedence problem on bitwise operator". p4raw-id: //depot/perl@19540 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index c79d68d..2890573 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 operator instead. See L.) =item Possible unintended interpolation of %s in string