From: Hugo van der Sanden Date: Tue, 18 Mar 2003 00:27:19 +0000 (+0000) Subject: clarify behaviour of $a++ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6a61d433021b3577bc50df7d2cb1989f13551b88;p=p5sagit%2Fp5-mst-13.2.git clarify behaviour of $a++ p4raw-id: //depot/perl@19014 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index ad46301..cd36ec1 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -127,6 +127,10 @@ character within its range, with carry: print ++($foo = 'Az'); # prints 'Ba' print ++($foo = 'zz'); # prints 'aaa' +C is always treated as numeric, and in particular is changed +to C<0> before incrementing (so that a post-increment of an undef value +will return C<0> rather than C). + The auto-decrement operator is not magical. =head2 Exponentiation