For some odd reason #4056 didn't undo #3922 completely.
Jarkko Hietaniemi [Tue, 31 Aug 1999 08:57:35 +0000 (08:57 +0000)]
p4raw-id: //depot/cfgperl@4058

pp.c

diff --git a/pp.c b/pp.c
index 187e72a..081d4b4 100644 (file)
--- 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++) ;