We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ff5574 commit f4582a4Copy full SHA for f4582a4
doc/Language/variables.pod6
@@ -315,11 +315,9 @@ subroutines. Variables of the form C<$^variable> are a type of placeholder
315
variable. They may be used in bare blocks to declare formal parameters to
316
that block. So the block in the code
317
318
- my @powers-of-three = 1,3,9…100
319
- say reduce { $^b - $^a }, 0, |@powers-of-three
320
-
321
- # OUTPUT:
322
- # 61
+ my @powers-of-three = 1,3,9…100;
+ say reduce { $^b - $^a }, 0, |@powers-of-three;
+ # OUTPUT: «61»
323
324
has two formal parameters, namely C<$a> and C<$b>. Note that even though C<$^b>
325
appears before C<$^a> in the code, C<$^a> is still the first formal parameter
0 commit comments