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 Use of "package" with no arguments is deprecated
112 Package `%s' not found (did you use the incorrect case?)
116 Prototype mismatch: [cv_ckproto]
120 %s never introduced [pad_leavemy] TODO
121 Runaway prototype [newSUB] TODO
122 oops: oopsAV [oopsAV] TODO
123 oops: oopsHV [oopsHV] TODO
128 use warnings 'misc' ;
134 "my" variable $x masks earlier declaration in same scope at - line 4.
137 use warnings 'closure' ;
145 Variable "$x" will not stay shared at - line 7.
148 no warnings 'closure' ;
159 use warnings 'closure' ;
170 use warnings 'closure' ;
178 Variable "$x" may be unavailable at - line 6.
181 no warnings 'closure' ;
192 use warnings 'syntax' ;
194 no warnings 'syntax' ;
197 Found = in conditional, should be == 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' ;
210 no warnings 'deprecated' ;
213 Use of implicit split to @_ is deprecated at - line 3.
216 use warnings 'deprecated';
222 $main::foo = {}; %$main::foo->{"bar"};
223 $foo = {}; %$foo->{"bar"};
224 $main::foo = []; @$main::foo->[34];
225 $foo = []; @$foo->[34];
226 no warnings 'deprecated';
231 $main::foo = {}; %$main::foo->{"bar"};
232 $foo = {}; %$foo->{"bar"};
233 $main::foo = []; @$main::foo->[34];
234 $foo = []; @$foo->[34];
236 Using a hash as a reference is deprecated at - line 4.
237 Using a hash as a reference is deprecated at - line 5.
238 Using an array as a reference is deprecated at - line 6.
239 Using an array as a reference is deprecated at - line 7.
240 Using a hash as a reference is deprecated at - line 8.
241 Using a hash as a reference is deprecated at - line 9.
242 Using an array as a reference is deprecated at - line 10.
243 Using an array as a reference is deprecated at - line 11.
246 use warnings 'void' ; close STDIN ;
249 wantarray ; # OP_WANTARRAY
259 defined $a ; # OP_DEFINED
262 length $a ; # OP_LENGTH
263 substr $a,1 ; # OP_SUBSTR
264 vec $a,1,2 ; # OP_VEC
265 index $a,1,2 ; # OP_INDEX
266 rindex $a,1,2 ; # OP_RINDEX
267 sprintf $a ; # OP_SPRINTF
271 #values %a ; # OP_VALUES
275 unpack "a", "a" ; # OP_UNPACK
276 pack $a,"" ; # OP_PACK
278 (@a)[0,1] ; # OP_LSLICE
281 sort(1,2) ; # OP_SORT
282 reverse(1,2) ; # OP_REVERSE
287 fileno STDIN ; # OP_FILENO
289 tell STDIN ; # OP_TELL
290 readlink 1; # OP_READLINK
292 localtime ; # OP_LOCALTIME
294 eval { getgrnam 1 }; # OP_GGRNAM
295 eval { getgrgid 1 }; # OP_GGRGID
296 eval { getpwnam 1 }; # OP_GPWNAM
297 eval { getpwuid 1 }; # OP_GPWUID
299 Useless use of repeat (x) in void context at - line 3.
300 Useless use of wantarray in void context at - line 5.
301 Useless use of reference-type operator in void context at - line 12.
302 Useless use of reference constructor in void context at - line 13.
303 Useless use of single ref constructor in void context at - line 14.
304 Useless use of defined operator in void context at - line 15.
305 Useless use of hex in void context at - line 16.
306 Useless use of oct in void context at - line 17.
307 Useless use of length in void context at - line 18.
308 Useless use of substr in void context at - line 19.
309 Useless use of vec in void context at - line 20.
310 Useless use of index in void context at - line 21.
311 Useless use of rindex in void context at - line 22.
312 Useless use of sprintf in void context at - line 23.
313 Useless use of array element in void context at - line 24.
314 Useless use of array slice in void context at - line 26.
315 Useless use of hash element in void context at - line 29.
316 Useless use of hash slice in void context at - line 30.
317 Useless use of unpack in void context at - line 31.
318 Useless use of pack in void context at - line 32.
319 Useless use of join or string in void context at - line 33.
320 Useless use of list slice in void context at - line 34.
321 Useless use of sort in void context at - line 37.
322 Useless use of reverse in void context at - line 38.
323 Useless use of range (or flop) in void context at - line 41.
324 Useless use of caller in void context at - line 42.
325 Useless use of fileno in void context at - line 43.
326 Useless use of eof in void context at - line 44.
327 Useless use of tell in void context at - line 45.
328 Useless use of readlink in void context at - line 46.
329 Useless use of time in void context at - line 47.
330 Useless use of localtime in void context at - line 48.
331 Useless use of gmtime in void context at - line 49.
332 Useless use of getgrnam in void context at - line 50.
333 Useless use of getgrgid in void context at - line 51.
334 Useless use of getpwnam in void context at - line 52.
335 Useless use of getpwuid in void context at - line 53.
338 use warnings 'void' ; close STDIN ;
339 my $x = sort (2,1,3);
343 Useless use of sort in scalar context at - line 3.
346 no warnings 'void' ; close STDIN ;
349 wantarray ; # OP_WANTARRAY
359 defined $a ; # OP_DEFINED
362 length $a ; # OP_LENGTH
363 substr $a,1 ; # OP_SUBSTR
364 vec $a,1,2 ; # OP_VEC
365 index $a,1,2 ; # OP_INDEX
366 rindex $a,1,2 ; # OP_RINDEX
367 sprintf $a ; # OP_SPRINTF
371 #values %a ; # OP_VALUES
375 unpack "a", "a" ; # OP_UNPACK
376 pack $a,"" ; # OP_PACK
378 (@a)[0,1] ; # OP_LSLICE
381 sort(1,2) ; # OP_SORT
382 reverse(1,2) ; # OP_REVERSE
387 fileno STDIN ; # OP_FILENO
389 tell STDIN ; # OP_TELL
390 readlink 1; # OP_READLINK
392 localtime ; # OP_LOCALTIME
394 eval { getgrnam 1 }; # OP_GGRNAM
395 eval { getgrgid 1 }; # OP_GGRGID
396 eval { getpwnam 1 }; # OP_GPWNAM
397 eval { getpwuid 1 }; # OP_GPWUID
401 use warnings 'void' ;
402 for (@{[0]}) { "$_" } # check warning isn't duplicated
404 for (@{[0]}) { "$_" } # check warning isn't duplicated
406 Useless use of string in void context at - line 3.
409 use warnings 'void' ;
412 if ( ! $Config{d_telldir}) {
415 # telldir not present
420 telldir 1 ; # OP_TELLDIR
422 telldir 1 ; # OP_TELLDIR
424 Useless use of telldir in void context at - line 13.
427 use warnings 'void' ;
430 if ( ! $Config{d_getppid}) {
433 # getppid not present
438 getppid ; # OP_GETPPID
440 getppid ; # OP_GETPPID
442 Useless use of getppid in void context at - line 13.
445 use warnings 'void' ;
448 if ( ! $Config{d_getpgrp}) {
451 # getpgrp not present
456 getpgrp ; # OP_GETPGRP
458 getpgrp ; # OP_GETPGRP
460 Useless use of getpgrp in void context at - line 13.
463 use warnings 'void' ;
466 if ( ! $Config{d_times}) {
478 Useless use of times in void context at - line 13.
481 use warnings 'void' ;
484 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
487 # getpriority not present
492 getpriority 1,2; # OP_GETPRIORITY
494 getpriority 1,2; # OP_GETPRIORITY
496 Useless use of getpriority in void context at - line 13.
499 use warnings 'void' ;
502 if ( ! $Config{d_getlogin}) {
505 # getlogin not present
510 getlogin ; # OP_GETLOGIN
512 getlogin ; # OP_GETLOGIN
514 Useless use of getlogin in void context at - line 13.
517 use warnings 'void' ;
519 if ( ! $Config{d_socket}) {
522 # getsockname not present
523 # getpeername not present
524 # gethostbyname not present
525 # gethostbyaddr not present
526 # gethostent not present
527 # getnetbyname not present
528 # getnetbyaddr not present
529 # getnetent not present
530 # getprotobyname not present
531 # getprotobynumber not present
532 # getprotoent not present
533 # getservbyname not present
534 # getservbyport not present
535 # getservent not present
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
555 getsockname STDIN ; # OP_GETSOCKNAME
556 getpeername STDIN ; # OP_GETPEERNAME
557 gethostbyname 1 ; # OP_GHBYNAME
558 gethostbyaddr 1,2; # OP_GHBYADDR
559 gethostent ; # OP_GHOSTENT
560 getnetbyname 1 ; # OP_GNBYNAME
561 getnetbyaddr 1,2 ; # OP_GNBYADDR
562 getnetent ; # OP_GNETENT
563 getprotobyname 1; # OP_GPBYNAME
564 getprotobynumber 1; # OP_GPBYNUMBER
565 getprotoent ; # OP_GPROTOENT
566 getservbyname 1,2; # OP_GSBYNAME
567 getservbyport 1,2; # OP_GSBYPORT
568 getservent ; # OP_GSERVENT
570 # some functions may not be there, so we exit without running
574 Useless use of getsockname in void context at - line 24.
575 Useless use of getpeername in void context at - line 25.
576 Useless use of gethostbyname in void context at - line 26.
577 Useless use of gethostbyaddr in void context at - line 27.
578 Useless use of gethostent in void context at - line 28.
579 Useless use of getnetbyname in void context at - line 29.
580 Useless use of getnetbyaddr in void context at - line 30.
581 Useless use of getnetent in void context at - line 31.
582 Useless use of getprotobyname in void context at - line 32.
583 Useless use of getprotobynumber in void context at - line 33.
584 Useless use of getprotoent in void context at - line 34.
585 Useless use of getservbyname in void context at - line 35.
586 Useless use of getservbyport in void context at - line 36.
587 Useless use of getservent in void context at - line 37.
590 use warnings 'void' ;
601 Useless use of a variable in void context at - line 3.
602 Useless use of a variable in void context at - line 4.
603 Useless use of a variable in void context at - line 5.
604 Useless use of a variable in void context at - line 6.
607 use warnings 'void' ;
614 Useless use of a constant in void context at - line 3.
615 Useless use of a constant in void context at - line 4.
619 use warnings 'misc' ;
620 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
635 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
650 Applying pattern match (m//) to @array will act on scalar(@array) at - line 5.
651 Applying substitution (s///) to @array will act on scalar(@array) at - line 6.
652 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.
653 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
654 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
655 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
656 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.
657 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.
658 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.
659 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
660 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
661 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
662 Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"
663 BEGIN not safe after errors--compilation aborted at - line 18.
666 use warnings 'syntax' ;
668 no warnings 'syntax' ;
671 Parentheses missing around "my" list at - line 3.
674 use warnings 'syntax' ;
675 local $a, $b = (1,2);
676 no warnings 'syntax' ;
677 local $c, $d = (1,2);
679 Parentheses missing around "local" list at - line 3.
682 use warnings 'bareword' ;
684 no warnings 'bareword' ;
687 Bareword found in conditional at - line 3.
693 use warnings 'misc' ;
695 $x = 1 if $x = <FH> ;
697 $x = 1 if $x = <FH> ;
699 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
702 use warnings 'misc' ;
704 $x = 1 if $x = readdir FH ;
706 $x = 1 if $x = readdir FH ;
709 Value of readdir() operator can be "0"; test with defined() at - line 4.
712 use warnings 'misc' ;
717 Value of glob construct can be "0"; test with defined() at - line 3.
720 use warnings 'misc' ;
722 $x = 1 if $x = each %a ;
724 $x = 1 if $x = each %a ;
726 Value of each() operator can be "0"; test with defined() at - line 4.
729 use warnings 'misc' ;
730 $x = 1 while $x = <*> and 0 ;
732 $x = 1 while $x = <*> and 0 ;
734 Value of glob construct can be "0"; test with defined() at - line 3.
737 use warnings 'misc' ;
739 $x = 1 while $x = readdir FH and 0 ;
741 $x = 1 while $x = readdir FH and 0 ;
744 Value of readdir() operator can be "0"; test with defined() at - line 4.
747 use warnings 'redefine' ;
750 no warnings 'redefine' ;
753 Subroutine fred redefined at - line 4.
756 use warnings 'redefine' ;
759 no warnings 'redefine' ;
762 Constant subroutine fred redefined at - line 4.
765 no warnings 'redefine' ;
769 Constant subroutine fred redefined at - line 4.
772 no warnings 'redefine' ;
774 *fred = sub () { 2 };
776 Constant subroutine fred redefined at - line 4.
779 use warnings 'redefine' ;
784 no warnings 'redefine' ;
788 Format FRED redefined at - line 5.
791 use warnings 'deprecated' ;
793 no warnings 'deprecated' ;
796 Array @FRED missing the @ in argument 1 of push() at - line 3.
799 use warnings 'deprecated' ;
801 no warnings 'deprecated' ;
804 Hash %FRED missing the % in argument 1 of keys() at - line 3.
807 use warnings 'syntax' ;
811 Statement unlikely to be reached at - line 4.
812 (Maybe you meant system() when you said exec()?)
815 use warnings 'deprecated' ;
818 defined(@array) is deprecated at - line 3.
819 (Maybe you should just omit the defined()?)
822 use warnings 'deprecated' ;
823 defined(@a = (1,2,3));
825 defined(@array) is deprecated at - line 3.
826 (Maybe you should just omit the defined()?)
829 use warnings 'deprecated' ;
832 defined(%hash) is deprecated at - line 3.
833 (Maybe you should just omit the defined()?)
836 no warnings 'syntax' ;
846 Prototype mismatch: sub main::fred () vs ($) at - line 3.
853 no warnings 'prototype' ;
856 use warnings 'prototype' ;
863 Prototype mismatch: sub main::fred () vs ($) at - line 4.
864 Prototype mismatch: sub main::freD () vs ($) at - line 11.
865 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
868 use warnings 'syntax' ;
869 join /---/, 'x', 'y', 'z';
871 /---/ should probably be written as "---" at - line 3.
874 use warnings 'prototype' ;
877 no warnings 'prototype' ;
881 main::fred() called too early to check prototype at - line 3.
883 # op.c [Perl_newATTRSUB]
885 use warnings 'void' ;
886 BEGIN { $| = 1; print "in begin\n"; }
887 CHECK { print "in check\n"; }
888 INIT { print "in init\n"; }
889 END { print "in end\n"; }
890 print "in mainline\n";
894 delete $INC{"abc.pm"};
903 Too late to run CHECK block at abc.pm line 3.
904 Too late to run INIT block at abc.pm line 4.
907 Too late to run CHECK block at abc.pm line 3.
908 Too late to run INIT block at abc.pm line 4.
914 # op.c [Perl_newATTRSUB]
917 BEGIN { $| = 1; print "in begin\n"; }
918 CHECK { print "in check\n"; }
919 INIT { print "in init\n"; }
920 END { print "in end\n"; }
921 print "in mainline\n";
936 use warnings 'syntax' ;
939 no warnings 'syntax' ;
943 Useless use of push with no values at - line 4.
944 Useless use of unshift with no values at - line 5.
947 use warnings 'deprecated' ;
949 no warnings 'deprecated' ;
952 Use of "package" with no arguments is deprecated at - line 3.
953 Global symbol "BEGIN" requires explicit package name at - line 4.
954 BEGIN not safe after errors--compilation aborted at - line 4.