Skip to content

Commit

Permalink
[S09] be more clear about what's an error
Browse files Browse the repository at this point in the history
Two of the three examples marked with "Error" turned out to actually
be logical maybe-not-what-I-meant errors. Marked them as such.
  • Loading branch information
Carl Masak committed Sep 29, 2010
1 parent c7808c3 commit e8527c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S09-data.pod
Expand Up @@ -207,8 +207,8 @@ specification, but "unspace" is allowed:
Note that the square brackets are a compile-time declarator, not a run-time
operator, so you can't use the "dotted" form either:

my @values.[10]; # Error
my @keys\ .[10]; # Error
my @values.[10]; # An indexing, not a fixed-size declaration
my @keys\ .[10]; # Ditto

Attempting to access an index outside an array's defined range will fail:

Expand Down

0 comments on commit e8527c2

Please sign in to comment.