PERL PERL5 CHANGES 4 CHANGE 23250 FROM DAVID NICOL WHATEVER NO SPAM
Date: Wed, 1 Sep 2004 14:15:00 -0700

Subject: Change 23250: From: david nicol
From: davem@no-spam (Dave Mitchell)

Change 23250 by davem@no-spam on 2004/09/01 20:46:13

From: david nicol <whatever@no-spam>
Subject: [perl #31228] no no-op Message-Id: 1093659222.1436.70.camel@no-spam>
Date: 27 Aug 2004 21:13:42 -0500

Document that 0 and 1 can (sort of) be used as no-ops.

Affected files ...

... //depot/perl/pod/perlop.pod#121 edit
Differences ...

==== //depot/perl/pod/perlop.pod#121 (text) ====
Index: perl/pod/perlop.pod --- perl/pod/perlop.pod#120~23014~ Wed Jun 30 05:12:24 2004
+++ perl/pod/perlop.pod Wed Sep 1 13:46:13 2004
@@no-spam -2059,6 +2059,14 @@no-spam the compiler will precompute the number which that expression represents so that the interpreter won't have to.
+=head2 No-ops +
+Perl doesn't officially have a no-op operator, but the bare constants +C<0> and C<1> are special-cased to not produce a warning in a void +context, so you can for example safely do +
+ 1 while foo();
+
=head2 Bitwise String Operators Bitstrings of any size may be manipulated by the bitwise operators End of Patch.