summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod')
-rw-r--r--pod/perlvar.pod24
1 files changed, 24 insertions, 0 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 2ed3e97f77..739dd55cd2 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -164,6 +164,18 @@ example:
(Mnemonic: be positive and forward looking.)
This variable is read-only.
+=item @+
+
+$+[0] is the offset of the end of the last successfull match.
+C<$+[>I<n>C<]> is the offset of the end of the substring matched by
+I<n>-th subpattern.
+
+Thus after a match against $_, $& coincides with C<substr $_, $-[0],
+$+[0]>. Similarly, C<$>I<n> coincides with C<substr $_, $-[>I<n>C<],
+$+[>I<0>C<]> if C<$-[>I<n>C<]> is defined, and $+ conincides with
+C<substr $_, $-[-1], $+[-1]>. One can use C<$#+> to find the last
+matched subgroup in the last successful match. Compare with L<"@-">.
+
=item $MULTILINE_MATCHING
=item $*
@@ -373,6 +385,18 @@ output channel. Default is 60. (Mnemonic: = has horizontal lines.)
The number of lines left on the page of the currently selected output
channel. (Mnemonic: lines_on_page - lines_printed.)
+=item @-
+
+$-[0] is the offset of the start of the last successfull match.
+C<$-[>I<n>C<]> is the offset of the start of the substring matched by
+I<n>-th subpattern.
+
+Thus after a match against $_, $& coincides with C<substr $_, $-[0],
+$+[0]>. Similarly, C<$>I<n> coincides with C<substr $_, $-[>I<n>C<],
+$+[>I<0>C<]> if C<$-[>I<n>C<]> is defined, and $+ conincides with
+C<substr $_, $-[-1], $+[-1]>. One can use C<$#-> to find the last
+matched subgroup in the last successful match. Compare with L<"@+">.
+
=item format_name HANDLE EXPR
=item $FORMAT_NAME