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 Applying %s to %s will act on scalar(%s)
40 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
55 Parentheses missing around "my" list at -e line 1.
58 Parentheses missing around "local" list at -e line 1.
61 Bareword found in conditional at -e line 1.
62 use warnings 'bareword'; my $x = print(ABC || 1);
64 Value of %s may be \"0\"; use \"defined\"
66 $x = 1 while $x = <FH> ;
68 Subroutine fred redefined at -e line 1.
69 sub fred{1;} sub fred{1;}
71 Constant subroutine %s redefined
72 sub fred() {1;} sub fred() {1;}
74 Format FRED redefined at /tmp/x line 5.
80 Array @%s missing the @ in argument %d of %s()
83 Hash %%%s missing the %% in argument %d of %s()
86 Statement unlikely to be reached
87 (Maybe you meant system() when you said exec()?
90 defined(@array) is deprecated
91 (Maybe you should just omit the defined()?)
93 defined (@a = (1,2,3)) ;
95 defined(%hash) is deprecated
96 (Maybe you should just omit the defined()?)
99 /---/ should probably be written as "---"
102 %s() called too early to check prototype [Perl_peep]
103 fred() ; sub fred ($$) {}
108 Prototype mismatch: [cv_ckproto]
112 %s never introduced [pad_leavemy] TODO
113 Runaway prototype [newSUB] TODO
114 oops: oopsAV [oopsAV] TODO
115 oops: oopsHV [oopsHV] TODO
120 use warnings 'misc' ;
126 "my" variable $x masks earlier declaration in same scope at - line 4.
129 use warnings 'closure' ;
137 Variable "$x" will not stay shared at - line 7.
140 no warnings 'closure' ;
151 use warnings 'closure' ;
162 use warnings 'closure' ;
170 Variable "$x" may be unavailable at - line 6.
173 no warnings 'closure' ;
184 use warnings 'syntax' ;
186 no warnings 'syntax' ;
189 Found = in conditional, should be == at - line 3.
192 use warnings 'deprecated' ;
194 no warnings 'deprecated' ;
197 Use of implicit split to @_ is deprecated at - line 3.
200 use warnings 'deprecated' ;
202 no warnings 'deprecated' ;
205 Use of implicit split to @_ is deprecated at - line 3.
208 use warnings 'deprecated';
214 $main::foo = {}; %$main::foo->{"bar"};
215 $foo = {}; %$foo->{"bar"};
216 $main::foo = []; @$main::foo->[34];
217 $foo = []; @$foo->[34];
218 no warnings 'deprecated';
223 $main::foo = {}; %$main::foo->{"bar"};
224 $foo = {}; %$foo->{"bar"};
225 $main::foo = []; @$main::foo->[34];
226 $foo = []; @$foo->[34];
228 Using a hash as a reference is deprecated at - line 4.
229 Using a hash as a reference is deprecated at - line 5.
230 Using an array as a reference is deprecated at - line 6.
231 Using an array as a reference is deprecated at - line 7.
232 Using a hash as a reference is deprecated at - line 8.
233 Using a hash as a reference is deprecated at - line 9.
234 Using an array as a reference is deprecated at - line 10.
235 Using an array as a reference is deprecated at - line 11.
238 use warnings 'void' ; close STDIN ;
241 wantarray ; # OP_WANTARRAY
251 defined $a ; # OP_DEFINED
254 length $a ; # OP_LENGTH
255 substr $a,1 ; # OP_SUBSTR
256 vec $a,1,2 ; # OP_VEC
257 index $a,1,2 ; # OP_INDEX
258 rindex $a,1,2 ; # OP_RINDEX
259 sprintf $a ; # OP_SPRINTF
263 #values %a ; # OP_VALUES
267 unpack "a", "a" ; # OP_UNPACK
268 pack $a,"" ; # OP_PACK
270 (@a)[0,1] ; # OP_LSLICE
273 sort(1,2) ; # OP_SORT
274 reverse(1,2) ; # OP_REVERSE
279 fileno STDIN ; # OP_FILENO
281 tell STDIN ; # OP_TELL
282 readlink 1; # OP_READLINK
284 localtime ; # OP_LOCALTIME
286 eval { getgrnam 1 }; # OP_GGRNAM
287 eval { getgrgid 1 }; # OP_GGRGID
288 eval { getpwnam 1 }; # OP_GPWNAM
289 eval { getpwuid 1 }; # OP_GPWUID
291 Useless use of repeat (x) in void context at - line 3.
292 Useless use of wantarray in void context at - line 5.
293 Useless use of reference-type operator in void context at - line 12.
294 Useless use of reference constructor in void context at - line 13.
295 Useless use of single ref constructor in void context at - line 14.
296 Useless use of defined operator in void context at - line 15.
297 Useless use of hex in void context at - line 16.
298 Useless use of oct in void context at - line 17.
299 Useless use of length in void context at - line 18.
300 Useless use of substr in void context at - line 19.
301 Useless use of vec in void context at - line 20.
302 Useless use of index in void context at - line 21.
303 Useless use of rindex in void context at - line 22.
304 Useless use of sprintf in void context at - line 23.
305 Useless use of array element in void context at - line 24.
306 Useless use of array slice in void context at - line 26.
307 Useless use of hash element in void context at - line 29.
308 Useless use of hash slice in void context at - line 30.
309 Useless use of unpack in void context at - line 31.
310 Useless use of pack in void context at - line 32.
311 Useless use of join or string in void context at - line 33.
312 Useless use of list slice in void context at - line 34.
313 Useless use of sort in void context at - line 37.
314 Useless use of reverse in void context at - line 38.
315 Useless use of range (or flop) in void context at - line 41.
316 Useless use of caller in void context at - line 42.
317 Useless use of fileno in void context at - line 43.
318 Useless use of eof in void context at - line 44.
319 Useless use of tell in void context at - line 45.
320 Useless use of readlink in void context at - line 46.
321 Useless use of time in void context at - line 47.
322 Useless use of localtime in void context at - line 48.
323 Useless use of gmtime in void context at - line 49.
324 Useless use of getgrnam in void context at - line 50.
325 Useless use of getgrgid in void context at - line 51.
326 Useless use of getpwnam in void context at - line 52.
327 Useless use of getpwuid in void context at - line 53.
330 no warnings 'void' ; close STDIN ;
333 wantarray ; # OP_WANTARRAY
343 defined $a ; # OP_DEFINED
346 length $a ; # OP_LENGTH
347 substr $a,1 ; # OP_SUBSTR
348 vec $a,1,2 ; # OP_VEC
349 index $a,1,2 ; # OP_INDEX
350 rindex $a,1,2 ; # OP_RINDEX
351 sprintf $a ; # OP_SPRINTF
355 #values %a ; # OP_VALUES
359 unpack "a", "a" ; # OP_UNPACK
360 pack $a,"" ; # OP_PACK
362 (@a)[0,1] ; # OP_LSLICE
365 sort(1,2) ; # OP_SORT
366 reverse(1,2) ; # OP_REVERSE
371 fileno STDIN ; # OP_FILENO
373 tell STDIN ; # OP_TELL
374 readlink 1; # OP_READLINK
376 localtime ; # OP_LOCALTIME
378 eval { getgrnam 1 }; # OP_GGRNAM
379 eval { getgrgid 1 }; # OP_GGRGID
380 eval { getpwnam 1 }; # OP_GPWNAM
381 eval { getpwuid 1 }; # OP_GPWUID
385 use warnings 'void' ;
386 for (@{[0]}) { "$_" } # check warning isn't duplicated
388 for (@{[0]}) { "$_" } # check warning isn't duplicated
390 Useless use of string in void context at - line 3.
393 use warnings 'void' ;
396 if ( ! $Config{d_telldir}) {
399 # telldir not present
404 telldir 1 ; # OP_TELLDIR
406 telldir 1 ; # OP_TELLDIR
408 Useless use of telldir in void context at - line 13.
411 use warnings 'void' ;
414 if ( ! $Config{d_getppid}) {
417 # getppid not present
422 getppid ; # OP_GETPPID
424 getppid ; # OP_GETPPID
426 Useless use of getppid in void context at - line 13.
429 use warnings 'void' ;
432 if ( ! $Config{d_getpgrp}) {
435 # getpgrp not present
440 getpgrp ; # OP_GETPGRP
442 getpgrp ; # OP_GETPGRP
444 Useless use of getpgrp in void context at - line 13.
447 use warnings 'void' ;
450 if ( ! $Config{d_times}) {
462 Useless use of times in void context at - line 13.
465 use warnings 'void' ;
468 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
471 # getpriority not present
476 getpriority 1,2; # OP_GETPRIORITY
478 getpriority 1,2; # OP_GETPRIORITY
480 Useless use of getpriority in void context at - line 13.
483 use warnings 'void' ;
486 if ( ! $Config{d_getlogin}) {
489 # getlogin not present
494 getlogin ; # OP_GETLOGIN
496 getlogin ; # OP_GETLOGIN
498 Useless use of getlogin in void context at - line 13.
501 use warnings 'void' ;
503 if ( ! $Config{d_socket}) {
506 # getsockname not present
507 # getpeername not present
508 # gethostbyname not present
509 # gethostbyaddr not present
510 # gethostent not present
511 # getnetbyname not present
512 # getnetbyaddr not present
513 # getnetent not present
514 # getprotobyname not present
515 # getprotobynumber not present
516 # getprotoent not present
517 # getservbyname not present
518 # getservbyport not present
519 # getservent not present
523 getsockname STDIN ; # OP_GETSOCKNAME
524 getpeername STDIN ; # OP_GETPEERNAME
525 gethostbyname 1 ; # OP_GHBYNAME
526 gethostbyaddr 1,2; # OP_GHBYADDR
527 gethostent ; # OP_GHOSTENT
528 getnetbyname 1 ; # OP_GNBYNAME
529 getnetbyaddr 1,2 ; # OP_GNBYADDR
530 getnetent ; # OP_GNETENT
531 getprotobyname 1; # OP_GPBYNAME
532 getprotobynumber 1; # OP_GPBYNUMBER
533 getprotoent ; # OP_GPROTOENT
534 getservbyname 1,2; # OP_GSBYNAME
535 getservbyport 1,2; # OP_GSBYPORT
536 getservent ; # OP_GSERVENT
539 getsockname STDIN ; # OP_GETSOCKNAME
540 getpeername STDIN ; # OP_GETPEERNAME
541 gethostbyname 1 ; # OP_GHBYNAME
542 gethostbyaddr 1,2; # OP_GHBYADDR
543 gethostent ; # OP_GHOSTENT
544 getnetbyname 1 ; # OP_GNBYNAME
545 getnetbyaddr 1,2 ; # OP_GNBYADDR
546 getnetent ; # OP_GNETENT
547 getprotobyname 1; # OP_GPBYNAME
548 getprotobynumber 1; # OP_GPBYNUMBER
549 getprotoent ; # OP_GPROTOENT
550 getservbyname 1,2; # OP_GSBYNAME
551 getservbyport 1,2; # OP_GSBYPORT
552 getservent ; # OP_GSERVENT
554 # some functions may not be there, so we exit without running
558 Useless use of getsockname in void context at - line 24.
559 Useless use of getpeername in void context at - line 25.
560 Useless use of gethostbyname in void context at - line 26.
561 Useless use of gethostbyaddr in void context at - line 27.
562 Useless use of gethostent in void context at - line 28.
563 Useless use of getnetbyname in void context at - line 29.
564 Useless use of getnetbyaddr in void context at - line 30.
565 Useless use of getnetent in void context at - line 31.
566 Useless use of getprotobyname in void context at - line 32.
567 Useless use of getprotobynumber in void context at - line 33.
568 Useless use of getprotoent in void context at - line 34.
569 Useless use of getservbyname in void context at - line 35.
570 Useless use of getservbyport in void context at - line 36.
571 Useless use of getservent in void context at - line 37.
574 use warnings 'void' ;
585 Useless use of a variable in void context at - line 3.
586 Useless use of a variable in void context at - line 4.
587 Useless use of a variable in void context at - line 5.
588 Useless use of a variable in void context at - line 6.
591 use warnings 'void' ;
598 Useless use of a constant in void context at - line 3.
599 Useless use of a constant in void context at - line 4.
603 use warnings 'misc' ;
604 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
619 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
634 Applying pattern match (m//) to @array will act on scalar(@array) at - line 5.
635 Applying substitution (s///) to @array will act on scalar(@array) at - line 6.
636 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.
637 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
638 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
639 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
640 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.
641 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.
642 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.
643 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
644 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
645 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
646 Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"
647 BEGIN not safe after errors--compilation aborted at - line 18.
650 use warnings 'syntax' ;
652 no warnings 'syntax' ;
655 Parentheses missing around "my" list at - line 3.
658 use warnings 'syntax' ;
659 local $a, $b = (1,2);
660 no warnings 'syntax' ;
661 local $c, $d = (1,2);
663 Parentheses missing around "local" list at - line 3.
666 use warnings 'bareword' ;
668 no warnings 'bareword' ;
671 Bareword found in conditional at - line 3.
677 use warnings 'misc' ;
679 $x = 1 if $x = <FH> ;
681 $x = 1 if $x = <FH> ;
683 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
686 use warnings 'misc' ;
688 $x = 1 if $x = readdir FH ;
690 $x = 1 if $x = readdir FH ;
693 Value of readdir() operator can be "0"; test with defined() at - line 4.
696 use warnings 'misc' ;
701 Value of glob construct can be "0"; test with defined() at - line 3.
704 use warnings 'misc' ;
706 $x = 1 if $x = each %a ;
708 $x = 1 if $x = each %a ;
710 Value of each() operator can be "0"; test with defined() at - line 4.
713 use warnings 'misc' ;
714 $x = 1 while $x = <*> and 0 ;
716 $x = 1 while $x = <*> and 0 ;
718 Value of glob construct can be "0"; test with defined() at - line 3.
721 use warnings 'misc' ;
723 $x = 1 while $x = readdir FH and 0 ;
725 $x = 1 while $x = readdir FH and 0 ;
728 Value of readdir() operator can be "0"; test with defined() at - line 4.
731 use warnings 'redefine' ;
734 no warnings 'redefine' ;
737 Subroutine fred redefined at - line 4.
740 use warnings 'redefine' ;
743 no warnings 'redefine' ;
746 Constant subroutine fred redefined at - line 4.
749 no warnings 'redefine' ;
753 Constant subroutine fred redefined at - line 4.
756 no warnings 'redefine' ;
758 *fred = sub () { 2 };
760 Constant subroutine fred redefined at - line 4.
763 use warnings 'redefine' ;
768 no warnings 'redefine' ;
772 Format FRED redefined at - line 5.
775 use warnings 'deprecated' ;
777 no warnings 'deprecated' ;
780 Array @FRED missing the @ in argument 1 of push() at - line 3.
783 use warnings 'deprecated' ;
785 no warnings 'deprecated' ;
788 Hash %FRED missing the % in argument 1 of keys() at - line 3.
791 use warnings 'syntax' ;
795 Statement unlikely to be reached at - line 4.
796 (Maybe you meant system() when you said exec()?)
799 use warnings 'deprecated' ;
802 defined(@array) is deprecated at - line 3.
803 (Maybe you should just omit the defined()?)
806 use warnings 'deprecated' ;
807 defined(@a = (1,2,3));
809 defined(@array) is deprecated at - line 3.
810 (Maybe you should just omit the defined()?)
813 use warnings 'deprecated' ;
816 defined(%hash) is deprecated at - line 3.
817 (Maybe you should just omit the defined()?)
820 no warnings 'syntax' ;
830 Prototype mismatch: sub main::fred () vs ($) at - line 3.
837 no warnings 'prototype' ;
840 use warnings 'prototype' ;
847 Prototype mismatch: sub main::fred () vs ($) at - line 4.
848 Prototype mismatch: sub main::freD () vs ($) at - line 11.
849 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
852 use warnings 'syntax' ;
853 join /---/, 'x', 'y', 'z';
855 /---/ should probably be written as "---" at - line 3.
858 use warnings 'prototype' ;
861 no warnings 'prototype' ;
865 main::fred() called too early to check prototype at - line 3.
867 # op.c [Perl_newATTRSUB]
869 use warnings 'void' ;
870 BEGIN { $| = 1; print "in begin\n"; }
871 CHECK { print "in check\n"; }
872 INIT { print "in init\n"; }
873 END { print "in end\n"; }
874 print "in mainline\n";
878 delete $INC{"abc.pm"};
887 Too late to run CHECK block at abc.pm line 3.
888 Too late to run INIT block at abc.pm line 4.
891 Too late to run CHECK block at abc.pm line 3.
892 Too late to run INIT block at abc.pm line 4.
898 # op.c [Perl_newATTRSUB]
901 BEGIN { $| = 1; print "in begin\n"; }
902 CHECK { print "in check\n"; }
903 INIT { print "in init\n"; }
904 END { print "in end\n"; }
905 print "in mainline\n";
920 use warnings 'syntax' ;
923 no warnings 'syntax' ;
927 Useless use of push with no values at - line 4.
928 Useless use of unshift with no values at - line 5.