diff options
author | Barrie Slaymaker <barries@slaysys.com> | 2001-04-26 08:01:10 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-04-26 18:04:59 +0000 |
commit | 65191a1eeddc40c842b08b03bcc6e98666def342 (patch) | |
tree | 0bcdfbf25ba3834c4fe08539b1d0d73ec4531f1c /pod | |
parent | 4682a7acab84a46ed9d265e274b72494a4818695 (diff) | |
download | perl-65191a1eeddc40c842b08b03bcc6e98666def342.tar.gz |
Re: [PATCH perldiag.pod] Re: [PATCH] Re: Useless use of constants other than 0,1 in void context?
Message-ID: <20010426120110.E29698@jester.slaysys.com>
p4raw-id: //depot/perl@9857
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 524c2bd3a9..6f7ed5fd39 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3684,6 +3684,14 @@ a scalar context, the comma is treated like C's comma operator, which throws away the left argument, which is not what you want. See L<perlref> for more on this. +This warning will not be issued for numerical constants equal to 0 or 1 +since they are often used in statements like + + 1 while sub_with_side_effects() ; + +String constants that would normally evaluate to 0 or 1 are warned +about. + =item Useless use of "re" pragma (W) You did C<use re;> without any arguments. That isn't very useful. |