$a ;
"abc"
+ Useless use of sort in scalar context
+ my $x = sort (2,1,3);
+
Applying %s to %s will act on scalar(%s)
my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
@a =~ /abc/ ;
Package `%s' not found (did you use the incorrect case?)
+ Use of /g modifier is meaningless in split
+
Mandatory Warnings
------------------
Prototype mismatch: [cv_ckproto]
Useless use of getpwuid in void context at - line 53.
########
# op.c
+use warnings 'void' ; close STDIN ;
+my $x = sort (2,1,3);
+no warnings 'void' ;
+$x = sort (2,1,3);
+EXPECT
+Useless use of sort in scalar context at - line 3.
+########
+# op.c
no warnings 'void' ; close STDIN ;
1 x 3 ; # OP_REPEAT
# OP_GVSV
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.