summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-28 08:54:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-28 08:54:05 +0000
commit67edc0c91ee3ef38039f1866e961b39269714a4a (patch)
treecb994aea8740d9684723aca5ed673a1165b77d9f /toke.c
parente44c95bb96e4819206b25a8b74f5b8c4069c432d (diff)
downloadperl-67edc0c91ee3ef38039f1866e961b39269714a4a.tar.gz
(?p{}) has been deprecated for a long time.
Remove it, so people are not confused with regard to the new /p regexp modifier. p4raw-id: //depot/perl@30424
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 89bb87b757..24accc6d32 100644
--- a/toke.c
+++ b/toke.c
@@ -2024,7 +2024,7 @@ S_scan_const(pTHX_ char *start)
*d++ = NATIVE_TO_NEED(has_utf8,*s++);
}
else if (s[2] == '{' /* This should match regcomp.c */
- || ((s[2] == 'p' || s[2] == '?') && s[3] == '{'))
+ || (s[2] == '?' && s[3] == '{'))
{
I32 count = 1;
char *regparse = s + (s[2] == '{' ? 3 : 4);