File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ Named captures can also be nested using regular capture group syntax:
709
709
710
710
if 'abc-abc-abc' ~~ / $<string>=( [ $<part>=[abc] ]* % '-' ) / {
711
711
say ~$<string>; # OUTPUT: «abc-abc-abc»
712
- say ~$<string><part>; # OUTPUT: «[ abc, abc, abc] »
712
+ say ~$<string><part>; # OUTPUT: «abc abc abc»
713
713
}
714
714
715
715
Coercing the match object to a hash gives you easy programmatic access to
@@ -795,7 +795,7 @@ By default, substitutions are only done on the first match:
795
795
796
796
$_ = 'There can be twly two';
797
797
s/tw/on/; # replace 'tw' with 'on' once
798
- .say; # OUTPUT: «there can be only two»
798
+ .say; # OUTPUT: «There can be only two»
799
799
800
800
= head2 Wildcards and character classes
801
801
You can’t perform that action at this time.
0 commit comments