Skip to content

Commit fac7a1a

Browse files
committed
can't mix 'my Dog $x' with 'my $x of Dog'
1 parent 6d77944 commit fac7a1a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

S02-bits.pod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Synopsis 2: Bits and Pieces
1313

1414
Created: 10 Aug 2004
1515

16-
Last Modified: 4 Jul 2013
17-
Version: 275
16+
Last Modified: 20 Aug 2013
17+
Version: 276
1818

1919
This document summarizes Apocalypse 2, which covers small-scale
2020
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:
17021702
my $spot of Dog;
17031703

17041704
In either case this sets the C<of> property of the container to C<Dog>.
1705+
You may not mix these notations; if you do, a compiler error will result.
17051706

1706-
An of type C<on> an array or hash specifies the type stored by each element:
1707+
An C<of> type on an array or hash specifies the type stored by each element:
17071708

17081709
my Dog @pound; # each element of the array stores a Dog
17091710

0 commit comments

Comments
 (0)