diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-24 12:58:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-24 12:58:45 +0000 |
commit | 5060ef7b6a11b124f0b71afcf7384e13b79a28a6 (patch) | |
tree | 7b8d0577ecb33c6f12896685bb7ae54b0ac2d110 /pod | |
parent | 579a54dc04b9dcea01ec0ba30460602ef4a7315c (diff) | |
download | perl-5060ef7b6a11b124f0b71afcf7384e13b79a28a6.tar.gz |
Documentation nit on @-, found by Guillaume Rousse
(plus POD markup simplification, for readability with pod2text)
p4raw-id: //depot/perl@24563
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlvar.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index a9bbdaea57..fab45cb0b1 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -528,9 +528,9 @@ C<$-[>I<n>C<]> is the offset of the start of the substring matched by I<n>-th subpattern, or undef if the subpattern did not match. Thus after a match against $_, $& coincides with C<substr $_, $-[0], -$+[0] - $-[0]>. Similarly, C<$>I<n> coincides with C<substr $_, $-[>I<n>C<], -$+[>I<n>C<] - $-[>I<n>C<]> if C<$-[>I<n>C<]> is defined, and $+ coincides with -C<substr $_, $-[$#-], $+[$#-]>. One can use C<$#-> to find the last +$+[0] - $-[0]>. Similarly, $I<n> coincides with C<substr $_, $-[n], +$+[n] - $-[n]> if C<$-[n]> is defined, and $+ coincides with +C<substr $_, $-[$#-], $+[$#-] - $-[$#-]>. One can use C<$#-> to find the last matched subgroup in the last successful match. Contrast with C<$#+>, the number of subgroups in the regular expression. Compare with C<@+>. |