Permalink
Browse files

fix a precedence bug

  • Loading branch information...
1 parent 6bce3f6 commit ccaa47456f4478c61e3d56cd334d1723fe653695 @moritz moritz committed May 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/tablet-3-variables.txt
@@ -143,7 +143,7 @@ prevent autoflattening.
@primes = (2,3,5,7,11,13,17,19,23); # an array gets filled like in Perl 5
@primes = 2,3,5,7,11,13,17,19,23 ; # same thing, since unlike P5 round braces just do group
@primes = <2 3 5 7 11 13 17 19 23>; # dito, <> is the new qw()
- $arrayref = 2,3,5,7,11,13,17,19,23; # in scalar context you get automatically a reference
+ $arrayref = (2,3,5,7,11,13,17,19,23); # in scalar context you get automatically a reference
$arrayref = item @primes; # same thing, more explicit
$arrayref = 13,; # comma is the new array generator
@primes = 2; # array with one element

0 comments on commit ccaa474

Please sign in to comment.