From 81c76e97748fab77d4ac4444a0f1a1341b777793 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Sat, 17 May 2003 11:46:25 +0000 Subject: [PATCH] Clarify the explanation of the warning "Possible precedence problem on bitwise operator". p4raw-id: //depot/perl@19540 --- pod/perldiag.pod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.7.4