Skip to content

Commit f4582a4

Browse files
author
Jan-Olof Hendig
committed
Touched up ^ twigil example
Closes #1353
1 parent 5ff5574 commit f4582a4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/Language/variables.pod6

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,9 @@ subroutines. Variables of the form C<$^variable> are a type of placeholder
315315
variable. They may be used in bare blocks to declare formal parameters to
316316
that block. So the block in the code
317317
318-
my @powers-of-three = 1,3,9…100
319-
say reduce { $^b - $^a }, 0, |@powers-of-three
320-
321-
# OUTPUT:
322-
# 61
318+
my @powers-of-three = 1,3,9…100;
319+
say reduce { $^b - $^a }, 0, |@powers-of-three;
320+
# OUTPUT: «61␤»
323321
324322
has two formal parameters, namely C<$a> and C<$b>. Note that even though C<$^b>
325323
appears before C<$^a> in the code, C<$^a> is still the first formal parameter

0 commit comments

Comments
 (0)