summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-31 08:57:35 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-31 08:57:35 +0000
commitf4091fba1bacbb614fefc0a1a724a1f71a8d9e2e (patch)
tree0398b3b1d44a6f20998fcab1ed8f55e901185bee /pp.c
parentaa32913f3abc1e07f8a5bdb31411f65d1fdbcf6f (diff)
downloadperl-f4091fba1bacbb614fefc0a1a724a1f71a8d9e2e.tar.gz
For some odd reason #4056 didn't undo #3922 completely.
p4raw-id: //depot/cfgperl@4058
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/pp.c b/pp.c
index 187e72abf0..081d4b4e54 100644
--- a/pp.c
+++ b/pp.c
@@ -4977,14 +4977,7 @@ PP(pp_split)
++s;
}
}
- else if (rx->prelen == 1 && *rx->precomp == '^') {
- if (!(pm->op_pmflags & PMf_MULTILINE)
- && !(pm->op_pmregexp->reganch & ROPT_WARNED)) {
- if (ckWARN(WARN_DEPRECATED))
- Perl_warner(aTHX_ WARN_DEPRECATED,
- "split /^/ better written as split /^/m");
- pm->op_pmregexp->reganch |= ROPT_WARNED;
- }
+ else if (strEQ("^", rx->precomp)) {
while (--limit) {
/*SUPPRESS 530*/
for (m = s; m < strend && *m != '\n'; m++) ;