3 Found = in conditional, should be ==
6 Use of implicit split to @_ is deprecated
9 Use of implicit split to @_ is deprecated
12 Useless use of time in void context
13 Useless use of a variable in void context
14 Useless use of a constant in void context
19 Useless use of sort in scalar context
22 Applying %s to %s will act on scalar(%s)
23 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
38 Parentheses missing around "my" list at -e line 1.
41 Parentheses missing around "local" list at -e line 1.
44 Bareword found in conditional at -e line 1.
45 use warnings 'bareword'; my $x = print(ABC || 1);
47 Value of %s may be \"0\"; use \"defined\"
49 $x = 1 while $x = <FH> ;
51 Subroutine fred redefined at -e line 1.
52 sub fred{1;} sub fred{1;}
54 Constant subroutine %s redefined
55 sub fred() {1;} sub fred() {1;}
57 Format FRED redefined at /tmp/x line 5.
63 Array @%s missing the @ in argument %d of %s()
66 Hash %%%s missing the %% in argument %d of %s()
69 Statement unlikely to be reached
70 (Maybe you meant system() when you said exec()?
73 defined(@array) is deprecated
74 (Maybe you should just omit the defined()?)
76 defined (@a = (1,2,3)) ;
78 defined(%hash) is deprecated
79 (Maybe you should just omit the defined()?)
82 /---/ should probably be written as "---"
85 %s() called too early to check prototype [Perl_peep]
86 fred() ; sub fred ($$) {}
89 Package `%s' not found (did you use the incorrect case?)
91 Use of /g modifier is meaningless in split
93 Possible precedence problem on bitwise %c operator [Perl_ck_bitop]
97 Prototype mismatch: [cv_ckproto]
101 Runaway prototype [newSUB] TODO
102 oops: oopsAV [oopsAV] TODO
103 oops: oopsHV [oopsHV] TODO
107 use warnings 'syntax' ;
109 no warnings 'syntax' ;
112 Found = in conditional, should be == at - line 3.
115 use warnings 'deprecated' ;
117 no warnings 'deprecated' ;
120 Use of implicit split to @_ is deprecated at - line 3.
123 use warnings 'deprecated' ;
125 no warnings 'deprecated' ;
128 Use of implicit split to @_ is deprecated at - line 3.
131 use warnings 'deprecated';
137 $main::foo = {}; %$main::foo->{"bar"};
138 $foo = {}; %$foo->{"bar"};
139 $main::foo = []; @$main::foo->[34];
140 $foo = []; @$foo->[34];
141 no warnings 'deprecated';
146 $main::foo = {}; %$main::foo->{"bar"};
147 $foo = {}; %$foo->{"bar"};
148 $main::foo = []; @$main::foo->[34];
149 $foo = []; @$foo->[34];
151 Using a hash as a reference is deprecated at - line 4.
152 Using a hash as a reference is deprecated at - line 5.
153 Using an array as a reference is deprecated at - line 6.
154 Using an array as a reference is deprecated at - line 7.
155 Using a hash as a reference is deprecated at - line 8.
156 Using a hash as a reference is deprecated at - line 9.
157 Using an array as a reference is deprecated at - line 10.
158 Using an array as a reference is deprecated at - line 11.
161 use warnings 'void' ; close STDIN ;
164 wantarray ; # OP_WANTARRAY
174 defined $a ; # OP_DEFINED
177 length $a ; # OP_LENGTH
178 substr $a,1 ; # OP_SUBSTR
179 vec $a,1,2 ; # OP_VEC
180 index $a,1,2 ; # OP_INDEX
181 rindex $a,1,2 ; # OP_RINDEX
182 sprintf $a ; # OP_SPRINTF
186 #values %a ; # OP_VALUES
190 unpack "a", "a" ; # OP_UNPACK
191 pack $a,"" ; # OP_PACK
193 (@a)[0,1] ; # OP_LSLICE
196 sort(1,2) ; # OP_SORT
197 reverse(1,2) ; # OP_REVERSE
202 fileno STDIN ; # OP_FILENO
204 tell STDIN ; # OP_TELL
205 readlink 1; # OP_READLINK
207 localtime ; # OP_LOCALTIME
209 eval { getgrnam 1 }; # OP_GGRNAM
210 eval { getgrgid 1 }; # OP_GGRGID
211 eval { getpwnam 1 }; # OP_GPWNAM
212 eval { getpwuid 1 }; # OP_GPWUID
213 prototype "foo"; # OP_PROTOTYPE
215 Useless use of repeat (x) in void context at - line 3.
216 Useless use of wantarray in void context at - line 5.
217 Useless use of reference-type operator in void context at - line 12.
218 Useless use of reference constructor in void context at - line 13.
219 Useless use of single ref constructor in void context at - line 14.
220 Useless use of defined operator in void context at - line 15.
221 Useless use of hex in void context at - line 16.
222 Useless use of oct in void context at - line 17.
223 Useless use of length in void context at - line 18.
224 Useless use of substr in void context at - line 19.
225 Useless use of vec in void context at - line 20.
226 Useless use of index in void context at - line 21.
227 Useless use of rindex in void context at - line 22.
228 Useless use of sprintf in void context at - line 23.
229 Useless use of array element in void context at - line 24.
230 Useless use of array slice in void context at - line 26.
231 Useless use of hash element in void context at - line 29.
232 Useless use of hash slice in void context at - line 30.
233 Useless use of unpack in void context at - line 31.
234 Useless use of pack in void context at - line 32.
235 Useless use of join or string in void context at - line 33.
236 Useless use of list slice in void context at - line 34.
237 Useless use of sort in void context at - line 37.
238 Useless use of reverse in void context at - line 38.
239 Useless use of range (or flop) in void context at - line 41.
240 Useless use of caller in void context at - line 42.
241 Useless use of fileno in void context at - line 43.
242 Useless use of eof in void context at - line 44.
243 Useless use of tell in void context at - line 45.
244 Useless use of readlink in void context at - line 46.
245 Useless use of time in void context at - line 47.
246 Useless use of localtime in void context at - line 48.
247 Useless use of gmtime in void context at - line 49.
248 Useless use of getgrnam in void context at - line 50.
249 Useless use of getgrgid in void context at - line 51.
250 Useless use of getpwnam in void context at - line 52.
251 Useless use of getpwuid in void context at - line 53.
252 Useless use of subroutine prototype in void context at - line 54.
255 use warnings 'void' ; close STDIN ;
256 my $x = sort (2,1,3);
260 Useless use of sort in scalar context at - line 3.
263 no warnings 'void' ; close STDIN ;
266 wantarray ; # OP_WANTARRAY
276 defined $a ; # OP_DEFINED
279 length $a ; # OP_LENGTH
280 substr $a,1 ; # OP_SUBSTR
281 vec $a,1,2 ; # OP_VEC
282 index $a,1,2 ; # OP_INDEX
283 rindex $a,1,2 ; # OP_RINDEX
284 sprintf $a ; # OP_SPRINTF
288 #values %a ; # OP_VALUES
292 unpack "a", "a" ; # OP_UNPACK
293 pack $a,"" ; # OP_PACK
295 (@a)[0,1] ; # OP_LSLICE
298 sort(1,2) ; # OP_SORT
299 reverse(1,2) ; # OP_REVERSE
304 fileno STDIN ; # OP_FILENO
306 tell STDIN ; # OP_TELL
307 readlink 1; # OP_READLINK
309 localtime ; # OP_LOCALTIME
311 eval { getgrnam 1 }; # OP_GGRNAM
312 eval { getgrgid 1 }; # OP_GGRGID
313 eval { getpwnam 1 }; # OP_GPWNAM
314 eval { getpwuid 1 }; # OP_GPWUID
315 prototype "foo"; # OP_PROTOTYPE
319 use warnings 'void' ;
320 for (@{[0]}) { "$_" } # check warning isn't duplicated
322 for (@{[0]}) { "$_" } # check warning isn't duplicated
324 Useless use of string in void context at - line 3.
327 use warnings 'void' ;
330 if ( ! $Config{d_telldir}) {
333 # telldir not present
338 telldir 1 ; # OP_TELLDIR
340 telldir 1 ; # OP_TELLDIR
342 Useless use of telldir in void context at - line 13.
345 use warnings 'void' ;
348 if ( ! $Config{d_getppid}) {
351 # getppid not present
356 getppid ; # OP_GETPPID
358 getppid ; # OP_GETPPID
360 Useless use of getppid in void context at - line 13.
363 use warnings 'void' ;
366 if ( ! $Config{d_getpgrp}) {
369 # getpgrp not present
374 getpgrp ; # OP_GETPGRP
376 getpgrp ; # OP_GETPGRP
378 Useless use of getpgrp in void context at - line 13.
381 use warnings 'void' ;
384 if ( ! $Config{d_times}) {
396 Useless use of times in void context at - line 13.
399 use warnings 'void' ;
402 if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22
405 # getpriority not present
410 getpriority 1,2; # OP_GETPRIORITY
412 getpriority 1,2; # OP_GETPRIORITY
414 Useless use of getpriority in void context at - line 13.
417 use warnings 'void' ;
420 if ( ! $Config{d_getlogin}) {
423 # getlogin not present
428 getlogin ; # OP_GETLOGIN
430 getlogin ; # OP_GETLOGIN
432 Useless use of getlogin in void context at - line 13.
435 use warnings 'void' ;
437 if ( ! $Config{d_socket}) {
440 # getsockname not present
441 # getpeername not present
442 # gethostbyname not present
443 # gethostbyaddr not present
444 # gethostent not present
445 # getnetbyname not present
446 # getnetbyaddr not present
447 # getnetent not present
448 # getprotobyname not present
449 # getprotobynumber not present
450 # getprotoent not present
451 # getservbyname not present
452 # getservbyport not present
453 # getservent not present
457 getsockname STDIN ; # OP_GETSOCKNAME
458 getpeername STDIN ; # OP_GETPEERNAME
459 gethostbyname 1 ; # OP_GHBYNAME
460 gethostbyaddr 1,2; # OP_GHBYADDR
461 gethostent ; # OP_GHOSTENT
462 getnetbyname 1 ; # OP_GNBYNAME
463 getnetbyaddr 1,2 ; # OP_GNBYADDR
464 getnetent ; # OP_GNETENT
465 getprotobyname 1; # OP_GPBYNAME
466 getprotobynumber 1; # OP_GPBYNUMBER
467 getprotoent ; # OP_GPROTOENT
468 getservbyname 1,2; # OP_GSBYNAME
469 getservbyport 1,2; # OP_GSBYPORT
470 getservent ; # OP_GSERVENT
473 getsockname STDIN ; # OP_GETSOCKNAME
474 getpeername STDIN ; # OP_GETPEERNAME
475 gethostbyname 1 ; # OP_GHBYNAME
476 gethostbyaddr 1,2; # OP_GHBYADDR
477 gethostent ; # OP_GHOSTENT
478 getnetbyname 1 ; # OP_GNBYNAME
479 getnetbyaddr 1,2 ; # OP_GNBYADDR
480 getnetent ; # OP_GNETENT
481 getprotobyname 1; # OP_GPBYNAME
482 getprotobynumber 1; # OP_GPBYNUMBER
483 getprotoent ; # OP_GPROTOENT
484 getservbyname 1,2; # OP_GSBYNAME
485 getservbyport 1,2; # OP_GSBYPORT
486 getservent ; # OP_GSERVENT
488 # some functions may not be there, so we exit without running
492 Useless use of getsockname in void context at - line 24.
493 Useless use of getpeername in void context at - line 25.
494 Useless use of gethostbyname in void context at - line 26.
495 Useless use of gethostbyaddr in void context at - line 27.
496 Useless use of gethostent in void context at - line 28.
497 Useless use of getnetbyname in void context at - line 29.
498 Useless use of getnetbyaddr in void context at - line 30.
499 Useless use of getnetent in void context at - line 31.
500 Useless use of getprotobyname in void context at - line 32.
501 Useless use of getprotobynumber in void context at - line 33.
502 Useless use of getprotoent in void context at - line 34.
503 Useless use of getservbyname in void context at - line 35.
504 Useless use of getservbyport in void context at - line 36.
505 Useless use of getservent in void context at - line 37.
508 use warnings 'void' ;
519 Useless use of a variable in void context at - line 3.
520 Useless use of a variable in void context at - line 4.
521 Useless use of a variable in void context at - line 5.
522 Useless use of a variable in void context at - line 6.
525 use warnings 'void' ;
528 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT
529 use constant U => undef;
530 print "boo\n" if U; # test OPpCONST_SHORTCIRCUIT
531 $[ = 2; # should not warn
536 Useless use of a constant in void context at - line 3.
537 Useless use of a constant in void context at - line 4.
541 use warnings 'misc' ;
542 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
557 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
572 Applying pattern match (m//) to @array will act on scalar(@array) at - line 5.
573 Applying substitution (s///) to @array will act on scalar(@array) at - line 6.
574 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.
575 Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.
576 Applying substitution (s///) to @array will act on scalar(@array) at - line 9.
577 Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.
578 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.
579 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.
580 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.
581 Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.
582 Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.
583 Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.
584 Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"
585 BEGIN not safe after errors--compilation aborted at - line 18.
588 use warnings 'parenthesis' ;
590 my @foo,%bar, $quux; # there's a TAB here
592 no warnings 'parenthesis' ;
595 Parentheses missing around "my" list at - line 3.
596 Parentheses missing around "my" list at - line 4.
599 use warnings 'parenthesis' ;
601 no warnings 'parenthesis' ;
604 Parentheses missing around "our" list at - line 3.
607 use warnings 'parenthesis' ;
608 local $a, $b = (1,2);
610 no warnings 'parenthesis' ;
611 local $c, $d = (1,2);
613 Parentheses missing around "local" list at - line 3.
614 Parentheses missing around "local" list at - line 4.
617 use warnings 'bareword' ;
619 no warnings 'bareword' ;
622 Bareword found in conditional at - line 3.
628 use warnings 'misc' ;
630 $x = 1 if $x = <FH> ;
632 $x = 1 if $x = <FH> ;
634 Value of <HANDLE> construct can be "0"; test with defined() at - line 4.
637 use warnings 'misc' ;
639 $x = 1 if $x = readdir FH ;
641 $x = 1 if $x = readdir FH ;
644 Value of readdir() operator can be "0"; test with defined() at - line 4.
647 use warnings 'misc' ;
652 Value of glob construct can be "0"; test with defined() at - line 3.
655 use warnings 'misc' ;
657 $x = 1 if $x = each %a ;
659 $x = 1 if $x = each %a ;
661 Value of each() operator can be "0"; test with defined() at - line 4.
664 use warnings 'misc' ;
665 $x = 1 while $x = <*> and 0 ;
667 $x = 1 while $x = <*> and 0 ;
669 Value of glob construct can be "0"; test with defined() at - line 3.
672 use warnings 'misc' ;
674 $x = 1 while $x = readdir FH and 0 ;
676 $x = 1 while $x = readdir FH and 0 ;
679 Value of readdir() operator can be "0"; test with defined() at - line 4.
685 $_ = <FH> err $_ = 1;
686 ($_ = <FH>) // ($_ = 1);
688 $_ = readdir DH err $_ = 1;
691 $_ = each %a err $_ = 1;
695 use warnings 'redefine' ;
698 no warnings 'redefine' ;
701 Subroutine fred redefined at - line 4.
704 use warnings 'redefine' ;
707 no warnings 'redefine' ;
710 Constant subroutine fred redefined at - line 4.
713 no warnings 'redefine' ;
717 Constant subroutine fred redefined at - line 4.
720 no warnings 'redefine' ;
722 *fred = sub () { 2 };
724 Constant subroutine main::fred redefined at - line 4.
727 use warnings 'redefine' ;
732 no warnings 'redefine' ;
736 Format FRED redefined at - line 5.
739 use warnings 'deprecated' ;
741 no warnings 'deprecated' ;
744 Array @FRED missing the @ in argument 1 of push() at - line 3.
747 use warnings 'deprecated' ;
749 no warnings 'deprecated' ;
752 Hash %FRED missing the % in argument 1 of keys() at - line 3.
756 if ($^O eq 'MacOS') {
764 use warnings 'syntax' ;
768 Statement unlikely to be reached at - line 13.
769 (Maybe you meant system() when you said exec()?)
772 use warnings 'deprecated' ;
775 defined(@array) is deprecated at - line 3.
776 (Maybe you should just omit the defined()?)
779 use warnings 'deprecated' ;
780 defined(@a = (1,2,3));
782 defined(@array) is deprecated at - line 3.
783 (Maybe you should just omit the defined()?)
786 use warnings 'deprecated' ;
789 defined(%hash) is deprecated at - line 3.
790 (Maybe you should just omit the defined()?)
794 if ($^O eq 'MacOS') {
802 no warnings 'syntax' ;
812 Prototype mismatch: sub main::fred () vs ($) at - line 3.
819 no warnings 'prototype' ;
822 use warnings 'prototype' ;
829 Prototype mismatch: sub main::fred () vs ($) at - line 4.
830 Prototype mismatch: sub main::freD () vs ($) at - line 11.
831 Prototype mismatch: sub main::FRED () vs ($) at - line 14.
834 use warnings 'syntax' ;
835 join /---/, 'x', 'y', 'z';
837 /---/ should probably be written as "---" at - line 3.
840 use warnings 'prototype' ;
843 no warnings 'prototype' ;
847 main::fred() called too early to check prototype at - line 3.
849 # op.c [Perl_newATTRSUB]
851 use warnings 'void' ;
852 BEGIN { $| = 1; print "in begin\n"; }
853 CHECK { print "in check\n"; }
854 INIT { print "in init\n"; }
855 END { print "in end\n"; }
856 print "in mainline\n";
860 delete $INC{"abc.pm"};
869 Too late to run CHECK block at abc.pm line 3.
870 Too late to run INIT block at abc.pm line 4.
873 Too late to run CHECK block at abc.pm line 3.
874 Too late to run INIT block at abc.pm line 4.
880 # op.c [Perl_newATTRSUB]
883 BEGIN { $| = 1; print "in begin\n"; }
884 CHECK { print "in check\n"; }
885 INIT { print "in init\n"; }
886 END { print "in end\n"; }
887 print "in mainline\n";
902 use warnings 'syntax' ;
905 no warnings 'syntax' ;
909 Useless use of push with no values at - line 4.
910 Useless use of unshift with no values at - line 5.
913 # 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com
914 use warnings 'regexp';
915 split /blah/g, "blah";
916 no warnings 'regexp';
917 split /blah/g, "blah";
919 Use of /g modifier is meaningless in split at - line 4.
922 use warnings 'precedence';
930 $a &= $b == $c; $a |= $b == $c; $a ^= $b == $c; # shouldn't warn
931 no warnings 'precedence';
940 Possible precedence problem on bitwise & operator at - line 3.
941 Possible precedence problem on bitwise ^ operator at - line 4.
942 Possible precedence problem on bitwise | operator at - line 5.
943 Possible precedence problem on bitwise & operator at - line 6.
944 Possible precedence problem on bitwise ^ operator at - line 7.
945 Possible precedence problem on bitwise | operator at - line 8.
946 Possible precedence problem on bitwise & operator at - line 9.
950 use warnings 'precedence';
958 no warnings 'precedence';
967 Possible precedence problem on bitwise & operator at - line 4.
968 Possible precedence problem on bitwise ^ operator at - line 5.
969 Possible precedence problem on bitwise | operator at - line 6.
970 Possible precedence problem on bitwise & operator at - line 7.
971 Possible precedence problem on bitwise ^ operator at - line 8.
972 Possible precedence problem on bitwise | operator at - line 9.
973 Possible precedence problem on bitwise & operator at - line 10.
977 # ok => local() has desired effect;
978 # ignore=> local() silently ignored
980 use warnings 'syntax';
982 local(undef); # OP_UNDEF ignore
983 sub lval : lvalue {};
984 local(lval()); # OP_ENTERSUB
985 local($x **= 1); # OP_POW
986 local($x *= 1); # OP_MULTIPLY
987 local($x /= 1); # OP_DIVIDE
988 local($x %= 1); # OP_MODULO
989 local($x x= 1); # OP_REPEAT
990 local($x += 1); # OP_ADD
991 local($x -= 1); # OP_SUBTRACT
992 local($x .= 1); # OP_CONCAT
993 local($x <<= 1); # OP_LEFT_SHIFT
994 local($x >>= 1); # OP_RIGHT_SHIFT
995 local($x &= 1); # OP_BIT_AND
996 local($x ^= 1); # OP_BIT_XOR
997 local($x |= 1); # OP_BIT_OR
1000 local($x *= 1); # OP_I_MULTIPLY
1001 local($x /= 1); # OP_I_DIVIDE
1002 local($x %= 1); # OP_I_MODULO
1003 local($x += 1); # OP_I_ADD
1004 local($x -= 1); # OP_I_SUBTRACT
1006 local($x?$y:$z) = 1; # OP_COND_EXPR ok
1007 # these two are fatal run-time errors instead
1008 #local(@$a); # OP_RV2AV ok
1009 #local(%$a); # OP_RV2HV ok
1010 local(*a); # OP_RV2GV ok
1011 local(@a[1,2]); # OP_ASLICE ok
1012 local(@a{1,2}); # OP_HSLICE ok
1013 local(@a = (1,2)); # OP_AASSIGN
1014 local($$x); # OP_RV2SV ok
1015 local($#a); # OP_AV2ARYLEN
1016 local($x = 1); # OP_SASSIGN
1017 local($x &&= 1); # OP_ANDASSIGN
1018 local($x ||= 1); # OP_ORASSIGN
1019 local($x //= 1); # OP_DORASSIGN
1020 local($a[0]); # OP_AELEMFAST ok
1022 local(substr($x,0,1)); # OP_SUBSTR
1023 local(pos($x)); # OP_POS
1024 local(vec($x,0,1)); # OP_VEC
1025 local($a[$b]); # OP_AELEM ok
1026 local($a{$b}); # OP_HELEM ok
1027 local($[); # OP_CONST
1029 no warnings 'syntax';
1031 Useless localization of subroutine entry at - line 10.
1032 Useless localization of exponentiation (**) at - line 11.
1033 Useless localization of multiplication (*) at - line 12.
1034 Useless localization of division (/) at - line 13.
1035 Useless localization of modulus (%) at - line 14.
1036 Useless localization of repeat (x) at - line 15.
1037 Useless localization of addition (+) at - line 16.
1038 Useless localization of subtraction (-) at - line 17.
1039 Useless localization of concatenation (.) or string at - line 18.
1040 Useless localization of left bitshift (<<) at - line 19.
1041 Useless localization of right bitshift (>>) at - line 20.
1042 Useless localization of bitwise and (&) at - line 21.
1043 Useless localization of bitwise xor (^) at - line 22.
1044 Useless localization of bitwise or (|) at - line 23.
1045 Useless localization of integer multiplication (*) at - line 26.
1046 Useless localization of integer division (/) at - line 27.
1047 Useless localization of integer modulus (%) at - line 28.
1048 Useless localization of integer addition (+) at - line 29.
1049 Useless localization of integer subtraction (-) at - line 30.
1050 Useless localization of list assignment at - line 39.
1051 Useless localization of array length at - line 41.
1052 Useless localization of scalar assignment at - line 42.
1053 Useless localization of logical and assignment (&&=) at - line 43.
1054 Useless localization of logical or assignment (||=) at - line 44.
1055 Useless localization of defined or assignment (//=) at - line 45.
1056 Useless localization of substr at - line 48.
1057 Useless localization of match position at - line 49.
1058 Useless localization of vec at - line 50.
1061 use warnings 'deprecated';
1066 my ($x5,@x6, %x7) if 0;
1069 # these shouldn't warn
1073 if (my $w2) { $a=1 }
1074 if ($a && (my $w3 = 1)) {$a = 2}
1077 Deprecated use of my() in false conditional at - line 3.
1078 Deprecated use of my() in false conditional at - line 4.
1079 Deprecated use of my() in false conditional at - line 5.
1080 Deprecated use of my() in false conditional at - line 6.
1081 Deprecated use of my() in false conditional at - line 7.
1082 Deprecated use of my() in false conditional at - line 8.
1083 Deprecated use of my() in false conditional at - line 9.
1086 use feature 'state';
1087 use warnings 'misc';
1090 (state $z, my $t) = (3, 4);
1091 (state $foo, state $bar) = (5, 6);
1092 (undef, my $v, state $w) = (7 .. 9);
1096 (state $z, my $t) = (3, 4);
1097 (state $foo, state $bar) = (5, 6);
1098 (undef, my $v, state $w) = (7 .. 9);
1100 State variable $z will be reinitialized at - line 6.
1101 State variable $foo will be reinitialized at - line 7.
1102 State variable $bar will be reinitialized at - line 7.
1103 State variable $w will be reinitialized at - line 8.