summaryrefslogtreecommitdiff
path: root/t/lib/warnings/regcomp
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 /t/lib/warnings/regcomp
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 't/lib/warnings/regcomp')
-rw-r--r--t/lib/warnings/regcomp20
1 files changed, 0 insertions, 20 deletions
diff --git a/t/lib/warnings/regcomp b/t/lib/warnings/regcomp
index 6818c6233c..f85aa440c4 100644
--- a/t/lib/warnings/regcomp
+++ b/t/lib/warnings/regcomp
@@ -2,10 +2,6 @@
Quantifier unexpected on zero-length expression [S_study_chunk]
- (?p{}) is deprecated - use (??{}) [S_reg]
- $a =~ /(?p{'x'})/ ;
-
-
Useless (%s%c) - %suse /%c modifier [S_reg]
Useless (%sc) - %suse /gc modifier [S_reg]
@@ -171,22 +167,6 @@ EXPECT
Unrecognized escape \z in character class passed through in regex; marked by <-- HERE in m/[a\z <-- HERE b]/ at - line 3.
########
-# regcomp.c [S_study_chunk]
-use warnings 'deprecated' ;
-$a = "xx" ;
-$a =~ /(?p{'x'})/ ;
-no warnings ;
-use warnings 'regexp' ;
-$a =~ /(?p{'x'})/ ;
-use warnings;
-no warnings 'deprecated' ;
-no warnings 'regexp' ;
-no warnings 'syntax' ;
-$a =~ /(?p{'x'})/ ;
-EXPECT
-(?p{}) is deprecated - use (??{}) in regex; marked by <-- HERE in m/(?p <-- HERE {'x'})/ at - line 4.
-(?p{}) is deprecated - use (??{}) in regex; marked by <-- HERE in m/(?p <-- HERE {'x'})/ at - line 7.
-########
# regcomp.c [S_reg]
use warnings 'regexp' ;
$a = qr/(?c)/;