3 Found = in conditional, should be ==
6 Useless use of time in void context
7 Useless use of a variable in void context
8 Useless use of a constant in void context
13 Useless use of sort in scalar context
16 Applying %s to %s will act on scalar(%s)
17 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
32 Parentheses missing around "my" list at -e line 1.
35 Parentheses missing around "local" list at -e line 1.
38 Bareword found in conditional at -e line 1.
39 use warnings 'bareword'; my $x = print(ABC || 1);
41 Value of %s may be \"0\"; use \"defined\"
43 $x = 1 while $x = <FH> ;
45 Subroutine fred redefined at -e line 1.
46 sub fred{1;} sub fred{1;}
48 Constant subroutine %s redefined
49 sub fred() {1;} sub fred() {1;}
51 Format FRED redefined at /tmp/x line 5.
57 Array @%s missing the @ in argument %d of %s()
60 Hash %%%s missing the %% in argument %d of %s()
63 Statement unlikely to be reached
64 (Maybe you meant system() when you said exec()?
67 defined(@array) is deprecated
68 (Maybe you should just omit the defined()?)
70 defined (@a = (1,2,3)) ;
72 defined(%hash) is deprecated
73 (Maybe you should just omit the defined()?)
76 $[ used in comparison (did you mean $] ?)
78 length() used on @array (did you mean "scalar(@array)"?)
79 length() used on %hash (did you mean "scalar(keys %hash)"?)
81 /---/ should probably be written as "---"
84 %s() called too early to check prototype [Perl_peep]
85 fred() ; sub fred ($$) {}
88 Package '%s' not found (did you use the incorrect case?)
90 Use of /g modifier is meaningless in split
92 Possible precedence problem on bitwise %c operator [Perl_ck_bitop]
96 Prototype mismatch: [cv_ckproto]
100 Runaway prototype [newSUB] TODO
101 oops: oopsAV [oopsAV] TODO
102 oops: oopsHV [oopsHV] TODO
106 use warnings 'syntax' ;
108 no warnings 'syntax' ;
111 Found = in conditional, should be == at - line 3.
114 use warnings 'syntax' ;
115 use constant foo => 1;
117 no warnings 'syntax' ;
127 $main::foo = {}; %$main::foo->{"bar"};
128 $foo = {}; %$foo->{"bar"};
129 $main::foo = []; @$main::foo->[34];
130 $foo = []; @$foo->[34];
131 no warnings 'deprecated';
136 $main::foo = {}; %$main::foo->{"bar"};
137 $foo = {}; %$foo->{"bar"};
138 $main::foo = []; @$main::foo->[34];
139 $foo = []; @$foo->[34];
141 Using a hash as a reference is deprecated at - line 3.
142 Using a hash as a reference is deprecated at - line 4.
143 Using an array as a reference is deprecated at - line 5.
144 Using an array as a reference is deprecated at - line 6.
145 Using a hash as a reference is deprecated at - line 7.
146 Using a hash as a reference is deprecated at - line 8.
147 Using an array as a reference is deprecated at - line 9.
148 Using an array as a reference is deprecated at - line 10.
151 use warnings 'void' ; close STDIN ;
154 wantarray ; # OP_WANTARRAY
164 defined $a ; # OP_DEFINED
167 length $a ; # OP_LENGTH
168 substr $a,1 ; # OP_SUBSTR
169 vec $a,1,2 ; # OP_VEC
170 index $a,1,2 ; # OP_INDEX
171 rindex $a,1,2 ; # OP_RINDEX
172 sprintf $a ; # OP_SPRINTF
176 #values %a ; # OP_VALUES
180 unpack "a", "a" ; # OP_UNPACK
181 pack $a,"" ; # OP_PACK
183 (@a)[0,1] ; # OP_LSLICE
186 sort(1,2) ; # OP_SORT
187 reverse(1,2) ; # OP_REVERSE
192 fileno STDIN ; # OP_FILENO
194 tell STDIN ; # OP_TELL
195 readlink 1; # OP_READLINK
197 localtime ; # OP_LOCALTIME
199 eval { getgrnam 1 }; # OP_GGRNAM
200 eval { getgrgid 1 }; # OP_GGRGID
201 eval { getpwnam 1 }; # OP_GPWNAM
202 eval { getpwuid 1 }; # OP_GPWUID
203 prototype "foo"; # OP_PROTOTYPE
204 $a ~~ $b; # OP_SMARTMATCH
209 Useless use of repeat (x) in void context at - line 3.
210 Useless use of wantarray in void context at - line 5.
211 Useless use of reference-type operator in void context at - line 12.
212 Useless use of reference constructor in void context at - line 13.
213 Useless use of single ref constructor in void context at - line 14.
214 Useless use of defined operator in void context at - line 15.
215 Useless use of hex in void context at - line 16.
216 Useless use of oct in void context at - line 17.
217 Useless use of length in void context at - line 18.
218 Useless use of substr in void context at - line 19.
219 Useless use of vec in void context at - line 20.
220 Useless use of index in void context at - line 21.
221 Useless use of rindex in void context at - line 22.
222 Useless use of sprintf in void context at - line 23.
223 Useless use of array element in void context at - line 24.
224 Useless use of array slice in void context at - line 26.
225 Useless use of hash element in void context at - line 29.
226 Useless use of hash slice in void context at - line 30.
227 Useless use of unpack in void context at - line 31.
228 Useless use of pack in void context at - line 32.
229 Useless use of join or string in void context at - line 33.
230 Useless use of list slice in void context at - line 34.
231 Useless use of sort in void context at - line 37.
232 Useless use of reverse in void context at - line 38.
233 Useless use of range (or flop) in void context at - line 41.
234 Useless use of caller in void context at - line 42.
235 Useless use of fileno in void context at - line 43.
236 Useless use of eof in void context at - line 44.
237 Useless use of tell in void context at - line 45.
238 Useless use of readlink in void context at - line 46.
239 Useless use of time in void context at - line 47.
240 Useless use of localtime in void context at - line 48.
241 Useless use of gmtime in void context at - line 49.
242 Useless use of getgrnam in void context at - line 50.
243 Useless use of getgrgid in void context at - line 51.
244 Useless use of getpwnam in void context at - line 52.
245 Useless use of getpwuid in void context at - line 53.
246 Useless use of subroutine prototype in void context at - line 54.
247 Useless use of smart match in void context at - line 55.
248 Useless use of numeric comparison (<=>) in void context at - line 56.
249 Useless use of __SUB__ in void context at - line 58.
252 use warnings 'void' ; close STDIN ;
253 my $x = sort (2,1,3);
257 Useless use of sort in scalar context at - line 3.
260 no warnings 'void' ; close STDIN ;
263 wantarray ; # OP_WANTARRAY
273 defined $a ; # OP_DEFINED
276 length $a ; # OP_LENGTH
277 substr $a,1 ; # OP_SUBSTR
278 vec $a,1,2 ; # OP_VEC
279 index $a,1,2 ; # OP_INDEX
280 rindex $a,1,2 ; # OP_RINDEX
281 sprintf $a ; # OP_SPRINTF
285 #values %a ; # OP_VALUES
289 unpack "a", "a" ; # OP_UNPACK
290 pack $a,"" ; # OP_PACK
292 (@a)[0,1] ; # OP_LSLICE
295 sort(1,2) ; # OP_SORT
296 reverse(1,2) ; # OP_REVERSE
301 fileno STDIN ; # OP_FILENO
303 tell STDIN ; # OP_TELL
304 readlink 1; # OP_READLINK
306 localtime ; # OP_LOCALTIME
308 eval { getgrnam 1 }; # OP_GGRNAM
309 eval { getgrgid 1 }; # OP_GGRGID
310 eval { getpwnam 1 }; # OP_GPWNAM
311 eval { getpwuid 1 }; # OP_GPWUID
312 prototype "foo"; # OP_PROTOTYPE
316 use warnings 'void' ;
317 for (@{[0]}) { "$_" } # check warning isn't duplicated
319 for (@{[0]}) { "$_" } # check warning isn't duplicated
321 Useless use of string in void context at - line 3.
324 use warnings 'void' ;
327 if ( ! $Config{d_telldir}) {
330 # telldir not present
335 telldir 1 ; # OP_TELLDIR
337 telldir 1 ; # OP_TELLDIR
339 Useless use of telldir in void context at - line 13.
342 use warnings 'void' ;
345 if ( ! $Config{d_getppid}) {
348 # getppid not present
353 getppid ; # OP_GETPPID
355 getppid ; # OP_GETPPID
357 Useless use of getppid in void context at - line 13.
360 use warnings 'void' ;
363 if ( ! $Config{d_getpgrp}) {
366 # getpgrp not present
371 getpgrp ; # OP_GETPGRP
373 getpgrp ; # OP_GETPGRP
375 Useless use of getpgrp in void context at - line 13.
378 use warnings 'void' ;
381 if ( ! $Config{d_times}) {
393 Useless use of times in void context at - line 13.
396 use warnings 'void' ;
399 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
402 # getpriority not present
407 getpriority 1,2; # OP_GETPRIORITY
409 getpriority 1,2; # OP_GETPRIORITY
411 Useless use of getpriority in void context at - line 13.
414 use warnings 'void' ;
417 if ( ! $Config{d_getlogin}) {
420 # getlogin not present
425 getlogin ; # OP_GETLOGIN
427 getlogin ; # OP_GETLOGIN
429 Useless use of getlogin in void context at - line 13.
432 use warnings 'void' ;
434 if ( ! $Config{d_socket}) {
437 # getsockname not present
438 # getpeername not present
439 # gethostbyname not present
440 # gethostbyaddr not present
441 # gethostent not present
442 # getnetbyname not present
443 # getnetbyaddr not present
444 # getnetent not present
445 # getprotobyname not present
446 # getprotobynumber not present
447 # getprotoent not present
448 # getservbyname not present
449 # getservbyport not present
450 # getservent not present
454 getsockname STDIN ; # OP_GETSOCKNAME
455 getpeername STDIN ; # OP_GETPEERNAME
456 gethostbyname 1 ; # OP_GHBYNAME
457 gethostbyaddr 1,2; # OP_GHBYADDR
458 gethostent ; # OP_GHOSTENT
459 getnetbyname 1 ; # OP_GNBYNAME
460 getnetbyaddr 1,2 ; # OP_GNBYADDR
461 getnetent ; # OP_GNETENT
462 getprotobyname 1; # OP_GPBYNAME
463 getprotobynumber 1; # OP_GPBYNUMBER
464 getprotoent ; # OP_GPROTOENT
465 getservbyname 1,2; # OP_GSBYNAME
466 getservbyport 1,2; # OP_GSBYPORT
467 getservent ; # OP_GSERVENT
470 getsockname STDIN ; # OP_GETSOCKNAME
471 getpeername STDIN ; # OP_GETPEERNAME
472 gethostbyname 1 ; # OP_GHBYNAME
473 gethostbyaddr 1,2; # OP_GHBYADDR
474 gethostent ; # OP_GHOSTENT
475 getnetbyname 1 ; # OP_GNBYNAME
476 getnetbyaddr 1,2 ; # OP_GNBYADDR
477 getnetent ; # OP_GNETENT
478 getprotobyname 1; # OP_GPBYNAME
479 getprotobynumber 1; # OP_GPBYNUMBER
480 getprotoent ; # OP_GPROTOENT
481 getservbyname 1,2; # OP_GSBYNAME
482 getservbyport 1,2; # OP_GSBYPORT
483 getservent ; # OP_GSERVENT
485 # some functions may not be there, so we exit without running
489 Useless use of getsockname in void context at - line 24.
490 Useless use of getpeername in void context at - line 25.
491 Useless use of gethostbyname in void context at - line 26.
492 Useless use of gethostbyaddr in void context at - line 27.
493 Useless use of gethostent in void context at - line 28.
494 Useless use of getnetbyname in void context at - line 29.
495 Useless use of getnetbyaddr in void context at - line 30.
496 Useless use of getnetent in void context at - line 31.
497 Useless use of getprotobyname in void context at - line 32.
498 Useless use of getprotobynumber in void context at - line 33.
499 Useless use of getprotoent in void context at - line 34.
500 Useless use of getservbyname in void context at - line 35.
501 Useless use of getservbyport in void context at - line 36.
502 Useless use of getservent in void context at - line 37.
505 use warnings 'void' ;
516 Useless use of a variable in void context at - line 3.
517 Useless use of a variable in void context at - line 4.
518 Useless use of a variable in void context at - line 5.
519 Useless use of a variable in void context at - line 6.
522 use warnings 'void' ;
525 "x" . "y"; # optimized to OP_CONST
526 2 + 2; # optimized to OP_CONST
527 use constant U => undef;
529 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT
530 print "boo\n" if U; # test OPpCONST_SHORTCIRCUIT
534 "x" . "y"; # optimized to OP_CONST
535 2 + 2; # optimized to OP_CONST
537 Useless use of a constant (abc) in void context at - line 3.
538 Useless use of a constant (7) in void context at - line 4.
539 Useless use of a constant (xy) in void context at - line 5.
540 Useless use of a constant (4) in void context at - line 6.
541 Useless use of a constant (undef) in void context at - line 8.
545 use open qw( :utf8 :std );
546 use warnings 'void' ;
548 "Ẋ" . "ƴ"; # optimized to OP_CONST
549 FOO; # Bareword optimized to OP_CONST
550 use constant ů => undef;
552 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT
553 print "boo\n" if ů; # test OPpCONST_SHORTCIRCUIT
556 "Ẋ" . "ƴ"; # optimized to OP_CONST
558 Useless use of a constant (àḆc) in void context at - line 5.
559 Useless use of a constant (Ẋƴ) in void context at - line 6.
560 Useless use of a constant (FOO) in void context at - line 7.
561 Useless use of a constant (undef) in void context at - line 9.
565 use warnings 'misc' ;
566 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;my $d = 'test';
583 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ; my $d = 'test';
600 Applying pattern match (m//) to @a will act on scalar(@a) at - line 5.
601 Applying substitution (s///) to @a2 will act on scalar(@a2) at - line 6.
602 Applying transliteration (tr///) to @a3 will act on scalar(@a3) at - line 7.
603 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
604 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
605 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
606 Applying pattern match (m//) to %a will act on scalar(%a) at - line 11.
607 Applying substitution (s///) to %a2 will act on scalar(%a2) at - line 12.
608 Applying transliteration (tr///) to %a3 will act on scalar(%a3) at - line 13.
609 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
610 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
611 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
612 Useless use of /d modifier in transliteration operator at - line 17.
613 Replacement list is longer than search list at - line 18.
614 Can't modify array dereference in substitution (s///) at - line 6, near "s/a/b/ ;"
615 BEGIN not safe after errors--compilation aborted at - line 20.
618 use warnings 'parenthesis' ;
620 my @foo,%bar, $quux; # there's a TAB here
622 no warnings 'parenthesis' ;
625 Parentheses missing around "my" list at - line 3.
626 Parentheses missing around "my" list at - line 4.
629 use warnings 'parenthesis' ;
631 no warnings 'parenthesis' ;
634 Parentheses missing around "our" list at - line 3.
637 use warnings 'parenthesis' ;
638 local $a, $b = (1,2);
640 no warnings 'parenthesis' ;
641 local $c, $d = (1,2);
643 Parentheses missing around "local" list at - line 3.
644 Parentheses missing around "local" list at - line 4.
647 use warnings 'bareword' ;
649 no warnings 'bareword' ;
652 Bareword found in conditional at - line 3.
658 use warnings 'misc' ;
660 $x = 1 if $x = <FH> ;
662 $x = 1 if $x = <FH> ;
664 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
667 use warnings 'misc' ;
669 $x = 1 if $x = readdir FH ;
671 $x = 1 if $x = readdir FH ;
674 Value of readdir() operator can be "0"; test with defined() at - line 4.
677 use warnings 'misc' ;
682 Value of glob construct can be "0"; test with defined() at - line 3.
685 use warnings 'misc' ;
687 $x = 1 if $x = each %a ;
689 $x = 1 if $x = each %a ;
691 Value of each() operator can be "0"; test with defined() at - line 4.
694 use warnings 'misc' ;
695 $x = 1 while $x = <*> and 0 ;
697 $x = 1 while $x = <*> and 0 ;
699 Value of glob construct can be "0"; test with defined() at - line 3.
702 use warnings 'misc' ;
704 $x = 1 while $x = readdir FH and 0 ;
706 $x = 1 while $x = readdir FH and 0 ;
709 Value of readdir() operator can be "0"; test with defined() at - line 4.
714 ($_ = <FH>) // ($_ = 1);
720 use warnings 'redefine' ;
723 no warnings 'redefine' ;
726 Subroutine fred redefined at - line 4.
729 use warnings 'redefine' ;
732 no warnings 'redefine' ;
735 Constant subroutine fred redefined at - line 4.
741 Constant subroutine fred redefined at - line 3.
745 *fred = sub () { 2 };
747 Constant subroutine main::fred redefined at - line 3.
750 no warnings 'redefine' ;
756 no warnings 'redefine' ;
758 *fred = sub () { 2 };
762 use warnings 'redefine' ;
767 no warnings 'redefine' ;
771 Format FRED redefined at - line 5.
775 no warnings 'deprecated' ;
778 Array @FRED missing the @ in argument 1 of push() at - line 2.
782 no warnings 'deprecated' ;
785 Hash %FRED missing the % in argument 1 of keys() at - line 2.
788 use warnings 'syntax' ;
792 Statement unlikely to be reached at - line 4.
793 (Maybe you meant system() when you said exec()?)
795 # op.c, no warning if exec isn't a statement.
796 use warnings 'syntax' ;
797 $a || exec "$^X -e 1" ;
804 defined(@array) is deprecated at - line 2.
805 (Maybe you should just omit the defined()?)
808 defined(@a = (1,2,3));
810 defined(@array) is deprecated at - line 2.
811 (Maybe you should just omit the defined()?)
816 defined(%hash) is deprecated at - line 2.
817 (Maybe you should just omit the defined()?)
820 no warnings 'syntax' ;
830 Prototype mismatch: sub main::fred () vs ($) at - line 3.
834 use open qw( :utf8 :std );
838 Prototype mismatch: sub main::frèd () vs ($) at - line 5.
842 use open qw( :utf8 :std );
844 eval "sub fòò (\$\0) {}";
846 Illegal character in prototype for main::fòò : $\x{0} at (eval 1) line 1.
850 use open qw( :utf8 :std );
852 eval "sub foo (\0) {}";
854 Illegal character in prototype for main::foo : \x{0} at (eval 1) line 1.
858 use open qw( :utf8 :std );
860 BEGIN { $::{"foo"} = "\$\0L\351on" }
861 BEGIN { eval "sub foo (\$\0L\x{c3}\x{a9}on) {}"; }
863 Illegal character in prototype for main::foo : $\x{0}L... at (eval 1) line 1.
867 use open qw( :utf8 :std );
869 BEGIN { eval "sub foo (\0) {}"; }
871 Illegal character in prototype for main::foo : \x{0} at (eval 1) line 1.
875 use open qw( :utf8 :std );
877 BEGIN { $::{"foo"} = "\x{30cb}" }
878 BEGIN { eval "sub foo {}"; }
880 Prototype mismatch: sub main::foo (ニ) vs none at (eval 1) line 1.
887 no warnings 'prototype' ;
890 use warnings 'prototype' ;
897 Prototype mismatch: sub main::fred () vs ($) at - line 4.
898 Prototype mismatch: sub main::freD () vs ($) at - line 11.
899 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
902 use warnings 'syntax' ;
903 no warnings 'deprecated';
940 $[ used in numeric lt (<) (did you mean $] ?) at - line 4.
941 $[ used in numeric gt (>) (did you mean $] ?) at - line 5.
942 $[ used in numeric le (<=) (did you mean $] ?) at - line 6.
943 $[ used in numeric ge (>=) (did you mean $] ?) at - line 7.
944 $[ used in numeric lt (<) (did you mean $] ?) at - line 8.
945 $[ used in numeric gt (>) (did you mean $] ?) at - line 9.
946 $[ used in numeric le (<=) (did you mean $] ?) at - line 10.
947 $[ used in numeric ge (>=) (did you mean $] ?) at - line 11.
948 $[ used in numeric lt (<) (did you mean $] ?) at - line 13.
949 $[ used in numeric gt (>) (did you mean $] ?) at - line 14.
950 $[ used in numeric le (<=) (did you mean $] ?) at - line 15.
951 $[ used in numeric ge (>=) (did you mean $] ?) at - line 16.
952 $[ used in numeric lt (<) (did you mean $] ?) at - line 17.
953 $[ used in numeric gt (>) (did you mean $] ?) at - line 18.
954 $[ used in numeric le (<=) (did you mean $] ?) at - line 19.
955 $[ used in numeric ge (>=) (did you mean $] ?) at - line 20.
957 # op.c [Perl_ck_length]
958 use warnings 'syntax' ;
967 length() used on @a (did you mean "scalar(@a)"?) at - line 3.
968 length() used on %b (did you mean "scalar(keys %b)"?) at - line 4.
969 length() used on @array (did you mean "scalar(@array)"?) at - line 5.
970 length() used on %hash (did you mean "scalar(keys %hash)"?) at - line 6.
971 length() used on %h (did you mean "scalar(keys %h)"?) at - line 8.
972 length() used on @g (did you mean "scalar(@g)"?) at - line 9.
975 use warnings 'syntax' ;
976 join /---/, 'x', 'y', 'z';
978 /---/ should probably be written as "---" at - line 3.
981 use warnings 'prototype' ;
984 no warnings 'prototype' ;
988 main::fred() called too early to check prototype at - line 3.
990 # op.c [Perl_newATTRSUB]
992 use warnings 'void' ;
993 BEGIN { $| = 1; print "in begin\n"; }
994 CHECK { print "in check\n"; }
995 INIT { print "in init\n"; }
996 END { print "in end\n"; }
997 print "in mainline\n";
1001 delete $INC{"abc.pm"};
1010 Too late to run CHECK block at abc.pm line 3.
1011 Too late to run INIT block at abc.pm line 4.
1014 Too late to run CHECK block at abc.pm line 3.
1015 Too late to run INIT block at abc.pm line 4.
1021 # op.c [Perl_newATTRSUB]
1023 no warnings 'void' ;
1024 BEGIN { $| = 1; print "in begin\n"; }
1025 CHECK { print "in check\n"; }
1026 INIT { print "in init\n"; }
1027 END { print "in end\n"; }
1028 print "in mainline\n";
1043 use warnings 'syntax' ;
1046 no warnings 'syntax' ;
1050 Useless use of push with no values at - line 4.
1051 Useless use of unshift with no values at - line 5.
1054 # 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com
1055 use warnings 'regexp';
1056 split /blah/g, "blah";
1057 no warnings 'regexp';
1058 split /blah/g, "blah";
1060 Use of /g modifier is meaningless in split at - line 4.
1063 use warnings 'precedence';
1070 $a = $b <=> $c & $d;
1071 $a &= $b == $c; $a |= $b == $c; $a ^= $b == $c; # shouldn't warn
1072 no warnings 'precedence';
1079 $a = $b <=> $c & $d;
1081 Possible precedence problem on bitwise & operator at - line 3.
1082 Possible precedence problem on bitwise ^ operator at - line 4.
1083 Possible precedence problem on bitwise | operator at - line 5.
1084 Possible precedence problem on bitwise & operator at - line 6.
1085 Possible precedence problem on bitwise ^ operator at - line 7.
1086 Possible precedence problem on bitwise | operator at - line 8.
1087 Possible precedence problem on bitwise & operator at - line 9.
1091 use warnings 'precedence';
1098 $a = $b <=> $c & $d;
1099 no warnings 'precedence';
1106 $a = $b <=> $c & $d;
1108 Possible precedence problem on bitwise & operator at - line 4.
1109 Possible precedence problem on bitwise ^ operator at - line 5.
1110 Possible precedence problem on bitwise | operator at - line 6.
1111 Possible precedence problem on bitwise & operator at - line 7.
1112 Possible precedence problem on bitwise ^ operator at - line 8.
1113 Possible precedence problem on bitwise | operator at - line 9.
1114 Possible precedence problem on bitwise & operator at - line 10.
1118 # ok => local() has desired effect;
1119 # ignore=> local() silently ignored
1121 use warnings 'syntax';
1123 local(undef); # OP_UNDEF ignore
1124 sub lval : lvalue {};
1125 local(lval()); # OP_ENTERSUB
1126 local($x **= 1); # OP_POW
1127 local($x *= 1); # OP_MULTIPLY
1128 local($x /= 1); # OP_DIVIDE
1129 local($x %= 1); # OP_MODULO
1130 local($x x= 1); # OP_REPEAT
1131 local($x += 1); # OP_ADD
1132 local($x -= 1); # OP_SUBTRACT
1133 local($x .= 1); # OP_CONCAT
1134 local($x <<= 1); # OP_LEFT_SHIFT
1135 local($x >>= 1); # OP_RIGHT_SHIFT
1136 local($x &= 1); # OP_BIT_AND
1137 local($x ^= 1); # OP_BIT_XOR
1138 local($x |= 1); # OP_BIT_OR
1141 local($x *= 1); # OP_I_MULTIPLY
1142 local($x /= 1); # OP_I_DIVIDE
1143 local($x %= 1); # OP_I_MODULO
1144 local($x += 1); # OP_I_ADD
1145 local($x -= 1); # OP_I_SUBTRACT
1147 local($x?$y:$z) = 1; # OP_COND_EXPR ok
1148 # these two are fatal run-time errors instead
1149 #local(@$a); # OP_RV2AV ok
1150 #local(%$a); # OP_RV2HV ok
1151 local(*a); # OP_RV2GV ok
1152 local(@a[1,2]); # OP_ASLICE ok
1153 local(@a{1,2}); # OP_HSLICE ok
1154 local(@a = (1,2)); # OP_AASSIGN
1155 local($$x); # OP_RV2SV ok
1156 local($#a); # OP_AV2ARYLEN
1157 local($x = 1); # OP_SASSIGN
1158 local($x &&= 1); # OP_ANDASSIGN
1159 local($x ||= 1); # OP_ORASSIGN
1160 local($x //= 1); # OP_DORASSIGN
1161 local($a[0]); # OP_AELEMFAST ok
1163 local(substr($x,0,1)); # OP_SUBSTR
1164 local(pos($x)); # OP_POS
1165 local(vec($x,0,1)); # OP_VEC
1166 local($a[$b]); # OP_AELEM ok
1167 local($a{$b}); # OP_HELEM ok
1169 no warnings 'syntax';
1171 Useless localization of subroutine entry at - line 10.
1172 Useless localization of exponentiation (**) at - line 11.
1173 Useless localization of multiplication (*) at - line 12.
1174 Useless localization of division (/) at - line 13.
1175 Useless localization of modulus (%) at - line 14.
1176 Useless localization of repeat (x) at - line 15.
1177 Useless localization of addition (+) at - line 16.
1178 Useless localization of subtraction (-) at - line 17.
1179 Useless localization of concatenation (.) or string at - line 18.
1180 Useless localization of left bitshift (<<) at - line 19.
1181 Useless localization of right bitshift (>>) at - line 20.
1182 Useless localization of bitwise and (&) at - line 21.
1183 Useless localization of bitwise xor (^) at - line 22.
1184 Useless localization of bitwise or (|) at - line 23.
1185 Useless localization of integer multiplication (*) at - line 26.
1186 Useless localization of integer division (/) at - line 27.
1187 Useless localization of integer modulus (%) at - line 28.
1188 Useless localization of integer addition (+) at - line 29.
1189 Useless localization of integer subtraction (-) at - line 30.
1190 Useless localization of list assignment at - line 39.
1191 Useless localization of array length at - line 41.
1192 Useless localization of scalar assignment at - line 42.
1193 Useless localization of logical and assignment (&&=) at - line 43.
1194 Useless localization of logical or assignment (||=) at - line 44.
1195 Useless localization of defined or assignment (//=) at - line 45.
1196 Useless localization of substr at - line 48.
1197 Useless localization of match position at - line 49.
1198 Useless localization of vec at - line 50.
1205 my ($x5,@x6, %x7) if 0;
1208 # these shouldn't warn
1212 if (my $w2) { $a=1 }
1213 if ($a && (my $w3 = 1)) {$a = 2}
1216 Deprecated use of my() in false conditional at - line 2.
1217 Deprecated use of my() in false conditional at - line 3.
1218 Deprecated use of my() in false conditional at - line 4.
1219 Deprecated use of my() in false conditional at - line 5.
1220 Deprecated use of my() in false conditional at - line 6.
1221 Deprecated use of my() in false conditional at - line 7.
1222 Deprecated use of my() in false conditional at - line 8.
1227 use warnings 'deprecated';
1230 no warnings 'deprecated';
1234 Use of assignment to $[ is deprecated at - line 2.
1235 Use of assignment to $[ is deprecated at - line 3.
1236 Use of assignment to $[ is deprecated at - line 5.
1237 Use of assignment to $[ is deprecated at - line 6.
1240 use warnings 'void';
1241 @x = split /y/, "z";
1242 $x = split /y/, "z";
1245 @x = split /y/, "z";
1246 $x = split /y/, "z";
1249 Useless use of split in void context at - line 5.
1252 use warnings 'redefine' ;
1254 use open qw( :utf8 :std );
1257 no warnings 'redefine' ;
1260 Subroutine frèd redefined at - line 6.
1263 use warnings 'redefine' ;
1265 use open qw( :utf8 :std );
1268 no warnings 'redefine' ;
1271 Constant subroutine frèd redefined at - line 6.
1275 use open qw( :utf8 :std );
1279 Constant subroutine frèd redefined at - line 5.
1283 use open qw( :utf8 :std );
1285 *frèd = sub () { 2 };
1287 Constant subroutine main::frèd redefined at - line 5.
1290 use warnings 'redefine' ;
1292 use open qw( :utf8 :std );
1295 no warnings 'redefine' ;
1298 Subroutine ᚠርƊ redefined at - line 6.
1301 use warnings 'redefine' ;
1303 use open qw( :utf8 :std );
1306 no warnings 'redefine' ;
1309 Constant subroutine ᚠርƊ redefined at - line 6.
1313 use open qw( :utf8 :std );
1317 Constant subroutine ᚠርƊ redefined at - line 5.
1321 use open qw( :utf8 :std );
1323 *ᚠርƊ = sub () { 2 };
1325 Constant subroutine main::ᚠርƊ redefined at - line 5.