warning for split(/.../g, ...);
[p5sagit/p5-mst-13.2.git] / t / lib / warnings / op
index 2fa54b8..7833562 100644 (file)
 
     Package `%s' not found (did you use the incorrect case?)
 
+    Use of /g modifier is meaningless in split
+
     Mandatory Warnings 
     ------------------
     Prototype mismatch:                [cv_ckproto]
@@ -953,11 +955,11 @@ Use of "package" with no arguments is deprecated at - line 3.
 Global symbol "BEGIN" requires explicit package name at - line 4.
 BEGIN not safe after errors--compilation aborted at - line 4.
 ########
-# op.c [Perl_utilize]
-use warnings 'misc';
-push @INC, sub { $_[1] eq 'Joe.pm' ? *DATA : undef };
-eval "use Joe";
-__DATA__
-package joe; 1;
+# op.c
+# 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com
+use warnings 'regexp';
+split /blah/g, "blah";
+no warnings 'regexp';
+split /blah/g, "blah";
 EXPECT
-Package `Joe' not found (did you use the incorrect case?) at (eval 1) line 2.
+Use of /g modifier is meaningless in split at - line 4.