Skip to content

Commit

Permalink
[basics] uninitialized hash items now default to Any, not Mu
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 14, 2010
1 parent 026f6a4 commit aea60b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basics.pod
Expand Up @@ -286,13 +286,13 @@ This is a shortcut for

=end programlisting

X<Mu>
X<Any>
X<+=>
X<operators; +=>

C<+= $r1> means I<increase the value in the variable the left by $r1>. In the
first iteration C<%sets{$p1}> is not yet set, so it defaults to a special value
called C<Mu>. The addition and incrementing operators treat C<Mu> as a
called C<Any>. The addition and incrementing operators treat C<Any> as a
number with the value of zero.

X<fat arrow>
Expand Down

0 comments on commit aea60b1

Please sign in to comment.