We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b578b58 commit ef12f7fCopy full SHA for ef12f7f
S03-operators.pod
@@ -15,8 +15,8 @@ Synopsis 3: Perl 6 Operators
15
16
Created: 8 Mar 2004
17
18
- Last Modified: 23 Sep 2010
19
- Version: 220
+ Last Modified: 10 Dec 2010
+ Version: 221
20
21
=head1 Overview
22
@@ -543,6 +543,12 @@ previously incremented. This is useful if your C<%seen> hash is
543
actually a C<KeySet>, in which case decrement actually deletes it
544
from the C<KeySet>.
545
546
+Increment/decrement of an undefined C<Numeric>, C<Cool>, or C<Any> variable
547
+sets the variable to 0 and then performs the increment/decrement. Hence a
548
+postincrement returns 0 the first time:
549
+
550
+ my $x; say $x++; # 0, not Any
551
552
=over
553
554
=item *
0 commit comments