summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2003-03-18 00:27:19 +0000
committerhv <hv@crypt.org>2003-03-18 00:27:19 +0000
commit6a61d433021b3577bc50df7d2cb1989f13551b88 (patch)
tree43507d53c2894d38afe3889008ce2ee1a956590a /pod/perlop.pod
parent4eee6e183013a0f0e9dce0d53c643393a9e49455 (diff)
downloadperl-6a61d433021b3577bc50df7d2cb1989f13551b88.tar.gz
clarify behaviour of $a++
p4raw-id: //depot/perl@19014
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod4
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index ad46301b42..cd36ec1b6e 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<undef> 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<undef>).
+
The auto-decrement operator is not magical.
=head2 Exponentiation