File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -313,8 +313,8 @@ the enclosing block and following statements are ignored; but when the C<if>
313
313
block is executed, following statements are executed. (Note there are other ways to modify
314
314
the default behavior of each which are discussed in other sections.)
315
315
The following examples should illustrate the default block behavior
316
- assuming no special exit statements are included in the C < if > or C < when >
317
- blocks:
316
+ assuming no special exit or other side effect statements are included
317
+ in the C < if > or C < when > blocks:
318
318
319
319
= begin code :skip-test
320
320
{
@@ -328,14 +328,15 @@ blocks:
328
328
}
329
329
= end code
330
330
331
- Should the <if> and <when> blocks above appear at file scope, following
331
+ Should the C < if > and C < when > blocks above appear at file scope, following
332
332
statements would be executed in each case.
333
333
334
334
C < when > also has a statement modifier form which does not effect execution
335
335
of following statements either inside or outside of another block:
336
336
337
337
= begin code :skip-test
338
- say "foo" when X; # statement is executed, following statements not affected
338
+ say "foo" when X; # if X is true statement is executed
339
+ # following statements are not affected
339
340
= end code
340
341
341
342
You can’t perform that action at this time.
0 commit comments