diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2019-03-18 15:47:26 +0000 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2019-03-18 15:48:39 +0000 |
commit | 8dbb2d9565f118c5bb1b0fdd1438830bb0f0022b (patch) | |
tree | e040d715ff4c34d15404ca933bf44e66a71abbfd /pod/perlvar.pod | |
parent | 0275405c4fd00a8e74de313c3fd5a82c0a1ecbea (diff) | |
download | perl-8dbb2d9565f118c5bb1b0fdd1438830bb0f0022b.tar.gz |
perlvar: improve POD markup for $-[n] example
Closing and re-opening the C<> arond the I<> leads to weird formatting
in man/text mode. Instead nest the I<> inside the C<>.
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index b42cbe2251..1f9c08ce36 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1149,7 +1149,7 @@ This variable is read-only and dynamically-scoped. X<@-> X<@LAST_MATCH_START> C<$-[0]> is the offset of the start of the last successful match. -C<$-[>I<n>C<]> is the offset of the start of the substring matched by +C<$-[I<n>]> 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 C<$_>, C<$&> coincides with C<substr $_, $-[0], |