summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-03 03:27:52 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-03 03:27:52 +0000
commit8c8ad484ae56ad5a81dc3b76a40859fc90c16a10 (patch)
tree37508164f4e9a00cdad5a06b3d44d529b38d1288 /regcomp.c
parent1d7cb664dc49858d069c4ad7e05c059b1003a3cd (diff)
downloadperl-8c8ad484ae56ad5a81dc3b76a40859fc90c16a10.tar.gz
warn about /(?p{})/ (from Simon Cozens)
p4raw-id: //depot/perl@5475
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index f4fcaa9073..a1272ebfc7 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1734,6 +1734,9 @@ S_reg(pTHX_ I32 paren, I32 *flagp)
nextchar();
*flagp = TRYAGAIN;
return NULL;
+ case 'p':
+ Perl_warner(aTHX_ WARN_REGEXP, "(?p{}) is deprecated - use (??{})");
+ /* FALL THROUGH*/
case '?':
logical = 1;
paren = *PL_regcomp_parse++;