summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@khw-desktop.(none)>2010-06-22 09:01:38 -0600
committerJesse Vincent <jesse@bestpractical.com>2010-06-28 22:30:04 -0400
commit7d0fc23c8bfb8e3951adbf6632eb27486d3f66ca (patch)
treee6ba913fc9f78e474f3d806157eb4e073d80dac9 /toke.c
parent70e4a83b9a2f610546eb7adec04989f5f1052374 (diff)
downloadperl-7d0fc23c8bfb8e3951adbf6632eb27486d3f66ca.tar.gz
Add clarifying comment to toke.c
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index d7d5d4da3c..8cbe28a829 100644
--- a/toke.c
+++ b/toke.c
@@ -2811,7 +2811,8 @@ S_scan_const(pTHX_ char *start)
s++;
- /* deprecate \1 in strings and substitution replacements */
+ /* warn on \1 - \9 in substitution replacements, but note that \11
+ * is an octal; and \19 is \1 followed by '9' */
if (PL_lex_inwhat == OP_SUBST && !PL_lex_inpat &&
isDIGIT(*s) && *s != '0' && !isDIGIT(s[1]))
{