File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ an elegant system for handling them.
15
15
Literal L < C < List > s|/type/List> are created with commas and semicolons B < not >
16
16
with parentheses, so:
17
17
18
- our @list = 1, 2; # This is two-element list
19
- @ list = (1, 2); # This is also a List, in parentheses
20
- @ list = (1; 2); # same List (see below)
21
- @ list = (1); # This is not a List, just a 1 in parentheses
22
- @ list = (1,); # This is a one-element List
18
+ 1, 2; # This is two-element list
19
+ our $ list = (1, 2); # This is also a List, in parentheses
20
+ $ list = (1; 2); # same List (see below)
21
+ $ list = (1); # This is not a List, just a 1 in parentheses
22
+ $ list = (1,); # This is a one-element List
23
23
24
24
There is one exception, empty lists are created with just parenthesis:
25
25
You can’t perform that action at this time.
0 commit comments