File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2473,17 +2473,17 @@ is not required for the very last routine/method).
2473
2473
.sort; # (4) Sort, result is <Earth People>
2474
2474
2475
2475
# To assign without the need of parentheses use another feed operator
2476
- my @result =
2477
- <people of earth>
2476
+ my @result;
2477
+ <people of earth>
2478
2478
==> map({ .tc })
2479
2479
==> grep /<[PE]>/
2480
2480
==> sort()
2481
2481
==> @result;
2482
2482
2483
2483
# It can be useful to capture a partial result, however, unlike
2484
2484
# the leftward feed operator, it does require parentheses or a semicolon
2485
- my @result =
2486
- <people of earth>
2485
+ my @result;
2486
+ <people of earth>
2487
2487
==> map({ .tc })
2488
2488
==> my @caps; @caps # also could wrap in parentheses instead
2489
2489
==> grep /<[PE]>/
You can’t perform that action at this time.
0 commit comments