Permalink
Browse files

can't mix 'my Dog $x' with 'my $x of Dog'

  • Loading branch information...
1 parent 6d77944 commit fac7a1ae9b6407749ef236d4f9510ef5d6ab8163 @TimToady TimToady committed Aug 20, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 S02-bits.pod
View
7 S02-bits.pod
@@ -13,8 +13,8 @@ Synopsis 2: Bits and Pieces
Created: 10 Aug 2004
- Last Modified: 4 Jul 2013
- Version: 275
+ Last Modified: 20 Aug 2013
+ Version: 276
This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
@@ -1702,8 +1702,9 @@ variable. An C<of> type is given as a prefix or with the C<of> keyword:
my $spot of Dog;
In either case this sets the C<of> property of the container to C<Dog>.
+You may not mix these notations; if you do, a compiler error will result.
-An of type C<on> an array or hash specifies the type stored by each element:
+An C<of> type on an array or hash specifies the type stored by each element:
my Dog @pound; # each element of the array stores a Dog

0 comments on commit fac7a1a

Please sign in to comment.