summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2005-11-08 00:46:42 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-11-08 17:35:58 +0000
commit3e4c7cf008fe62589948871e79a9291f027aff83 (patch)
tree2b4011ed638aa0453d790098901e1eb8c64cd361 /pod
parent4f185743967f505b05e12dd7c1e03858a874cc02 (diff)
downloadperl-3e4c7cf008fe62589948871e79a9291f027aff83.tar.gz
[DOC PATCH] mention @-, @+ in perl56delta.pod
Message-ID: <20051108164642.GD7972@efn.org> p4raw-id: //depot/perl@26047
Diffstat (limited to 'pod')
-rw-r--r--pod/perl561delta.pod6
-rw-r--r--pod/perl56delta.pod6
2 files changed, 12 insertions, 0 deletions
diff --git a/pod/perl561delta.pod b/pod/perl561delta.pod
index fa36ebcf1c..ef4caa7a72 100644
--- a/pod/perl561delta.pod
+++ b/pod/perl561delta.pod
@@ -1388,6 +1388,12 @@ C<fred.com> if you don't backslash the C<@>.
See http://www.plover.com/~mjd/perl/at-error.html for more details
about the history here.
+=head2 @- and @+ provide starting/ending offsets of regex submatches
+
+The new magic variables @- and @+ provide the starting and ending
+offsets, respectively, of $&, $1, $2, etc. See L<perlvar> for
+details.
+
=head1 Modules and Pragmata
=head2 Modules
diff --git a/pod/perl56delta.pod b/pod/perl56delta.pod
index 097f43e6b5..b5425b2486 100644
--- a/pod/perl56delta.pod
+++ b/pod/perl56delta.pod
@@ -790,6 +790,12 @@ C<fred.com> if you don't backslash the C<@>.
See http://www.plover.com/~mjd/perl/at-error.html for more details
about the history here.
+=head2 @- and @+ provide starting/ending offsets of regex matches
+
+The new magic variables @- and @+ provide the starting and ending
+offsets, respectively, of $&, $1, $2, etc. See L<perlvar> for
+details.
+
=head1 Modules and Pragmata
=head2 Modules