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 /---/ should probably be written as "---"
79 %s() called too early to check prototype [Perl_peep]
80 fred() ; sub fred ($$) {}
83 Package `%s' not found (did you use the incorrect case?)
85 Use of /g modifier is meaningless in split
87 Possible precedence problem on bitwise %c operator [Perl_ck_bitop]
91 Prototype mismatch: [cv_ckproto]
95 Runaway prototype [newSUB] TODO
96 oops: oopsAV [oopsAV] TODO
97 oops: oopsHV [oopsHV] TODO
101 use warnings 'syntax' ;
103 no warnings 'syntax' ;
106 Found = in conditional, should be == at - line 3.
109 use warnings 'syntax' ;
110 use constant foo => 1;
112 no warnings 'syntax' ;
122 $main::foo = {}; %$main::foo->{"bar"};
123 $foo = {}; %$foo->{"bar"};
124 $main::foo = []; @$main::foo->[34];
125 $foo = []; @$foo->[34];
126 no warnings 'deprecated';
131 $main::foo = {}; %$main::foo->{"bar"};
132 $foo = {}; %$foo->{"bar"};
133 $main::foo = []; @$main::foo->[34];
134 $foo = []; @$foo->[34];
136 Using a hash as a reference is deprecated at - line 3.
137 Using a hash as a reference is deprecated at - line 4.
138 Using an array as a reference is deprecated at - line 5.
139 Using an array as a reference is deprecated at - line 6.
140 Using a hash as a reference is deprecated at - line 7.
141 Using a hash as a reference is deprecated at - line 8.
142 Using an array as a reference is deprecated at - line 9.
143 Using an array as a reference is deprecated at - line 10.
146 use warnings 'void' ; close STDIN ;
149 wantarray ; # OP_WANTARRAY
159 defined $a ; # OP_DEFINED
162 length $a ; # OP_LENGTH
163 substr $a,1 ; # OP_SUBSTR
164 vec $a,1,2 ; # OP_VEC
165 index $a,1,2 ; # OP_INDEX
166 rindex $a,1,2 ; # OP_RINDEX
167 sprintf $a ; # OP_SPRINTF
171 #values %a ; # OP_VALUES
175 unpack "a", "a" ; # OP_UNPACK
176 pack $a,"" ; # OP_PACK
178 (@a)[0,1] ; # OP_LSLICE
181 sort(1,2) ; # OP_SORT
182 reverse(1,2) ; # OP_REVERSE
187 fileno STDIN ; # OP_FILENO
189 tell STDIN ; # OP_TELL
190 readlink 1; # OP_READLINK
192 localtime ; # OP_LOCALTIME
194 eval { getgrnam 1 }; # OP_GGRNAM
195 eval { getgrgid 1 }; # OP_GGRGID
196 eval { getpwnam 1 }; # OP_GPWNAM
197 eval { getpwuid 1 }; # OP_GPWUID
198 prototype "foo"; # OP_PROTOTYPE
199 $a ~~ $b; # OP_SMARTMATCH
202 Useless use of repeat (x) in void context at - line 3.
203 Useless use of wantarray in void context at - line 5.
204 Useless use of reference-type operator in void context at - line 12.
205 Useless use of reference constructor in void context at - line 13.
206 Useless use of single ref constructor in void context at - line 14.
207 Useless use of defined operator in void context at - line 15.
208 Useless use of hex in void context at - line 16.
209 Useless use of oct in void context at - line 17.
210 Useless use of length in void context at - line 18.
211 Useless use of substr in void context at - line 19.
212 Useless use of vec in void context at - line 20.
213 Useless use of index in void context at - line 21.
214 Useless use of rindex in void context at - line 22.
215 Useless use of sprintf in void context at - line 23.
216 Useless use of array element in void context at - line 24.
217 Useless use of array slice in void context at - line 26.
218 Useless use of hash element in void context at - line 29.
219 Useless use of hash slice in void context at - line 30.
220 Useless use of unpack in void context at - line 31.
221 Useless use of pack in void context at - line 32.
222 Useless use of join or string in void context at - line 33.
223 Useless use of list slice in void context at - line 34.
224 Useless use of sort in void context at - line 37.
225 Useless use of reverse in void context at - line 38.
226 Useless use of range (or flop) in void context at - line 41.
227 Useless use of caller in void context at - line 42.
228 Useless use of fileno in void context at - line 43.
229 Useless use of eof in void context at - line 44.
230 Useless use of tell in void context at - line 45.
231 Useless use of readlink in void context at - line 46.
232 Useless use of time in void context at - line 47.
233 Useless use of localtime in void context at - line 48.
234 Useless use of gmtime in void context at - line 49.
235 Useless use of getgrnam in void context at - line 50.
236 Useless use of getgrgid in void context at - line 51.
237 Useless use of getpwnam in void context at - line 52.
238 Useless use of getpwuid in void context at - line 53.
239 Useless use of subroutine prototype in void context at - line 54.
240 Useless use of smart match in void context at - line 55.
241 Useless use of numeric comparison (<=>) in void context at - line 56.
244 use warnings 'void' ; close STDIN ;
245 my $x = sort (2,1,3);
249 Useless use of sort in scalar context at - line 3.
252 no warnings 'void' ; close STDIN ;
255 wantarray ; # OP_WANTARRAY
265 defined $a ; # OP_DEFINED
268 length $a ; # OP_LENGTH
269 substr $a,1 ; # OP_SUBSTR
270 vec $a,1,2 ; # OP_VEC
271 index $a,1,2 ; # OP_INDEX
272 rindex $a,1,2 ; # OP_RINDEX
273 sprintf $a ; # OP_SPRINTF
277 #values %a ; # OP_VALUES
281 unpack "a", "a" ; # OP_UNPACK
282 pack $a,"" ; # OP_PACK
284 (@a)[0,1] ; # OP_LSLICE
287 sort(1,2) ; # OP_SORT
288 reverse(1,2) ; # OP_REVERSE
293 fileno STDIN ; # OP_FILENO
295 tell STDIN ; # OP_TELL
296 readlink 1; # OP_READLINK
298 localtime ; # OP_LOCALTIME
300 eval { getgrnam 1 }; # OP_GGRNAM
301 eval { getgrgid 1 }; # OP_GGRGID
302 eval { getpwnam 1 }; # OP_GPWNAM
303 eval { getpwuid 1 }; # OP_GPWUID
304 prototype "foo"; # OP_PROTOTYPE
308 use warnings 'void' ;
309 for (@{[0]}) { "$_" } # check warning isn't duplicated
311 for (@{[0]}) { "$_" } # check warning isn't duplicated
313 Useless use of string in void context at - line 3.
316 use warnings 'void' ;
319 if ( ! $Config{d_telldir}) {
322 # telldir not present
327 telldir 1 ; # OP_TELLDIR
329 telldir 1 ; # OP_TELLDIR
331 Useless use of telldir in void context at - line 13.
334 use warnings 'void' ;
337 if ( ! $Config{d_getppid}) {
340 # getppid not present
345 getppid ; # OP_GETPPID
347 getppid ; # OP_GETPPID
349 Useless use of getppid in void context at - line 13.
352 use warnings 'void' ;
355 if ( ! $Config{d_getpgrp}) {
358 # getpgrp not present
363 getpgrp ; # OP_GETPGRP
365 getpgrp ; # OP_GETPGRP
367 Useless use of getpgrp in void context at - line 13.
370 use warnings 'void' ;
373 if ( ! $Config{d_times}) {
385 Useless use of times in void context at - line 13.
388 use warnings 'void' ;
391 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
394 # getpriority not present
399 getpriority 1,2; # OP_GETPRIORITY
401 getpriority 1,2; # OP_GETPRIORITY
403 Useless use of getpriority in void context at - line 13.
406 use warnings 'void' ;
409 if ( ! $Config{d_getlogin}) {
412 # getlogin not present
417 getlogin ; # OP_GETLOGIN
419 getlogin ; # OP_GETLOGIN
421 Useless use of getlogin in void context at - line 13.
424 use warnings 'void' ;
426 if ( ! $Config{d_socket}) {
429 # getsockname not present
430 # getpeername not present
431 # gethostbyname not present
432 # gethostbyaddr not present
433 # gethostent not present
434 # getnetbyname not present
435 # getnetbyaddr not present
436 # getnetent not present
437 # getprotobyname not present
438 # getprotobynumber not present
439 # getprotoent not present
440 # getservbyname not present
441 # getservbyport not present
442 # getservent not present
446 getsockname STDIN ; # OP_GETSOCKNAME
447 getpeername STDIN ; # OP_GETPEERNAME
448 gethostbyname 1 ; # OP_GHBYNAME
449 gethostbyaddr 1,2; # OP_GHBYADDR
450 gethostent ; # OP_GHOSTENT
451 getnetbyname 1 ; # OP_GNBYNAME
452 getnetbyaddr 1,2 ; # OP_GNBYADDR
453 getnetent ; # OP_GNETENT
454 getprotobyname 1; # OP_GPBYNAME
455 getprotobynumber 1; # OP_GPBYNUMBER
456 getprotoent ; # OP_GPROTOENT
457 getservbyname 1,2; # OP_GSBYNAME
458 getservbyport 1,2; # OP_GSBYPORT
459 getservent ; # OP_GSERVENT
462 getsockname STDIN ; # OP_GETSOCKNAME
463 getpeername STDIN ; # OP_GETPEERNAME
464 gethostbyname 1 ; # OP_GHBYNAME
465 gethostbyaddr 1,2; # OP_GHBYADDR
466 gethostent ; # OP_GHOSTENT
467 getnetbyname 1 ; # OP_GNBYNAME
468 getnetbyaddr 1,2 ; # OP_GNBYADDR
469 getnetent ; # OP_GNETENT
470 getprotobyname 1; # OP_GPBYNAME
471 getprotobynumber 1; # OP_GPBYNUMBER
472 getprotoent ; # OP_GPROTOENT
473 getservbyname 1,2; # OP_GSBYNAME
474 getservbyport 1,2; # OP_GSBYPORT
475 getservent ; # OP_GSERVENT
477 # some functions may not be there, so we exit without running
481 Useless use of getsockname in void context at - line 24.
482 Useless use of getpeername in void context at - line 25.
483 Useless use of gethostbyname in void context at - line 26.
484 Useless use of gethostbyaddr in void context at - line 27.
485 Useless use of gethostent in void context at - line 28.
486 Useless use of getnetbyname in void context at - line 29.
487 Useless use of getnetbyaddr in void context at - line 30.
488 Useless use of getnetent in void context at - line 31.
489 Useless use of getprotobyname in void context at - line 32.
490 Useless use of getprotobynumber in void context at - line 33.
491 Useless use of getprotoent in void context at - line 34.
492 Useless use of getservbyname in void context at - line 35.
493 Useless use of getservbyport in void context at - line 36.
494 Useless use of getservent in void context at - line 37.
497 use warnings 'void' ;
508 Useless use of a variable in void context at - line 3.
509 Useless use of a variable in void context at - line 4.
510 Useless use of a variable in void context at - line 5.
511 Useless use of a variable in void context at - line 6.
514 use warnings 'void' ;
517 "x" . "y"; # optimized to OP_CONST
518 2 + 2; # optimized to OP_CONST
519 use constant U => undef;
521 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT
522 print "boo\n" if U; # test OPpCONST_SHORTCIRCUIT
526 "x" . "y"; # optimized to OP_CONST
527 2 + 2; # optimized to OP_CONST
529 Useless use of a constant (abc) in void context at - line 3.
530 Useless use of a constant (7) in void context at - line 4.
531 Useless use of a constant (xy) in void context at - line 5.
532 Useless use of a constant (4) in void context at - line 6.
533 Useless use of a constant (undef) in void context at - line 8.
537 use open qw( :utf8 :std );
538 use warnings 'void' ;
540 "Ẋ" . "ƴ"; # optimized to OP_CONST
541 FOO; # Bareword optimized to OP_CONST
542 use constant ů => undef;
544 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT
545 print "boo\n" if ů; # test OPpCONST_SHORTCIRCUIT
548 "Ẋ" . "ƴ"; # optimized to OP_CONST
550 Useless use of a constant (àḆc) in void context at - line 5.
551 Useless use of a constant (Ẋƴ) in void context at - line 6.
552 Useless use of a constant (FOO) in void context at - line 7.
553 Useless use of a constant (undef) in void context at - line 9.
557 use warnings 'misc' ;
558 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;my $d = 'test';
575 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ; my $d = 'test';
592 Applying pattern match (m//) to @array will act on scalar(@array) at - line 5.
593 Applying substitution (s///) to @array will act on scalar(@array) at - line 6.
594 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.
595 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
596 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
597 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
598 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.
599 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.
600 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.
601 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
602 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
603 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
604 Useless use of /d modifier in transliteration operator at - line 17.
605 Replacement list is longer than search list at - line 18.
606 Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"
607 BEGIN not safe after errors--compilation aborted at - line 20.
610 use warnings 'parenthesis' ;
612 my @foo,%bar, $quux; # there's a TAB here
614 no warnings 'parenthesis' ;
617 Parentheses missing around "my" list at - line 3.
618 Parentheses missing around "my" list at - line 4.
621 use warnings 'parenthesis' ;
623 no warnings 'parenthesis' ;
626 Parentheses missing around "our" list at - line 3.
629 use warnings 'parenthesis' ;
630 local $a, $b = (1,2);
632 no warnings 'parenthesis' ;
633 local $c, $d = (1,2);
635 Parentheses missing around "local" list at - line 3.
636 Parentheses missing around "local" list at - line 4.
639 use warnings 'bareword' ;
641 no warnings 'bareword' ;
644 Bareword found in conditional at - line 3.
650 use warnings 'misc' ;
652 $x = 1 if $x = <FH> ;
654 $x = 1 if $x = <FH> ;
656 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
659 use warnings 'misc' ;
661 $x = 1 if $x = readdir FH ;
663 $x = 1 if $x = readdir FH ;
666 Value of readdir() operator can be "0"; test with defined() at - line 4.
669 use warnings 'misc' ;
674 Value of glob construct can be "0"; test with defined() at - line 3.
677 use warnings 'misc' ;
679 $x = 1 if $x = each %a ;
681 $x = 1 if $x = each %a ;
683 Value of each() operator can be "0"; test with defined() at - line 4.
686 use warnings 'misc' ;
687 $x = 1 while $x = <*> and 0 ;
689 $x = 1 while $x = <*> and 0 ;
691 Value of glob construct can be "0"; test with defined() at - line 3.
694 use warnings 'misc' ;
696 $x = 1 while $x = readdir FH and 0 ;
698 $x = 1 while $x = readdir FH and 0 ;
701 Value of readdir() operator can be "0"; test with defined() at - line 4.
706 ($_ = <FH>) // ($_ = 1);
712 use warnings 'redefine' ;
715 no warnings 'redefine' ;
718 Subroutine fred redefined at - line 4.
721 use warnings 'redefine' ;
724 no warnings 'redefine' ;
727 Constant subroutine fred redefined at - line 4.
730 no warnings 'redefine' ;
734 Constant subroutine fred redefined at - line 4.
737 no warnings 'redefine' ;
739 *fred = sub () { 2 };
741 Constant subroutine main::fred redefined at - line 4.
744 use warnings 'redefine' ;
749 no warnings 'redefine' ;
753 Format FRED redefined at - line 5.
757 no warnings 'deprecated' ;
760 Array @FRED missing the @ in argument 1 of push() at - line 2.
764 no warnings 'deprecated' ;
767 Hash %FRED missing the % in argument 1 of keys() at - line 2.
770 use warnings 'syntax' ;
774 Statement unlikely to be reached at - line 4.
775 (Maybe you meant system() when you said exec()?)
777 # op.c, no warning if exec isn't a statement.
778 use warnings 'syntax' ;
779 $a || exec "$^X -e 1" ;
786 defined(@array) is deprecated at - line 2.
787 (Maybe you should just omit the defined()?)
790 defined(@a = (1,2,3));
792 defined(@array) is deprecated at - line 2.
793 (Maybe you should just omit the defined()?)
798 defined(%hash) is deprecated at - line 2.
799 (Maybe you should just omit the defined()?)
802 no warnings 'syntax' ;
812 Prototype mismatch: sub main::fred () vs ($) at - line 3.
816 use open qw( :utf8 :std );
820 Prototype mismatch: sub main::frèd () vs ($) at - line 5.
824 use open qw( :utf8 :std );
826 eval "sub fòò (\$\0) {}";
828 Illegal character in prototype for main::fòò : $\x{0} at (eval 1) line 1.
832 use open qw( :utf8 :std );
834 eval "sub foo (\0) {}";
836 Illegal character in prototype for main::foo : \x{0} at (eval 1) line 1.
840 use open qw( :utf8 :std );
842 BEGIN { $::{"foo"} = "\$\0L\351on" }
843 BEGIN { eval "sub foo (\$\0L\x{c3}\x{a9}on) {}"; }
845 Illegal character in prototype for main::foo : $\x{0}L... at (eval 1) line 1.
849 use open qw( :utf8 :std );
851 BEGIN { eval "sub foo (\0) {}"; }
853 Illegal character in prototype for main::foo : \x{0} at (eval 1) line 1.
857 use open qw( :utf8 :std );
859 BEGIN { $::{"foo"} = "\x{30cb}" }
860 BEGIN { eval "sub foo {}"; }
862 Prototype mismatch: sub main::foo (ニ) vs none at (eval 1) line 1.
869 no warnings 'prototype' ;
872 use warnings 'prototype' ;
879 Prototype mismatch: sub main::fred () vs ($) at - line 4.
880 Prototype mismatch: sub main::freD () vs ($) at - line 11.
881 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
884 use warnings 'syntax' ;
885 join /---/, 'x', 'y', 'z';
887 /---/ should probably be written as "---" at - line 3.
890 use warnings 'prototype' ;
893 no warnings 'prototype' ;
897 main::fred() called too early to check prototype at - line 3.
899 # op.c [Perl_newATTRSUB]
901 use warnings 'void' ;
902 BEGIN { $| = 1; print "in begin\n"; }
903 CHECK { print "in check\n"; }
904 INIT { print "in init\n"; }
905 END { print "in end\n"; }
906 print "in mainline\n";
910 delete $INC{"abc.pm"};
919 Too late to run CHECK block at abc.pm line 3.
920 Too late to run INIT block at abc.pm line 4.
923 Too late to run CHECK block at abc.pm line 3.
924 Too late to run INIT block at abc.pm line 4.
930 # op.c [Perl_newATTRSUB]
933 BEGIN { $| = 1; print "in begin\n"; }
934 CHECK { print "in check\n"; }
935 INIT { print "in init\n"; }
936 END { print "in end\n"; }
937 print "in mainline\n";
952 use warnings 'syntax' ;
955 no warnings 'syntax' ;
959 Useless use of push with no values at - line 4.
960 Useless use of unshift with no values at - line 5.
963 # 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com
964 use warnings 'regexp';
965 split /blah/g, "blah";
966 no warnings 'regexp';
967 split /blah/g, "blah";
969 Use of /g modifier is meaningless in split at - line 4.
972 use warnings 'precedence';
980 $a &= $b == $c; $a |= $b == $c; $a ^= $b == $c; # shouldn't warn
981 no warnings 'precedence';
990 Possible precedence problem on bitwise & operator at - line 3.
991 Possible precedence problem on bitwise ^ operator at - line 4.
992 Possible precedence problem on bitwise | operator at - line 5.
993 Possible precedence problem on bitwise & operator at - line 6.
994 Possible precedence problem on bitwise ^ operator at - line 7.
995 Possible precedence problem on bitwise | operator at - line 8.
996 Possible precedence problem on bitwise & operator at - line 9.
1000 use warnings 'precedence';
1007 $a = $b <=> $c & $d;
1008 no warnings 'precedence';
1015 $a = $b <=> $c & $d;
1017 Possible precedence problem on bitwise & operator at - line 4.
1018 Possible precedence problem on bitwise ^ operator at - line 5.
1019 Possible precedence problem on bitwise | operator at - line 6.
1020 Possible precedence problem on bitwise & operator at - line 7.
1021 Possible precedence problem on bitwise ^ operator at - line 8.
1022 Possible precedence problem on bitwise | operator at - line 9.
1023 Possible precedence problem on bitwise & operator at - line 10.
1027 # ok => local() has desired effect;
1028 # ignore=> local() silently ignored
1030 use warnings 'syntax';
1032 local(undef); # OP_UNDEF ignore
1033 sub lval : lvalue {};
1034 local(lval()); # OP_ENTERSUB
1035 local($x **= 1); # OP_POW
1036 local($x *= 1); # OP_MULTIPLY
1037 local($x /= 1); # OP_DIVIDE
1038 local($x %= 1); # OP_MODULO
1039 local($x x= 1); # OP_REPEAT
1040 local($x += 1); # OP_ADD
1041 local($x -= 1); # OP_SUBTRACT
1042 local($x .= 1); # OP_CONCAT
1043 local($x <<= 1); # OP_LEFT_SHIFT
1044 local($x >>= 1); # OP_RIGHT_SHIFT
1045 local($x &= 1); # OP_BIT_AND
1046 local($x ^= 1); # OP_BIT_XOR
1047 local($x |= 1); # OP_BIT_OR
1050 local($x *= 1); # OP_I_MULTIPLY
1051 local($x /= 1); # OP_I_DIVIDE
1052 local($x %= 1); # OP_I_MODULO
1053 local($x += 1); # OP_I_ADD
1054 local($x -= 1); # OP_I_SUBTRACT
1056 local($x?$y:$z) = 1; # OP_COND_EXPR ok
1057 # these two are fatal run-time errors instead
1058 #local(@$a); # OP_RV2AV ok
1059 #local(%$a); # OP_RV2HV ok
1060 local(*a); # OP_RV2GV ok
1061 local(@a[1,2]); # OP_ASLICE ok
1062 local(@a{1,2}); # OP_HSLICE ok
1063 local(@a = (1,2)); # OP_AASSIGN
1064 local($$x); # OP_RV2SV ok
1065 local($#a); # OP_AV2ARYLEN
1066 local($x = 1); # OP_SASSIGN
1067 local($x &&= 1); # OP_ANDASSIGN
1068 local($x ||= 1); # OP_ORASSIGN
1069 local($x //= 1); # OP_DORASSIGN
1070 local($a[0]); # OP_AELEMFAST ok
1072 local(substr($x,0,1)); # OP_SUBSTR
1073 local(pos($x)); # OP_POS
1074 local(vec($x,0,1)); # OP_VEC
1075 local($a[$b]); # OP_AELEM ok
1076 local($a{$b}); # OP_HELEM ok
1078 no warnings 'syntax';
1080 Useless localization of subroutine entry at - line 10.
1081 Useless localization of exponentiation (**) at - line 11.
1082 Useless localization of multiplication (*) at - line 12.
1083 Useless localization of division (/) at - line 13.
1084 Useless localization of modulus (%) at - line 14.
1085 Useless localization of repeat (x) at - line 15.
1086 Useless localization of addition (+) at - line 16.
1087 Useless localization of subtraction (-) at - line 17.
1088 Useless localization of concatenation (.) or string at - line 18.
1089 Useless localization of left bitshift (<<) at - line 19.
1090 Useless localization of right bitshift (>>) at - line 20.
1091 Useless localization of bitwise and (&) at - line 21.
1092 Useless localization of bitwise xor (^) at - line 22.
1093 Useless localization of bitwise or (|) at - line 23.
1094 Useless localization of integer multiplication (*) at - line 26.
1095 Useless localization of integer division (/) at - line 27.
1096 Useless localization of integer modulus (%) at - line 28.
1097 Useless localization of integer addition (+) at - line 29.
1098 Useless localization of integer subtraction (-) at - line 30.
1099 Useless localization of list assignment at - line 39.
1100 Useless localization of array length at - line 41.
1101 Useless localization of scalar assignment at - line 42.
1102 Useless localization of logical and assignment (&&=) at - line 43.
1103 Useless localization of logical or assignment (||=) at - line 44.
1104 Useless localization of defined or assignment (//=) at - line 45.
1105 Useless localization of substr at - line 48.
1106 Useless localization of match position at - line 49.
1107 Useless localization of vec at - line 50.
1114 my ($x5,@x6, %x7) if 0;
1117 # these shouldn't warn
1121 if (my $w2) { $a=1 }
1122 if ($a && (my $w3 = 1)) {$a = 2}
1125 Deprecated use of my() in false conditional at - line 2.
1126 Deprecated use of my() in false conditional at - line 3.
1127 Deprecated use of my() in false conditional at - line 4.
1128 Deprecated use of my() in false conditional at - line 5.
1129 Deprecated use of my() in false conditional at - line 6.
1130 Deprecated use of my() in false conditional at - line 7.
1131 Deprecated use of my() in false conditional at - line 8.
1134 use warnings 'void';
1135 @x = split /y/, "z";
1136 $x = split /y/, "z";
1139 @x = split /y/, "z";
1140 $x = split /y/, "z";
1143 Useless use of split in void context at - line 5.
1146 use warnings 'redefine' ;
1148 use open qw( :utf8 :std );
1151 no warnings 'redefine' ;
1154 Subroutine frèd redefined at - line 6.
1157 use warnings 'redefine' ;
1159 use open qw( :utf8 :std );
1162 no warnings 'redefine' ;
1165 Constant subroutine frèd redefined at - line 6.
1168 no warnings 'redefine' ;
1170 use open qw( :utf8 :std );
1174 Constant subroutine frèd redefined at - line 6.
1177 no warnings 'redefine' ;
1179 use open qw( :utf8 :std );
1181 *frèd = sub () { 2 };
1183 Constant subroutine main::frèd redefined at - line 6.
1186 use warnings 'redefine' ;
1188 use open qw( :utf8 :std );
1191 no warnings 'redefine' ;
1194 Subroutine ᚠርƊ redefined at - line 6.
1197 use warnings 'redefine' ;
1199 use open qw( :utf8 :std );
1202 no warnings 'redefine' ;
1205 Constant subroutine ᚠርƊ redefined at - line 6.
1208 no warnings 'redefine' ;
1210 use open qw( :utf8 :std );
1214 Constant subroutine ᚠርƊ redefined at - line 6.
1217 no warnings 'redefine' ;
1219 use open qw( :utf8 :std );
1221 *ᚠርƊ = sub () { 2 };
1223 Constant subroutine main::ᚠርƊ redefined at - line 6.