File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,17 @@ have unnecessary semicolons for clarity.
88
88
89
89
The C < when > block is not usually a stand-alone block since it most commonly used
90
90
inside C < given > , C < for > , and C < loop > blocks and special details of its usage in
91
- those contexts are discussed there. However, there are a few subleties in proper
91
+ those contexts are discussed there. However, there are a few subtleties in proper
92
92
syntax of the contents inside the block's curly braces worth high-lighting.
93
93
Treat the contents pretty much as any block except for function calls. (Details are found
94
- L < here|/language/syntax#Signature_literals > A ). For example, calling a help function (C < sub help > )
94
+ L < here|/language/syntax#Signature_literals > ). For example, calling a help function (C < sub help > )
95
95
from a CLI program argument list:
96
96
97
97
= begin code :skip-test
98
98
for @*ARGS {
99
99
# ... other when blocks
100
- when /:i ^ h/ { &help } # v1: error, no parens with sub ref
101
- when /:i ^ h/ { &help; } # v2: error, no parens with sub ref
100
+ when /:i ^ h/ { &help } # v1: error, no parentheses with sub ref
101
+ when /:i ^ h/ { &help; } # v2: error, no parentheses with sub ref
102
102
when /:i ^ h/ { &help() } # v3: calls sub help ok
103
103
when /:i ^ h/ { help } # v4: calls sub help ok
104
104
when /:i ^ h/ { help() } # v5: calls sub help ok
Original file line number Diff line number Diff line change 147
147
classhow
148
148
classname
149
149
classtut
150
+ cli
150
151
closedir
151
152
cmd
152
153
cmp
You can’t perform that action at this time.
0 commit comments