Skip to content

Commit cc155f6

Browse files
committed
Minor wording improvements in regexes.pod
1 parent 56f6381 commit cc155f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Language/regexes.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,14 +569,14 @@ Captures can be nested, in which case they are numbered per level
569569
=head2 Named captures
570570
571571
Instead of numbering captures, you can also give them names. The generic --
572-
and slightly verbose -- way of giving out names is like this:
572+
and slightly verbose -- way of naming captures is like this:
573573
574574
if 'abc' ~~ / $<myname> = [ \w+ ] / {
575575
say ~$<myname> # abc
576576
}
577577
578578
The access to the named capture, C<< $<myname> >>, is a shorthand for indexing
579-
the match object as a hash, so C<$/{ 'myname' }> or C<< $/<myname> >>.
579+
the match object as a hash, in other words: C<$/{ 'myname' }> or C<< $/<myname> >>.
580580
581581
Coercing the match object to a hash gives you easy programmatic access to
582582
all named captures:

0 commit comments

Comments
 (0)