diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-03 03:27:52 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-03 03:27:52 +0000 |
commit | 8c8ad484ae56ad5a81dc3b76a40859fc90c16a10 (patch) | |
tree | 37508164f4e9a00cdad5a06b3d44d529b38d1288 /regcomp.c | |
parent | 1d7cb664dc49858d069c4ad7e05c059b1003a3cd (diff) | |
download | perl-8c8ad484ae56ad5a81dc3b76a40859fc90c16a10.tar.gz |
warn about /(?p{})/ (from Simon Cozens)
p4raw-id: //depot/perl@5475
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++; |