3 "my" variable %s masks earlier declaration in same scope
7 Variable "%s" may be unavailable
15 Variable "%s" will not stay shared
23 Found = in conditional, should be ==
26 Use of implicit split to @_ is deprecated
29 Use of implicit split to @_ is deprecated
32 Useless use of time in void context
33 Useless use of a variable in void context
34 Useless use of a constant in void context
39 Useless use of sort in scalar context
42 Applying %s to %s will act on scalar(%s)
43 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
58 Parentheses missing around "my" list at -e line 1.
61 Parentheses missing around "local" list at -e line 1.
64 Bareword found in conditional at -e line 1.
65 use warnings 'bareword'; my $x = print(ABC || 1);
67 Value of %s may be \"0\"; use \"defined\"
69 $x = 1 while $x = <FH> ;
71 Subroutine fred redefined at -e line 1.
72 sub fred{1;} sub fred{1;}
74 Constant subroutine %s redefined
75 sub fred() {1;} sub fred() {1;}
77 Format FRED redefined at /tmp/x line 5.
83 Array @%s missing the @ in argument %d of %s()
86 Hash %%%s missing the %% in argument %d of %s()
89 Statement unlikely to be reached
90 (Maybe you meant system() when you said exec()?
93 defined(@array) is deprecated
94 (Maybe you should just omit the defined()?)
96 defined (@a = (1,2,3)) ;
98 defined(%hash) is deprecated
99 (Maybe you should just omit the defined()?)
102 /---/ should probably be written as "---"
105 %s() called too early to check prototype [Perl_peep]
106 fred() ; sub fred ($$) {}
109 Package `%s' not found (did you use the incorrect case?)
111 Use of /g modifier is meaningless in split
113 Possible precedence problem on bitwise %c operator [Perl_ck_bitop]
117 Prototype mismatch: [cv_ckproto]
121 %s never introduced [pad_leavemy] TODO
122 Runaway prototype [newSUB] TODO
123 oops: oopsAV [oopsAV] TODO
124 oops: oopsHV [oopsHV] TODO
128 use warnings 'misc' ;
136 "my" variable $x masks earlier declaration in same scope at - line 4.
137 "my" variable $y masks earlier declaration in same statement at - line 5.
140 use warnings 'closure' ;
148 Variable "$x" will not stay shared at - line 7.
151 no warnings 'closure' ;
162 use warnings 'closure' ;
173 use warnings 'closure' ;
181 Variable "$x" may be unavailable at - line 6.
184 no warnings 'closure' ;
195 use warnings 'syntax' ;
197 no warnings 'syntax' ;
200 Found = in conditional, should be == at - line 3.
203 use warnings 'deprecated' ;
205 no warnings 'deprecated' ;
208 Use of implicit split to @_ is deprecated at - line 3.
211 use warnings 'deprecated' ;
213 no warnings 'deprecated' ;
216 Use of implicit split to @_ is deprecated at - line 3.
219 use warnings 'deprecated';
225 $main::foo = {}; %$main::foo->{"bar"};
226 $foo = {}; %$foo->{"bar"};
227 $main::foo = []; @$main::foo->[34];
228 $foo = []; @$foo->[34];
229 no warnings 'deprecated';
234 $main::foo = {}; %$main::foo->{"bar"};
235 $foo = {}; %$foo->{"bar"};
236 $main::foo = []; @$main::foo->[34];
237 $foo = []; @$foo->[34];
239 Using a hash as a reference is deprecated at - line 4.
240 Using a hash as a reference is deprecated at - line 5.
241 Using an array as a reference is deprecated at - line 6.
242 Using an array as a reference is deprecated at - line 7.
243 Using a hash as a reference is deprecated at - line 8.
244 Using a hash as a reference is deprecated at - line 9.
245 Using an array as a reference is deprecated at - line 10.
246 Using an array as a reference is deprecated at - line 11.
249 use warnings 'void' ; close STDIN ;
252 wantarray ; # OP_WANTARRAY
262 defined $a ; # OP_DEFINED
265 length $a ; # OP_LENGTH
266 substr $a,1 ; # OP_SUBSTR
267 vec $a,1,2 ; # OP_VEC
268 index $a,1,2 ; # OP_INDEX
269 rindex $a,1,2 ; # OP_RINDEX
270 sprintf $a ; # OP_SPRINTF
274 #values %a ; # OP_VALUES
278 unpack "a", "a" ; # OP_UNPACK
279 pack $a,"" ; # OP_PACK
281 (@a)[0,1] ; # OP_LSLICE
284 sort(1,2) ; # OP_SORT
285 reverse(1,2) ; # OP_REVERSE
290 fileno STDIN ; # OP_FILENO
292 tell STDIN ; # OP_TELL
293 readlink 1; # OP_READLINK
295 localtime ; # OP_LOCALTIME
297 eval { getgrnam 1 }; # OP_GGRNAM
298 eval { getgrgid 1 }; # OP_GGRGID
299 eval { getpwnam 1 }; # OP_GPWNAM
300 eval { getpwuid 1 }; # OP_GPWUID
302 Useless use of repeat (x) in void context at - line 3.
303 Useless use of wantarray in void context at - line 5.
304 Useless use of reference-type operator in void context at - line 12.
305 Useless use of reference constructor in void context at - line 13.
306 Useless use of single ref constructor in void context at - line 14.
307 Useless use of defined operator in void context at - line 15.
308 Useless use of hex in void context at - line 16.
309 Useless use of oct in void context at - line 17.
310 Useless use of length in void context at - line 18.
311 Useless use of substr in void context at - line 19.
312 Useless use of vec in void context at - line 20.
313 Useless use of index in void context at - line 21.
314 Useless use of rindex in void context at - line 22.
315 Useless use of sprintf in void context at - line 23.
316 Useless use of array element in void context at - line 24.
317 Useless use of array slice in void context at - line 26.
318 Useless use of hash element in void context at - line 29.
319 Useless use of hash slice in void context at - line 30.
320 Useless use of unpack in void context at - line 31.
321 Useless use of pack in void context at - line 32.
322 Useless use of join or string in void context at - line 33.
323 Useless use of list slice in void context at - line 34.
324 Useless use of sort in void context at - line 37.
325 Useless use of reverse in void context at - line 38.
326 Useless use of range (or flop) in void context at - line 41.
327 Useless use of caller in void context at - line 42.
328 Useless use of fileno in void context at - line 43.
329 Useless use of eof in void context at - line 44.
330 Useless use of tell in void context at - line 45.
331 Useless use of readlink in void context at - line 46.
332 Useless use of time in void context at - line 47.
333 Useless use of localtime in void context at - line 48.
334 Useless use of gmtime in void context at - line 49.
335 Useless use of getgrnam in void context at - line 50.
336 Useless use of getgrgid in void context at - line 51.
337 Useless use of getpwnam in void context at - line 52.
338 Useless use of getpwuid in void context at - line 53.
341 use warnings 'void' ; close STDIN ;
342 my $x = sort (2,1,3);
346 Useless use of sort in scalar context at - line 3.
349 no warnings 'void' ; close STDIN ;
352 wantarray ; # OP_WANTARRAY
362 defined $a ; # OP_DEFINED
365 length $a ; # OP_LENGTH
366 substr $a,1 ; # OP_SUBSTR
367 vec $a,1,2 ; # OP_VEC
368 index $a,1,2 ; # OP_INDEX
369 rindex $a,1,2 ; # OP_RINDEX
370 sprintf $a ; # OP_SPRINTF
374 #values %a ; # OP_VALUES
378 unpack "a", "a" ; # OP_UNPACK
379 pack $a,"" ; # OP_PACK
381 (@a)[0,1] ; # OP_LSLICE
384 sort(1,2) ; # OP_SORT
385 reverse(1,2) ; # OP_REVERSE
390 fileno STDIN ; # OP_FILENO
392 tell STDIN ; # OP_TELL
393 readlink 1; # OP_READLINK
395 localtime ; # OP_LOCALTIME
397 eval { getgrnam 1 }; # OP_GGRNAM
398 eval { getgrgid 1 }; # OP_GGRGID
399 eval { getpwnam 1 }; # OP_GPWNAM
400 eval { getpwuid 1 }; # OP_GPWUID
404 use warnings 'void' ;
405 for (@{[0]}) { "$_" } # check warning isn't duplicated
407 for (@{[0]}) { "$_" } # check warning isn't duplicated
409 Useless use of string in void context at - line 3.
412 use warnings 'void' ;
415 if ( ! $Config{d_telldir}) {
418 # telldir not present
423 telldir 1 ; # OP_TELLDIR
425 telldir 1 ; # OP_TELLDIR
427 Useless use of telldir in void context at - line 13.
430 use warnings 'void' ;
433 if ( ! $Config{d_getppid}) {
436 # getppid not present
441 getppid ; # OP_GETPPID
443 getppid ; # OP_GETPPID
445 Useless use of getppid in void context at - line 13.
448 use warnings 'void' ;
451 if ( ! $Config{d_getpgrp}) {
454 # getpgrp not present
459 getpgrp ; # OP_GETPGRP
461 getpgrp ; # OP_GETPGRP
463 Useless use of getpgrp in void context at - line 13.
466 use warnings 'void' ;
469 if ( ! $Config{d_times}) {
481 Useless use of times in void context at - line 13.
484 use warnings 'void' ;
487 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
490 # getpriority not present
495 getpriority 1,2; # OP_GETPRIORITY
497 getpriority 1,2; # OP_GETPRIORITY
499 Useless use of getpriority in void context at - line 13.
502 use warnings 'void' ;
505 if ( ! $Config{d_getlogin}) {
508 # getlogin not present
513 getlogin ; # OP_GETLOGIN
515 getlogin ; # OP_GETLOGIN
517 Useless use of getlogin in void context at - line 13.
520 use warnings 'void' ;
522 if ( ! $Config{d_socket}) {
525 # getsockname not present
526 # getpeername not present
527 # gethostbyname not present
528 # gethostbyaddr not present
529 # gethostent not present
530 # getnetbyname not present
531 # getnetbyaddr not present
532 # getnetent not present
533 # getprotobyname not present
534 # getprotobynumber not present
535 # getprotoent not present
536 # getservbyname not present
537 # getservbyport not present
538 # getservent not present
542 getsockname STDIN ; # OP_GETSOCKNAME
543 getpeername STDIN ; # OP_GETPEERNAME
544 gethostbyname 1 ; # OP_GHBYNAME
545 gethostbyaddr 1,2; # OP_GHBYADDR
546 gethostent ; # OP_GHOSTENT
547 getnetbyname 1 ; # OP_GNBYNAME
548 getnetbyaddr 1,2 ; # OP_GNBYADDR
549 getnetent ; # OP_GNETENT
550 getprotobyname 1; # OP_GPBYNAME
551 getprotobynumber 1; # OP_GPBYNUMBER
552 getprotoent ; # OP_GPROTOENT
553 getservbyname 1,2; # OP_GSBYNAME
554 getservbyport 1,2; # OP_GSBYPORT
555 getservent ; # OP_GSERVENT
558 getsockname STDIN ; # OP_GETSOCKNAME
559 getpeername STDIN ; # OP_GETPEERNAME
560 gethostbyname 1 ; # OP_GHBYNAME
561 gethostbyaddr 1,2; # OP_GHBYADDR
562 gethostent ; # OP_GHOSTENT
563 getnetbyname 1 ; # OP_GNBYNAME
564 getnetbyaddr 1,2 ; # OP_GNBYADDR
565 getnetent ; # OP_GNETENT
566 getprotobyname 1; # OP_GPBYNAME
567 getprotobynumber 1; # OP_GPBYNUMBER
568 getprotoent ; # OP_GPROTOENT
569 getservbyname 1,2; # OP_GSBYNAME
570 getservbyport 1,2; # OP_GSBYPORT
571 getservent ; # OP_GSERVENT
573 # some functions may not be there, so we exit without running
577 Useless use of getsockname in void context at - line 24.
578 Useless use of getpeername in void context at - line 25.
579 Useless use of gethostbyname in void context at - line 26.
580 Useless use of gethostbyaddr in void context at - line 27.
581 Useless use of gethostent in void context at - line 28.
582 Useless use of getnetbyname in void context at - line 29.
583 Useless use of getnetbyaddr in void context at - line 30.
584 Useless use of getnetent in void context at - line 31.
585 Useless use of getprotobyname in void context at - line 32.
586 Useless use of getprotobynumber in void context at - line 33.
587 Useless use of getprotoent in void context at - line 34.
588 Useless use of getservbyname in void context at - line 35.
589 Useless use of getservbyport in void context at - line 36.
590 Useless use of getservent in void context at - line 37.
593 use warnings 'void' ;
604 Useless use of a variable in void context at - line 3.
605 Useless use of a variable in void context at - line 4.
606 Useless use of a variable in void context at - line 5.
607 Useless use of a variable in void context at - line 6.
610 use warnings 'void' ;
617 Useless use of a constant in void context at - line 3.
618 Useless use of a constant in void context at - line 4.
622 use warnings 'misc' ;
623 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
638 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
653 Applying pattern match (m//) to @array will act on scalar(@array) at - line 5.
654 Applying substitution (s///) to @array will act on scalar(@array) at - line 6.
655 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.
656 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
657 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
658 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
659 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.
660 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.
661 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.
662 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
663 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
664 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
665 Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"
666 BEGIN not safe after errors--compilation aborted at - line 18.
669 use warnings 'syntax' ;
671 no warnings 'syntax' ;
674 Parentheses missing around "my" list at - line 3.
677 use warnings 'syntax' ;
678 local $a, $b = (1,2);
679 no warnings 'syntax' ;
680 local $c, $d = (1,2);
682 Parentheses missing around "local" list at - line 3.
685 use warnings 'bareword' ;
687 no warnings 'bareword' ;
690 Bareword found in conditional at - line 3.
696 use warnings 'misc' ;
698 $x = 1 if $x = <FH> ;
700 $x = 1 if $x = <FH> ;
702 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
705 use warnings 'misc' ;
707 $x = 1 if $x = readdir FH ;
709 $x = 1 if $x = readdir FH ;
712 Value of readdir() operator can be "0"; test with defined() at - line 4.
715 use warnings 'misc' ;
720 Value of glob construct can be "0"; test with defined() at - line 3.
723 use warnings 'misc' ;
725 $x = 1 if $x = each %a ;
727 $x = 1 if $x = each %a ;
729 Value of each() operator can be "0"; test with defined() at - line 4.
732 use warnings 'misc' ;
733 $x = 1 while $x = <*> and 0 ;
735 $x = 1 while $x = <*> and 0 ;
737 Value of glob construct can be "0"; test with defined() at - line 3.
740 use warnings 'misc' ;
742 $x = 1 while $x = readdir FH and 0 ;
744 $x = 1 while $x = readdir FH and 0 ;
747 Value of readdir() operator can be "0"; test with defined() at - line 4.
750 use warnings 'redefine' ;
753 no warnings 'redefine' ;
756 Subroutine fred redefined at - line 4.
759 use warnings 'redefine' ;
762 no warnings 'redefine' ;
765 Constant subroutine fred redefined at - line 4.
768 no warnings 'redefine' ;
772 Constant subroutine fred redefined at - line 4.
775 no warnings 'redefine' ;
777 *fred = sub () { 2 };
779 Constant subroutine main::fred redefined at - line 4.
782 use warnings 'redefine' ;
787 no warnings 'redefine' ;
791 Format FRED redefined at - line 5.
794 use warnings 'deprecated' ;
796 no warnings 'deprecated' ;
799 Array @FRED missing the @ in argument 1 of push() at - line 3.
802 use warnings 'deprecated' ;
804 no warnings 'deprecated' ;
807 Hash %FRED missing the % in argument 1 of keys() at - line 3.
811 if ($^O eq 'MacOS') {
819 use warnings 'syntax' ;
823 Statement unlikely to be reached at - line 13.
824 (Maybe you meant system() when you said exec()?)
827 use warnings 'deprecated' ;
830 defined(@array) is deprecated at - line 3.
831 (Maybe you should just omit the defined()?)
834 use warnings 'deprecated' ;
835 defined(@a = (1,2,3));
837 defined(@array) is deprecated at - line 3.
838 (Maybe you should just omit the defined()?)
841 use warnings 'deprecated' ;
844 defined(%hash) is deprecated at - line 3.
845 (Maybe you should just omit the defined()?)
849 if ($^O eq 'MacOS') {
857 no warnings 'syntax' ;
867 Prototype mismatch: sub main::fred () vs ($) at - line 3.
874 no warnings 'prototype' ;
877 use warnings 'prototype' ;
884 Prototype mismatch: sub main::fred () vs ($) at - line 4.
885 Prototype mismatch: sub main::freD () vs ($) at - line 11.
886 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
889 use warnings 'syntax' ;
890 join /---/, 'x', 'y', 'z';
892 /---/ should probably be written as "---" at - line 3.
895 use warnings 'prototype' ;
898 no warnings 'prototype' ;
902 main::fred() called too early to check prototype at - line 3.
904 # op.c [Perl_newATTRSUB]
906 use warnings 'void' ;
907 BEGIN { $| = 1; print "in begin\n"; }
908 CHECK { print "in check\n"; }
909 INIT { print "in init\n"; }
910 END { print "in end\n"; }
911 print "in mainline\n";
915 delete $INC{"abc.pm"};
924 Too late to run CHECK block at abc.pm line 3.
925 Too late to run INIT block at abc.pm line 4.
928 Too late to run CHECK block at abc.pm line 3.
929 Too late to run INIT block at abc.pm line 4.
935 # op.c [Perl_newATTRSUB]
938 BEGIN { $| = 1; print "in begin\n"; }
939 CHECK { print "in check\n"; }
940 INIT { print "in init\n"; }
941 END { print "in end\n"; }
942 print "in mainline\n";
957 use warnings 'syntax' ;
960 no warnings 'syntax' ;
964 Useless use of push with no values at - line 4.
965 Useless use of unshift with no values at - line 5.
968 # 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com
969 use warnings 'regexp';
970 split /blah/g, "blah";
971 no warnings 'regexp';
972 split /blah/g, "blah";
974 Use of /g modifier is meaningless in split at - line 4.
977 use warnings 'precedence';
985 no warnings 'precedence';
994 Possible precedence problem on bitwise & operator at - line 3.
995 Possible precedence problem on bitwise ^ operator at - line 4.
996 Possible precedence problem on bitwise | operator at - line 5.
997 Possible precedence problem on bitwise & operator at - line 6.
998 Possible precedence problem on bitwise ^ operator at - line 7.
999 Possible precedence problem on bitwise | operator at - line 8.
1000 Possible precedence problem on bitwise & operator at - line 9.
1004 use warnings 'precedence';
1011 $a = $b <=> $c & $d;
1012 no warnings 'precedence';
1019 $a = $b <=> $c & $d;
1021 Possible precedence problem on bitwise & operator at - line 4.
1022 Possible precedence problem on bitwise ^ operator at - line 5.
1023 Possible precedence problem on bitwise | operator at - line 6.
1024 Possible precedence problem on bitwise & operator at - line 7.
1025 Possible precedence problem on bitwise ^ operator at - line 8.
1026 Possible precedence problem on bitwise | operator at - line 9.
1027 Possible precedence problem on bitwise & operator at - line 10.