diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-06-22 09:10:20 -0600 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2010-06-28 22:30:04 -0400 |
commit | 3ff1c45a45226c5e55f9f22807a1b068b751e49e (patch) | |
tree | 4cbe8fa159ecdccd3ab8af40033bfa9a55428092 /pod/perlre.pod | |
parent | 7d0fc23c8bfb8e3951adbf6632eb27486d3f66ca (diff) | |
download | perl-3ff1c45a45226c5e55f9f22807a1b068b751e49e.tar.gz |
Nits in perlre.pod
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index d48143e2c6..e2e6eb5e93 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -384,7 +384,7 @@ to the current contents of a buffer later on, within the same pattern, use \1 for the first, \2 for the second, and so on. Outside the match use "$" instead of "\". (The \<digit> notation works in certain circumstances outside -the match. See the warning below about \1 vs $1 for details.) +the match. See L</Warning on \1 Instead of $1> below for details.) Referring back to another part of the match is called a I<backreference>. X<regex, capture buffer> X<regexp, capture buffer> @@ -1770,7 +1770,8 @@ Some people get too used to writing things like: $pattern =~ s/(\W)/\\\1/g; -This is grandfathered for the RHS of a substitute to avoid shocking the +This is grandfathered (for \1 to \9) for the RHS of a substitute to avoid +shocking the B<sed> addicts, but it's a dirty habit to get into. That's because in PerlThink, the righthand side of an C<s///> is a double-quoted string. C<\1> in the usual double-quoted string means a control-A. The customary Unix |