mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
fat comman => fat comma
This commit is contained in:
parent
2505a5efe5
commit
ce004b474f
@ -122,7 +122,7 @@ say @array; # OUTPUT: «a 6 b»
|
|||||||
# context, and any duplicated keys are deduplicated.
|
# context, and any duplicated keys are deduplicated.
|
||||||
my %hash = 'a' => 1, 'b' => 2;
|
my %hash = 'a' => 1, 'b' => 2;
|
||||||
|
|
||||||
# Keys get auto-quoted when the fat comman (`=>`) is used. Trailing commas are
|
# Keys get auto-quoted when the fat comma (`=>`) is used. Trailing commas are
|
||||||
# okay.
|
# okay.
|
||||||
%hash = a => 1, b => 2, ;
|
%hash = a => 1, b => 2, ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user