File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,12 @@ generated. Both automatic variables can be used that the same time.
112
112
= head2 Arguments
113
113
X < |Argument >
114
114
115
- Arguments are supplied as a comma separated list. To disambiguate nested calls
116
- parentheses or adverbial form can be used.
115
+ Arguments are supplied as a comma separated list. To disambiguate nested calls,
116
+ use parentheses:
117
117
118
118
sub f(&c){ c() * 2 }; # call the function reference c with empty parameter list
119
119
sub g($p){ $p - 2 };
120
- say(g(42)); # nest call to g in call to say
121
- f: { say g(666) }; # call f with a block
120
+ say(g(42), 45); # pass only 42 to g()
122
121
123
122
When calling a function, positional arguments should be supplied
124
123
in the same order as the function's signature. Named arguments
You can’t perform that action at this time.
0 commit comments