Commit | Line | Data |
599cee73 |
1 | op.c AOK |
2 | |
599cee73 |
3 | Found = in conditional, should be == |
4 | 1 if $a = 1 ; |
5 | |
6 | Use of implicit split to @_ is deprecated |
7 | split ; |
8 | |
9 | Use of implicit split to @_ is deprecated |
10 | $a = split ; |
11 | |
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 |
15 | time ; |
16 | $a ; |
17 | "abc" |
18 | |
a801c63c |
19 | Useless use of sort in scalar context |
20 | my $x = sort (2,1,3); |
21 | |
599cee73 |
22 | Applying %s to %s will act on scalar(%s) |
23 | my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ; |
24 | @a =~ /abc/ ; |
25 | @a =~ s/a/b/ ; |
26 | @a =~ tr/a/b/ ; |
27 | @$b =~ /abc/ ; |
28 | @$b =~ s/a/b/ ; |
29 | @$b =~ tr/a/b/ ; |
30 | %a =~ /abc/ ; |
31 | %a =~ s/a/b/ ; |
32 | %a =~ tr/a/b/ ; |
33 | %$c =~ /abc/ ; |
34 | %$c =~ s/a/b/ ; |
35 | %$c =~ tr/a/b/ ; |
36 | |
37 | |
df5b6949 |
38 | Parentheses missing around "my" list at -e line 1. |
599cee73 |
39 | my $a, $b = (1,2); |
40 | |
df5b6949 |
41 | Parentheses missing around "local" list at -e line 1. |
599cee73 |
42 | local $a, $b = (1,2); |
43 | |
34d09196 |
44 | Bareword found in conditional at -e line 1. |
e476b1b5 |
45 | use warnings 'bareword'; my $x = print(ABC || 1); |
599cee73 |
46 | |
47 | Value of %s may be \"0\"; use \"defined\" |
48 | $x = 1 if $x = <FH> ; |
49 | $x = 1 while $x = <FH> ; |
50 | |
51 | Subroutine fred redefined at -e line 1. |
52 | sub fred{1;} sub fred{1;} |
53 | |
54 | Constant subroutine %s redefined |
55 | sub fred() {1;} sub fred() {1;} |
56 | |
57 | Format FRED redefined at /tmp/x line 5. |
58 | format FRED = |
59 | . |
60 | format FRED = |
61 | . |
62 | |
63 | Array @%s missing the @ in argument %d of %s() |
64 | push fred ; |
65 | |
66 | Hash %%%s missing the %% in argument %d of %s() |
67 | keys joe ; |
68 | |
69 | Statement unlikely to be reached |
cc507455 |
70 | (Maybe you meant system() when you said exec()? |
599cee73 |
71 | exec "true" ; my $a |
72 | |
f10b0346 |
73 | defined(@array) is deprecated |
cc507455 |
74 | (Maybe you should just omit the defined()?) |
69794302 |
75 | my @a ; defined @a ; |
76 | defined (@a = (1,2,3)) ; |
77 | |
f10b0346 |
78 | defined(%hash) is deprecated |
cc507455 |
79 | (Maybe you should just omit the defined()?) |
69794302 |
80 | my %h ; defined %h ; |
eb6e2d6f |
81 | |
82 | /---/ should probably be written as "---" |
83 | join(/---/, @foo); |
599cee73 |
84 | |
767a6a26 |
85 | %s() called too early to check prototype [Perl_peep] |
86 | fred() ; sub fred ($$) {} |
87 | |
88 | |
3b434eb1 |
89 | Package `%s' not found (did you use the incorrect case?) |
90 | |
f34840d8 |
91 | Use of /g modifier is meaningless in split |
92 | |
276b2a0c |
93 | Possible precedence problem on bitwise %c operator [Perl_ck_bitop] |
94 | |
0453d815 |
95 | Mandatory Warnings |
96 | ------------------ |
97 | Prototype mismatch: [cv_ckproto] |
98 | sub fred() ; |
99 | sub fred($) {} |
100 | |
0453d815 |
101 | Runaway prototype [newSUB] TODO |
102 | oops: oopsAV [oopsAV] TODO |
103 | oops: oopsHV [oopsHV] TODO |
104 | |
599cee73 |
105 | __END__ |
106 | # op.c |
4438c4b7 |
107 | use warnings 'syntax' ; |
599cee73 |
108 | 1 if $a = 1 ; |
4438c4b7 |
109 | no warnings 'syntax' ; |
0453d815 |
110 | 1 if $a = 1 ; |
599cee73 |
111 | EXPECT |
112 | Found = in conditional, should be == at - line 3. |
113 | ######## |
114 | # op.c |
4438c4b7 |
115 | use warnings 'deprecated' ; |
599cee73 |
116 | split ; |
4438c4b7 |
117 | no warnings 'deprecated' ; |
0453d815 |
118 | split ; |
599cee73 |
119 | EXPECT |
120 | Use of implicit split to @_ is deprecated at - line 3. |
121 | ######## |
122 | # op.c |
4438c4b7 |
123 | use warnings 'deprecated' ; |
599cee73 |
124 | $a = split ; |
4438c4b7 |
125 | no warnings 'deprecated' ; |
0453d815 |
126 | $a = split ; |
599cee73 |
127 | EXPECT |
128 | Use of implicit split to @_ is deprecated at - line 3. |
129 | ######## |
130 | # op.c |
a1063b2d |
131 | use warnings 'deprecated'; |
132 | my (@foo, %foo); |
133 | %main::foo->{"bar"}; |
134 | %foo->{"bar"}; |
135 | @main::foo->[23]; |
136 | @foo->[23]; |
137 | $main::foo = {}; %$main::foo->{"bar"}; |
138 | $foo = {}; %$foo->{"bar"}; |
139 | $main::foo = []; @$main::foo->[34]; |
140 | $foo = []; @$foo->[34]; |
141 | no warnings 'deprecated'; |
142 | %main::foo->{"bar"}; |
143 | %foo->{"bar"}; |
144 | @main::foo->[23]; |
145 | @foo->[23]; |
146 | $main::foo = {}; %$main::foo->{"bar"}; |
147 | $foo = {}; %$foo->{"bar"}; |
148 | $main::foo = []; @$main::foo->[34]; |
149 | $foo = []; @$foo->[34]; |
150 | EXPECT |
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. |
159 | ######## |
160 | # op.c |
4438c4b7 |
161 | use warnings 'void' ; close STDIN ; |
599cee73 |
162 | 1 x 3 ; # OP_REPEAT |
163 | # OP_GVSV |
164 | wantarray ; # OP_WANTARRAY |
165 | # OP_GV |
166 | # OP_PADSV |
167 | # OP_PADAV |
168 | # OP_PADHV |
169 | # OP_PADANY |
170 | # OP_AV2ARYLEN |
171 | ref ; # OP_REF |
172 | \@a ; # OP_REFGEN |
173 | \$a ; # OP_SREFGEN |
174 | defined $a ; # OP_DEFINED |
175 | hex $a ; # OP_HEX |
176 | oct $a ; # OP_OCT |
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 |
183 | $a[0] ; # OP_AELEM |
184 | # OP_AELEMFAST |
185 | @a[0] ; # OP_ASLICE |
186 | #values %a ; # OP_VALUES |
187 | #keys %a ; # OP_KEYS |
188 | $a{0} ; # OP_HELEM |
189 | @a{0} ; # OP_HSLICE |
190 | unpack "a", "a" ; # OP_UNPACK |
191 | pack $a,"" ; # OP_PACK |
192 | join "" ; # OP_JOIN |
193 | (@a)[0,1] ; # OP_LSLICE |
194 | # OP_ANONLIST |
195 | # OP_ANONHASH |
196 | sort(1,2) ; # OP_SORT |
197 | reverse(1,2) ; # OP_REVERSE |
198 | # OP_RANGE |
199 | # OP_FLIP |
200 | (1 ..2) ; # OP_FLOP |
201 | caller ; # OP_CALLER |
202 | fileno STDIN ; # OP_FILENO |
203 | eof STDIN ; # OP_EOF |
204 | tell STDIN ; # OP_TELL |
205 | readlink 1; # OP_READLINK |
206 | time ; # OP_TIME |
207 | localtime ; # OP_LOCALTIME |
208 | gmtime ; # OP_GMTIME |
dfe13c55 |
209 | eval { getgrnam 1 }; # OP_GGRNAM |
210 | eval { getgrgid 1 }; # OP_GGRGID |
211 | eval { getpwnam 1 }; # OP_GPWNAM |
212 | eval { getpwuid 1 }; # OP_GPWUID |
78e1b766 |
213 | prototype "foo"; # OP_PROTOTYPE |
74295f0b |
214 | grep /42/, (1,2); # OP_GREP |
215 | $a ~~ $b; # OP_SMARTMATCH |
216 | $a <=> $b; # OP_NCMP |
599cee73 |
217 | EXPECT |
42d38218 |
218 | Useless use of repeat (x) in void context at - line 3. |
599cee73 |
219 | Useless use of wantarray in void context at - line 5. |
220 | Useless use of reference-type operator in void context at - line 12. |
221 | Useless use of reference constructor in void context at - line 13. |
d6c467eb |
222 | Useless use of single ref constructor in void context at - line 14. |
599cee73 |
223 | Useless use of defined operator in void context at - line 15. |
224 | Useless use of hex in void context at - line 16. |
225 | Useless use of oct in void context at - line 17. |
226 | Useless use of length in void context at - line 18. |
227 | Useless use of substr in void context at - line 19. |
228 | Useless use of vec in void context at - line 20. |
229 | Useless use of index in void context at - line 21. |
230 | Useless use of rindex in void context at - line 22. |
231 | Useless use of sprintf in void context at - line 23. |
232 | Useless use of array element in void context at - line 24. |
233 | Useless use of array slice in void context at - line 26. |
f1612b5c |
234 | Useless use of hash element in void context at - line 29. |
599cee73 |
235 | Useless use of hash slice in void context at - line 30. |
236 | Useless use of unpack in void context at - line 31. |
237 | Useless use of pack in void context at - line 32. |
297b36dc |
238 | Useless use of join or string in void context at - line 33. |
599cee73 |
239 | Useless use of list slice in void context at - line 34. |
240 | Useless use of sort in void context at - line 37. |
241 | Useless use of reverse in void context at - line 38. |
242 | Useless use of range (or flop) in void context at - line 41. |
243 | Useless use of caller in void context at - line 42. |
244 | Useless use of fileno in void context at - line 43. |
245 | Useless use of eof in void context at - line 44. |
246 | Useless use of tell in void context at - line 45. |
247 | Useless use of readlink in void context at - line 46. |
248 | Useless use of time in void context at - line 47. |
249 | Useless use of localtime in void context at - line 48. |
250 | Useless use of gmtime in void context at - line 49. |
251 | Useless use of getgrnam in void context at - line 50. |
252 | Useless use of getgrgid in void context at - line 51. |
253 | Useless use of getpwnam in void context at - line 52. |
254 | Useless use of getpwuid in void context at - line 53. |
78e1b766 |
255 | Useless use of subroutine prototype in void context at - line 54. |
74295f0b |
256 | Useless use of grep in void context at - line 55. |
257 | Useless use of smart match in void context at - line 56. |
258 | Useless use of numeric comparison (<=>) in void context at - line 57. |
599cee73 |
259 | ######## |
260 | # op.c |
a801c63c |
261 | use warnings 'void' ; close STDIN ; |
262 | my $x = sort (2,1,3); |
263 | no warnings 'void' ; |
264 | $x = sort (2,1,3); |
265 | EXPECT |
266 | Useless use of sort in scalar context at - line 3. |
267 | ######## |
268 | # op.c |
4438c4b7 |
269 | no warnings 'void' ; close STDIN ; |
0453d815 |
270 | 1 x 3 ; # OP_REPEAT |
271 | # OP_GVSV |
272 | wantarray ; # OP_WANTARRAY |
273 | # OP_GV |
274 | # OP_PADSV |
275 | # OP_PADAV |
276 | # OP_PADHV |
277 | # OP_PADANY |
278 | # OP_AV2ARYLEN |
279 | ref ; # OP_REF |
280 | \@a ; # OP_REFGEN |
281 | \$a ; # OP_SREFGEN |
282 | defined $a ; # OP_DEFINED |
283 | hex $a ; # OP_HEX |
284 | oct $a ; # OP_OCT |
285 | length $a ; # OP_LENGTH |
286 | substr $a,1 ; # OP_SUBSTR |
287 | vec $a,1,2 ; # OP_VEC |
288 | index $a,1,2 ; # OP_INDEX |
289 | rindex $a,1,2 ; # OP_RINDEX |
290 | sprintf $a ; # OP_SPRINTF |
291 | $a[0] ; # OP_AELEM |
292 | # OP_AELEMFAST |
293 | @a[0] ; # OP_ASLICE |
294 | #values %a ; # OP_VALUES |
295 | #keys %a ; # OP_KEYS |
296 | $a{0} ; # OP_HELEM |
297 | @a{0} ; # OP_HSLICE |
298 | unpack "a", "a" ; # OP_UNPACK |
299 | pack $a,"" ; # OP_PACK |
300 | join "" ; # OP_JOIN |
301 | (@a)[0,1] ; # OP_LSLICE |
302 | # OP_ANONLIST |
303 | # OP_ANONHASH |
304 | sort(1,2) ; # OP_SORT |
305 | reverse(1,2) ; # OP_REVERSE |
306 | # OP_RANGE |
307 | # OP_FLIP |
308 | (1 ..2) ; # OP_FLOP |
309 | caller ; # OP_CALLER |
310 | fileno STDIN ; # OP_FILENO |
311 | eof STDIN ; # OP_EOF |
312 | tell STDIN ; # OP_TELL |
313 | readlink 1; # OP_READLINK |
314 | time ; # OP_TIME |
315 | localtime ; # OP_LOCALTIME |
316 | gmtime ; # OP_GMTIME |
317 | eval { getgrnam 1 }; # OP_GGRNAM |
318 | eval { getgrgid 1 }; # OP_GGRGID |
319 | eval { getpwnam 1 }; # OP_GPWNAM |
320 | eval { getpwuid 1 }; # OP_GPWUID |
78e1b766 |
321 | prototype "foo"; # OP_PROTOTYPE |
0453d815 |
322 | EXPECT |
323 | ######## |
324 | # op.c |
4438c4b7 |
325 | use warnings 'void' ; |
68c73484 |
326 | for (@{[0]}) { "$_" } # check warning isn't duplicated |
4438c4b7 |
327 | no warnings 'void' ; |
0453d815 |
328 | for (@{[0]}) { "$_" } # check warning isn't duplicated |
68c73484 |
329 | EXPECT |
330 | Useless use of string in void context at - line 3. |
331 | ######## |
332 | # op.c |
4438c4b7 |
333 | use warnings 'void' ; |
599cee73 |
334 | use Config ; |
335 | BEGIN { |
336 | if ( ! $Config{d_telldir}) { |
337 | print <<EOM ; |
338 | SKIPPED |
339 | # telldir not present |
340 | EOM |
341 | exit |
342 | } |
343 | } |
344 | telldir 1 ; # OP_TELLDIR |
4438c4b7 |
345 | no warnings 'void' ; |
0453d815 |
346 | telldir 1 ; # OP_TELLDIR |
599cee73 |
347 | EXPECT |
348 | Useless use of telldir in void context at - line 13. |
349 | ######## |
350 | # op.c |
4438c4b7 |
351 | use warnings 'void' ; |
599cee73 |
352 | use Config ; |
353 | BEGIN { |
354 | if ( ! $Config{d_getppid}) { |
355 | print <<EOM ; |
356 | SKIPPED |
357 | # getppid not present |
358 | EOM |
359 | exit |
360 | } |
361 | } |
362 | getppid ; # OP_GETPPID |
4438c4b7 |
363 | no warnings 'void' ; |
0453d815 |
364 | getppid ; # OP_GETPPID |
599cee73 |
365 | EXPECT |
366 | Useless use of getppid in void context at - line 13. |
367 | ######## |
368 | # op.c |
4438c4b7 |
369 | use warnings 'void' ; |
599cee73 |
370 | use Config ; |
371 | BEGIN { |
372 | if ( ! $Config{d_getpgrp}) { |
373 | print <<EOM ; |
374 | SKIPPED |
375 | # getpgrp not present |
376 | EOM |
377 | exit |
378 | } |
379 | } |
380 | getpgrp ; # OP_GETPGRP |
4438c4b7 |
381 | no warnings 'void' ; |
0453d815 |
382 | getpgrp ; # OP_GETPGRP |
599cee73 |
383 | EXPECT |
384 | Useless use of getpgrp in void context at - line 13. |
385 | ######## |
386 | # op.c |
4438c4b7 |
387 | use warnings 'void' ; |
599cee73 |
388 | use Config ; |
389 | BEGIN { |
390 | if ( ! $Config{d_times}) { |
391 | print <<EOM ; |
392 | SKIPPED |
393 | # times not present |
394 | EOM |
395 | exit |
396 | } |
397 | } |
398 | times ; # OP_TMS |
4438c4b7 |
399 | no warnings 'void' ; |
0453d815 |
400 | times ; # OP_TMS |
599cee73 |
401 | EXPECT |
402 | Useless use of times in void context at - line 13. |
403 | ######## |
404 | # op.c |
4438c4b7 |
405 | use warnings 'void' ; |
599cee73 |
406 | use Config ; |
407 | BEGIN { |
e96326af |
408 | if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22 |
599cee73 |
409 | print <<EOM ; |
410 | SKIPPED |
411 | # getpriority not present |
412 | EOM |
413 | exit |
414 | } |
415 | } |
416 | getpriority 1,2; # OP_GETPRIORITY |
4438c4b7 |
417 | no warnings 'void' ; |
0453d815 |
418 | getpriority 1,2; # OP_GETPRIORITY |
599cee73 |
419 | EXPECT |
420 | Useless use of getpriority in void context at - line 13. |
421 | ######## |
422 | # op.c |
4438c4b7 |
423 | use warnings 'void' ; |
599cee73 |
424 | use Config ; |
425 | BEGIN { |
426 | if ( ! $Config{d_getlogin}) { |
427 | print <<EOM ; |
428 | SKIPPED |
429 | # getlogin not present |
430 | EOM |
431 | exit |
432 | } |
433 | } |
434 | getlogin ; # OP_GETLOGIN |
4438c4b7 |
435 | no warnings 'void' ; |
0453d815 |
436 | getlogin ; # OP_GETLOGIN |
599cee73 |
437 | EXPECT |
438 | Useless use of getlogin in void context at - line 13. |
439 | ######## |
440 | # op.c |
4438c4b7 |
441 | use warnings 'void' ; |
599cee73 |
442 | use Config ; BEGIN { |
443 | if ( ! $Config{d_socket}) { |
444 | print <<EOM ; |
445 | SKIPPED |
446 | # getsockname not present |
447 | # getpeername not present |
448 | # gethostbyname not present |
449 | # gethostbyaddr not present |
450 | # gethostent not present |
451 | # getnetbyname not present |
452 | # getnetbyaddr not present |
453 | # getnetent not present |
454 | # getprotobyname not present |
455 | # getprotobynumber not present |
456 | # getprotoent not present |
457 | # getservbyname not present |
458 | # getservbyport not present |
459 | # getservent not present |
460 | EOM |
461 | exit |
462 | } } |
463 | getsockname STDIN ; # OP_GETSOCKNAME |
464 | getpeername STDIN ; # OP_GETPEERNAME |
465 | gethostbyname 1 ; # OP_GHBYNAME |
466 | gethostbyaddr 1,2; # OP_GHBYADDR |
467 | gethostent ; # OP_GHOSTENT |
468 | getnetbyname 1 ; # OP_GNBYNAME |
469 | getnetbyaddr 1,2 ; # OP_GNBYADDR |
470 | getnetent ; # OP_GNETENT |
471 | getprotobyname 1; # OP_GPBYNAME |
472 | getprotobynumber 1; # OP_GPBYNUMBER |
473 | getprotoent ; # OP_GPROTOENT |
474 | getservbyname 1,2; # OP_GSBYNAME |
475 | getservbyport 1,2; # OP_GSBYPORT |
476 | getservent ; # OP_GSERVENT |
0453d815 |
477 | |
4438c4b7 |
478 | no warnings 'void' ; |
0453d815 |
479 | getsockname STDIN ; # OP_GETSOCKNAME |
480 | getpeername STDIN ; # OP_GETPEERNAME |
481 | gethostbyname 1 ; # OP_GHBYNAME |
482 | gethostbyaddr 1,2; # OP_GHBYADDR |
483 | gethostent ; # OP_GHOSTENT |
484 | getnetbyname 1 ; # OP_GNBYNAME |
485 | getnetbyaddr 1,2 ; # OP_GNBYADDR |
486 | getnetent ; # OP_GNETENT |
487 | getprotobyname 1; # OP_GPBYNAME |
488 | getprotobynumber 1; # OP_GPBYNUMBER |
489 | getprotoent ; # OP_GPROTOENT |
490 | getservbyname 1,2; # OP_GSBYNAME |
491 | getservbyport 1,2; # OP_GSBYPORT |
492 | getservent ; # OP_GSERVENT |
dfe13c55 |
493 | INIT { |
494 | # some functions may not be there, so we exit without running |
495 | exit; |
496 | } |
599cee73 |
497 | EXPECT |
498 | Useless use of getsockname in void context at - line 24. |
499 | Useless use of getpeername in void context at - line 25. |
500 | Useless use of gethostbyname in void context at - line 26. |
501 | Useless use of gethostbyaddr in void context at - line 27. |
502 | Useless use of gethostent in void context at - line 28. |
503 | Useless use of getnetbyname in void context at - line 29. |
504 | Useless use of getnetbyaddr in void context at - line 30. |
505 | Useless use of getnetent in void context at - line 31. |
506 | Useless use of getprotobyname in void context at - line 32. |
507 | Useless use of getprotobynumber in void context at - line 33. |
508 | Useless use of getprotoent in void context at - line 34. |
509 | Useless use of getservbyname in void context at - line 35. |
510 | Useless use of getservbyport in void context at - line 36. |
511 | Useless use of getservent in void context at - line 37. |
512 | ######## |
513 | # op.c |
4438c4b7 |
514 | use warnings 'void' ; |
599cee73 |
515 | *a ; # OP_RV2GV |
516 | $a ; # OP_RV2SV |
517 | @a ; # OP_RV2AV |
518 | %a ; # OP_RV2HV |
4438c4b7 |
519 | no warnings 'void' ; |
0453d815 |
520 | *a ; # OP_RV2GV |
521 | $a ; # OP_RV2SV |
522 | @a ; # OP_RV2AV |
523 | %a ; # OP_RV2HV |
599cee73 |
524 | EXPECT |
525 | Useless use of a variable in void context at - line 3. |
526 | Useless use of a variable in void context at - line 4. |
527 | Useless use of a variable in void context at - line 5. |
528 | Useless use of a variable in void context at - line 6. |
529 | ######## |
530 | # op.c |
4438c4b7 |
531 | use warnings 'void' ; |
599cee73 |
532 | "abc"; # OP_CONST |
533 | 7 ; # OP_CONST |
e7fec78e |
534 | 5 || print "bad\n"; # test OPpCONST_SHORTCIRCUIT |
535 | use constant U => undef; |
536 | print "boo\n" if U; # test OPpCONST_SHORTCIRCUIT |
2e0ae2d3 |
537 | $[ = 2; # should not warn |
4438c4b7 |
538 | no warnings 'void' ; |
0453d815 |
539 | "abc"; # OP_CONST |
540 | 7 ; # OP_CONST |
599cee73 |
541 | EXPECT |
542 | Useless use of a constant in void context at - line 3. |
543 | Useless use of a constant in void context at - line 4. |
544 | ######## |
545 | # op.c |
7f01dc7a |
546 | # |
e476b1b5 |
547 | use warnings 'misc' ; |
599cee73 |
548 | my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ; |
549 | @a =~ /abc/ ; |
550 | @a =~ s/a/b/ ; |
551 | @a =~ tr/a/b/ ; |
552 | @$b =~ /abc/ ; |
553 | @$b =~ s/a/b/ ; |
554 | @$b =~ tr/a/b/ ; |
555 | %a =~ /abc/ ; |
556 | %a =~ s/a/b/ ; |
557 | %a =~ tr/a/b/ ; |
558 | %$c =~ /abc/ ; |
559 | %$c =~ s/a/b/ ; |
560 | %$c =~ tr/a/b/ ; |
0453d815 |
561 | { |
e476b1b5 |
562 | no warnings 'misc' ; |
0453d815 |
563 | my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ; |
564 | @a =~ /abc/ ; |
565 | @a =~ s/a/b/ ; |
566 | @a =~ tr/a/b/ ; |
567 | @$b =~ /abc/ ; |
568 | @$b =~ s/a/b/ ; |
569 | @$b =~ tr/a/b/ ; |
570 | %a =~ /abc/ ; |
571 | %a =~ s/a/b/ ; |
572 | %a =~ tr/a/b/ ; |
573 | %$c =~ /abc/ ; |
574 | %$c =~ s/a/b/ ; |
575 | %$c =~ tr/a/b/ ; |
576 | } |
599cee73 |
577 | EXPECT |
42d38218 |
578 | Applying pattern match (m//) to @array will act on scalar(@array) at - line 5. |
579 | Applying substitution (s///) to @array will act on scalar(@array) at - line 6. |
f1612b5c |
580 | Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7. |
42d38218 |
581 | Applying pattern match (m//) to @array will act on scalar(@array) at - line 8. |
582 | Applying substitution (s///) to @array will act on scalar(@array) at - line 9. |
f1612b5c |
583 | Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10. |
42d38218 |
584 | Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11. |
585 | Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12. |
f1612b5c |
586 | Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13. |
42d38218 |
587 | Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14. |
588 | Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15. |
f1612b5c |
589 | Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16. |
24944567 |
590 | Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;" |
f248d071 |
591 | BEGIN not safe after errors--compilation aborted at - line 18. |
599cee73 |
592 | ######## |
593 | # op.c |
8473848f |
594 | use warnings 'parenthesis' ; |
599cee73 |
595 | my $a, $b = (1,2); |
8473848f |
596 | my @foo,%bar, $quux; # there's a TAB here |
bac662ee |
597 | my $x, $y or print; |
8473848f |
598 | no warnings 'parenthesis' ; |
0453d815 |
599 | my $c, $d = (1,2); |
599cee73 |
600 | EXPECT |
df5b6949 |
601 | Parentheses missing around "my" list at - line 3. |
8473848f |
602 | Parentheses missing around "my" list at - line 4. |
599cee73 |
603 | ######## |
604 | # op.c |
8473848f |
605 | use warnings 'parenthesis' ; |
606 | our $a, $b = (1,2); |
607 | no warnings 'parenthesis' ; |
608 | our $c, $d = (1,2); |
609 | EXPECT |
610 | Parentheses missing around "our" list at - line 3. |
611 | ######## |
612 | # op.c |
613 | use warnings 'parenthesis' ; |
599cee73 |
614 | local $a, $b = (1,2); |
8473848f |
615 | local *f, *g; |
616 | no warnings 'parenthesis' ; |
0453d815 |
617 | local $c, $d = (1,2); |
599cee73 |
618 | EXPECT |
df5b6949 |
619 | Parentheses missing around "local" list at - line 3. |
8473848f |
620 | Parentheses missing around "local" list at - line 4. |
599cee73 |
621 | ######## |
622 | # op.c |
e476b1b5 |
623 | use warnings 'bareword' ; |
599cee73 |
624 | print (ABC || 1) ; |
e476b1b5 |
625 | no warnings 'bareword' ; |
0453d815 |
626 | print (ABC || 1) ; |
599cee73 |
627 | EXPECT |
34d09196 |
628 | Bareword found in conditional at - line 3. |
599cee73 |
629 | ######## |
630 | --FILE-- abc |
631 | |
632 | --FILE-- |
633 | # op.c |
e476b1b5 |
634 | use warnings 'misc' ; |
599cee73 |
635 | open FH, "<abc" ; |
636 | $x = 1 if $x = <FH> ; |
e476b1b5 |
637 | no warnings 'misc' ; |
0453d815 |
638 | $x = 1 if $x = <FH> ; |
599cee73 |
639 | EXPECT |
640 | Value of <HANDLE> construct can be "0"; test with defined() at - line 4. |
641 | ######## |
642 | # op.c |
e476b1b5 |
643 | use warnings 'misc' ; |
599cee73 |
644 | opendir FH, "." ; |
645 | $x = 1 if $x = readdir FH ; |
e476b1b5 |
646 | no warnings 'misc' ; |
0453d815 |
647 | $x = 1 if $x = readdir FH ; |
599cee73 |
648 | closedir FH ; |
649 | EXPECT |
650 | Value of readdir() operator can be "0"; test with defined() at - line 4. |
651 | ######## |
652 | # op.c |
e476b1b5 |
653 | use warnings 'misc' ; |
599cee73 |
654 | $x = 1 if $x = <*> ; |
e476b1b5 |
655 | no warnings 'misc' ; |
0453d815 |
656 | $x = 1 if $x = <*> ; |
599cee73 |
657 | EXPECT |
658 | Value of glob construct can be "0"; test with defined() at - line 3. |
659 | ######## |
660 | # op.c |
e476b1b5 |
661 | use warnings 'misc' ; |
599cee73 |
662 | %a = (1,2,3,4) ; |
663 | $x = 1 if $x = each %a ; |
e476b1b5 |
664 | no warnings 'misc' ; |
0453d815 |
665 | $x = 1 if $x = each %a ; |
599cee73 |
666 | EXPECT |
667 | Value of each() operator can be "0"; test with defined() at - line 4. |
668 | ######## |
669 | # op.c |
e476b1b5 |
670 | use warnings 'misc' ; |
599cee73 |
671 | $x = 1 while $x = <*> and 0 ; |
e476b1b5 |
672 | no warnings 'misc' ; |
0453d815 |
673 | $x = 1 while $x = <*> and 0 ; |
599cee73 |
674 | EXPECT |
675 | Value of glob construct can be "0"; test with defined() at - line 3. |
676 | ######## |
677 | # op.c |
e476b1b5 |
678 | use warnings 'misc' ; |
599cee73 |
679 | opendir FH, "." ; |
680 | $x = 1 while $x = readdir FH and 0 ; |
e476b1b5 |
681 | no warnings 'misc' ; |
0453d815 |
682 | $x = 1 while $x = readdir FH and 0 ; |
599cee73 |
683 | closedir FH ; |
684 | EXPECT |
685 | Value of readdir() operator can be "0"; test with defined() at - line 4. |
686 | ######## |
687 | # op.c |
59e10468 |
688 | use warnings 'misc'; |
689 | open FH, "<abc"; |
59e10468 |
690 | ($_ = <FH>) // ($_ = 1); |
691 | opendir DH, "."; |
59e10468 |
692 | %a = (1,2,3,4) ; |
59e10468 |
693 | EXPECT |
694 | ######## |
695 | # op.c |
4438c4b7 |
696 | use warnings 'redefine' ; |
599cee73 |
697 | sub fred {} |
698 | sub fred {} |
4438c4b7 |
699 | no warnings 'redefine' ; |
0453d815 |
700 | sub fred {} |
599cee73 |
701 | EXPECT |
702 | Subroutine fred redefined at - line 4. |
703 | ######## |
704 | # op.c |
4438c4b7 |
705 | use warnings 'redefine' ; |
599cee73 |
706 | sub fred () { 1 } |
707 | sub fred () { 1 } |
4438c4b7 |
708 | no warnings 'redefine' ; |
0453d815 |
709 | sub fred () { 1 } |
599cee73 |
710 | EXPECT |
711 | Constant subroutine fred redefined at - line 4. |
712 | ######## |
713 | # op.c |
036b4402 |
714 | no warnings 'redefine' ; |
715 | sub fred () { 1 } |
716 | sub fred () { 2 } |
717 | EXPECT |
718 | Constant subroutine fred redefined at - line 4. |
719 | ######## |
720 | # op.c |
721 | no warnings 'redefine' ; |
722 | sub fred () { 1 } |
723 | *fred = sub () { 2 }; |
724 | EXPECT |
910764e6 |
725 | Constant subroutine main::fred redefined at - line 4. |
036b4402 |
726 | ######## |
727 | # op.c |
4438c4b7 |
728 | use warnings 'redefine' ; |
599cee73 |
729 | format FRED = |
730 | . |
731 | format FRED = |
732 | . |
4438c4b7 |
733 | no warnings 'redefine' ; |
0453d815 |
734 | format FRED = |
735 | . |
599cee73 |
736 | EXPECT |
737 | Format FRED redefined at - line 5. |
738 | ######## |
739 | # op.c |
e476b1b5 |
740 | use warnings 'deprecated' ; |
599cee73 |
741 | push FRED; |
e476b1b5 |
742 | no warnings 'deprecated' ; |
0453d815 |
743 | push FRED; |
599cee73 |
744 | EXPECT |
745 | Array @FRED missing the @ in argument 1 of push() at - line 3. |
746 | ######## |
747 | # op.c |
e476b1b5 |
748 | use warnings 'deprecated' ; |
599cee73 |
749 | @a = keys FRED ; |
e476b1b5 |
750 | no warnings 'deprecated' ; |
0453d815 |
751 | @a = keys FRED ; |
599cee73 |
752 | EXPECT |
753 | Hash %FRED missing the % in argument 1 of keys() at - line 3. |
754 | ######## |
755 | # op.c |
e69a2255 |
756 | BEGIN { |
757 | if ($^O eq 'MacOS') { |
758 | print <<EOM; |
759 | SKIPPED |
760 | # no exec on Mac OS |
761 | EOM |
762 | exit; |
763 | } |
764 | } |
4438c4b7 |
765 | use warnings 'syntax' ; |
dfe13c55 |
766 | exec "$^X -e 1" ; |
599cee73 |
767 | my $a |
768 | EXPECT |
16398b42 |
769 | Statement unlikely to be reached at - line 13. |
cc507455 |
770 | (Maybe you meant system() when you said exec()?) |
69794302 |
771 | ######## |
772 | # op.c |
4438c4b7 |
773 | use warnings 'deprecated' ; |
69794302 |
774 | my @a; defined(@a); |
775 | EXPECT |
f10b0346 |
776 | defined(@array) is deprecated at - line 3. |
cc507455 |
777 | (Maybe you should just omit the defined()?) |
69794302 |
778 | ######## |
779 | # op.c |
4438c4b7 |
780 | use warnings 'deprecated' ; |
69794302 |
781 | defined(@a = (1,2,3)); |
782 | EXPECT |
f10b0346 |
783 | defined(@array) is deprecated at - line 3. |
cc507455 |
784 | (Maybe you should just omit the defined()?) |
69794302 |
785 | ######## |
786 | # op.c |
4438c4b7 |
787 | use warnings 'deprecated' ; |
69794302 |
788 | my %h; defined(%h); |
789 | EXPECT |
f10b0346 |
790 | defined(%hash) is deprecated at - line 3. |
cc507455 |
791 | (Maybe you should just omit the defined()?) |
0453d815 |
792 | ######## |
793 | # op.c |
e69a2255 |
794 | BEGIN { |
795 | if ($^O eq 'MacOS') { |
796 | print <<EOM; |
797 | SKIPPED |
798 | # no exec on Mac OS |
799 | EOM |
800 | exit; |
801 | } |
802 | } |
4438c4b7 |
803 | no warnings 'syntax' ; |
0453d815 |
804 | exec "$^X -e 1" ; |
805 | my $a |
806 | EXPECT |
807 | |
808 | ######## |
809 | # op.c |
810 | sub fred(); |
811 | sub fred($) {} |
812 | EXPECT |
813 | Prototype mismatch: sub main::fred () vs ($) at - line 3. |
814 | ######## |
815 | # op.c |
816 | $^W = 0 ; |
817 | sub fred() ; |
818 | sub fred($) {} |
819 | { |
e476b1b5 |
820 | no warnings 'prototype' ; |
0453d815 |
821 | sub Fred() ; |
822 | sub Fred($) {} |
e476b1b5 |
823 | use warnings 'prototype' ; |
0453d815 |
824 | sub freD() ; |
825 | sub freD($) {} |
826 | } |
827 | sub FRED() ; |
828 | sub FRED($) {} |
829 | EXPECT |
830 | Prototype mismatch: sub main::fred () vs ($) at - line 4. |
831 | Prototype mismatch: sub main::freD () vs ($) at - line 11. |
832 | Prototype mismatch: sub main::FRED () vs ($) at - line 14. |
eb6e2d6f |
833 | ######## |
834 | # op.c |
835 | use warnings 'syntax' ; |
836 | join /---/, 'x', 'y', 'z'; |
837 | EXPECT |
838 | /---/ should probably be written as "---" at - line 3. |
767a6a26 |
839 | ######## |
840 | # op.c [Perl_peep] |
e476b1b5 |
841 | use warnings 'prototype' ; |
767a6a26 |
842 | fred() ; |
843 | sub fred ($$) {} |
e476b1b5 |
844 | no warnings 'prototype' ; |
767a6a26 |
845 | joe() ; |
846 | sub joe ($$) {} |
847 | EXPECT |
848 | main::fred() called too early to check prototype at - line 3. |
ddda08b7 |
849 | ######## |
850 | # op.c [Perl_newATTRSUB] |
851 | --FILE-- abc.pm |
852 | use warnings 'void' ; |
853 | BEGIN { $| = 1; print "in begin\n"; } |
854 | CHECK { print "in check\n"; } |
855 | INIT { print "in init\n"; } |
856 | END { print "in end\n"; } |
857 | print "in mainline\n"; |
858 | 1; |
859 | --FILE-- |
860 | use abc; |
861 | delete $INC{"abc.pm"}; |
862 | require abc; |
863 | do "abc.pm"; |
864 | EXPECT |
865 | in begin |
866 | in mainline |
867 | in check |
868 | in init |
869 | in begin |
870 | Too late to run CHECK block at abc.pm line 3. |
871 | Too late to run INIT block at abc.pm line 4. |
872 | in mainline |
873 | in begin |
874 | Too late to run CHECK block at abc.pm line 3. |
875 | Too late to run INIT block at abc.pm line 4. |
876 | in mainline |
877 | in end |
878 | in end |
879 | in end |
880 | ######## |
881 | # op.c [Perl_newATTRSUB] |
882 | --FILE-- abc.pm |
883 | no warnings 'void' ; |
884 | BEGIN { $| = 1; print "in begin\n"; } |
885 | CHECK { print "in check\n"; } |
886 | INIT { print "in init\n"; } |
887 | END { print "in end\n"; } |
888 | print "in mainline\n"; |
889 | 1; |
890 | --FILE-- |
891 | require abc; |
892 | do "abc.pm"; |
893 | EXPECT |
894 | in begin |
895 | in mainline |
896 | in begin |
897 | in mainline |
898 | in end |
899 | in end |
936edb8b |
900 | ######## |
901 | # op.c |
902 | my @x; |
f87c3213 |
903 | use warnings 'syntax' ; |
936edb8b |
904 | push(@x); |
905 | unshift(@x); |
f87c3213 |
906 | no warnings 'syntax' ; |
936edb8b |
907 | push(@x); |
908 | unshift(@x); |
909 | EXPECT |
de4864e4 |
910 | Useless use of push with no values at - line 4. |
911 | Useless use of unshift with no values at - line 5. |
a27978d3 |
912 | ######## |
913 | # op.c |
f34840d8 |
914 | # 20020401 mjd@plover.com at suggestion of jfriedl@yahoo.com |
915 | use warnings 'regexp'; |
916 | split /blah/g, "blah"; |
917 | no warnings 'regexp'; |
918 | split /blah/g, "blah"; |
919 | EXPECT |
920 | Use of /g modifier is meaningless in split at - line 4. |
276b2a0c |
921 | ######## |
922 | # op.c |
923 | use warnings 'precedence'; |
924 | $a = $b & $c == $d; |
925 | $a = $b ^ $c != $d; |
926 | $a = $b | $c > $d; |
927 | $a = $b < $c & $d; |
928 | $a = $b >= $c ^ $d; |
929 | $a = $b <= $c | $d; |
930 | $a = $b <=> $c & $d; |
2b84528b |
931 | $a &= $b == $c; $a |= $b == $c; $a ^= $b == $c; # shouldn't warn |
276b2a0c |
932 | no warnings 'precedence'; |
933 | $a = $b & $c == $d; |
934 | $a = $b ^ $c != $d; |
935 | $a = $b | $c > $d; |
936 | $a = $b < $c & $d; |
937 | $a = $b >= $c ^ $d; |
938 | $a = $b <= $c | $d; |
939 | $a = $b <=> $c & $d; |
940 | EXPECT |
941 | Possible precedence problem on bitwise & operator at - line 3. |
942 | Possible precedence problem on bitwise ^ operator at - line 4. |
943 | Possible precedence problem on bitwise | operator at - line 5. |
944 | Possible precedence problem on bitwise & operator at - line 6. |
945 | Possible precedence problem on bitwise ^ operator at - line 7. |
946 | Possible precedence problem on bitwise | operator at - line 8. |
947 | Possible precedence problem on bitwise & operator at - line 9. |
948 | ######## |
949 | # op.c |
950 | use integer; |
951 | use warnings 'precedence'; |
952 | $a = $b & $c == $d; |
953 | $a = $b ^ $c != $d; |
954 | $a = $b | $c > $d; |
955 | $a = $b < $c & $d; |
956 | $a = $b >= $c ^ $d; |
957 | $a = $b <= $c | $d; |
958 | $a = $b <=> $c & $d; |
959 | no warnings 'precedence'; |
960 | $a = $b & $c == $d; |
961 | $a = $b ^ $c != $d; |
962 | $a = $b | $c > $d; |
963 | $a = $b < $c & $d; |
964 | $a = $b >= $c ^ $d; |
965 | $a = $b <= $c | $d; |
966 | $a = $b <=> $c & $d; |
967 | EXPECT |
968 | Possible precedence problem on bitwise & operator at - line 4. |
969 | Possible precedence problem on bitwise ^ operator at - line 5. |
970 | Possible precedence problem on bitwise | operator at - line 6. |
971 | Possible precedence problem on bitwise & operator at - line 7. |
972 | Possible precedence problem on bitwise ^ operator at - line 8. |
973 | Possible precedence problem on bitwise | operator at - line 9. |
974 | Possible precedence problem on bitwise & operator at - line 10. |
ddeae0f1 |
975 | ######## |
976 | # op.c |
977 | |
978 | # ok => local() has desired effect; |
979 | # ignore=> local() silently ignored |
980 | |
981 | use warnings 'syntax'; |
982 | |
983 | local(undef); # OP_UNDEF ignore |
984 | sub lval : lvalue {}; |
985 | local(lval()); # OP_ENTERSUB |
986 | local($x **= 1); # OP_POW |
987 | local($x *= 1); # OP_MULTIPLY |
988 | local($x /= 1); # OP_DIVIDE |
989 | local($x %= 1); # OP_MODULO |
990 | local($x x= 1); # OP_REPEAT |
991 | local($x += 1); # OP_ADD |
992 | local($x -= 1); # OP_SUBTRACT |
993 | local($x .= 1); # OP_CONCAT |
994 | local($x <<= 1); # OP_LEFT_SHIFT |
995 | local($x >>= 1); # OP_RIGHT_SHIFT |
996 | local($x &= 1); # OP_BIT_AND |
997 | local($x ^= 1); # OP_BIT_XOR |
998 | local($x |= 1); # OP_BIT_OR |
999 | { |
1000 | use integer; |
1001 | local($x *= 1); # OP_I_MULTIPLY |
1002 | local($x /= 1); # OP_I_DIVIDE |
1003 | local($x %= 1); # OP_I_MODULO |
1004 | local($x += 1); # OP_I_ADD |
1005 | local($x -= 1); # OP_I_SUBTRACT |
1006 | } |
1007 | local($x?$y:$z) = 1; # OP_COND_EXPR ok |
1008 | # these two are fatal run-time errors instead |
1009 | #local(@$a); # OP_RV2AV ok |
1010 | #local(%$a); # OP_RV2HV ok |
1011 | local(*a); # OP_RV2GV ok |
1012 | local(@a[1,2]); # OP_ASLICE ok |
1013 | local(@a{1,2}); # OP_HSLICE ok |
1014 | local(@a = (1,2)); # OP_AASSIGN |
1015 | local($$x); # OP_RV2SV ok |
1016 | local($#a); # OP_AV2ARYLEN |
1017 | local($x = 1); # OP_SASSIGN |
1018 | local($x &&= 1); # OP_ANDASSIGN |
1019 | local($x ||= 1); # OP_ORASSIGN |
1020 | local($x //= 1); # OP_DORASSIGN |
1021 | local($a[0]); # OP_AELEMFAST ok |
1022 | |
1023 | local(substr($x,0,1)); # OP_SUBSTR |
1024 | local(pos($x)); # OP_POS |
1025 | local(vec($x,0,1)); # OP_VEC |
1026 | local($a[$b]); # OP_AELEM ok |
1027 | local($a{$b}); # OP_HELEM ok |
54dc0f91 |
1028 | local($[); # OP_CONST |
ddeae0f1 |
1029 | |
1030 | no warnings 'syntax'; |
1031 | EXPECT |
1032 | Useless localization of subroutine entry at - line 10. |
1033 | Useless localization of exponentiation (**) at - line 11. |
1034 | Useless localization of multiplication (*) at - line 12. |
1035 | Useless localization of division (/) at - line 13. |
1036 | Useless localization of modulus (%) at - line 14. |
1037 | Useless localization of repeat (x) at - line 15. |
1038 | Useless localization of addition (+) at - line 16. |
1039 | Useless localization of subtraction (-) at - line 17. |
1040 | Useless localization of concatenation (.) or string at - line 18. |
1041 | Useless localization of left bitshift (<<) at - line 19. |
1042 | Useless localization of right bitshift (>>) at - line 20. |
1043 | Useless localization of bitwise and (&) at - line 21. |
1044 | Useless localization of bitwise xor (^) at - line 22. |
1045 | Useless localization of bitwise or (|) at - line 23. |
1046 | Useless localization of integer multiplication (*) at - line 26. |
1047 | Useless localization of integer division (/) at - line 27. |
1048 | Useless localization of integer modulus (%) at - line 28. |
1049 | Useless localization of integer addition (+) at - line 29. |
1050 | Useless localization of integer subtraction (-) at - line 30. |
1051 | Useless localization of list assignment at - line 39. |
1052 | Useless localization of array length at - line 41. |
1053 | Useless localization of scalar assignment at - line 42. |
1054 | Useless localization of logical and assignment (&&=) at - line 43. |
1055 | Useless localization of logical or assignment (||=) at - line 44. |
1056 | Useless localization of defined or assignment (//=) at - line 45. |
1057 | Useless localization of substr at - line 48. |
1058 | Useless localization of match position at - line 49. |
1059 | Useless localization of vec at - line 50. |
7921d0f2 |
1060 | ######## |
1061 | # op.c |
1062 | use warnings 'deprecated'; |
1063 | my $x1 if 0; |
1064 | my @x2 if 0; |
1065 | my %x3 if 0; |
1066 | my ($x4) if 0; |
1067 | my ($x5,@x6, %x7) if 0; |
1068 | 0 && my $z1; |
1069 | 0 && my (%z2); |
1070 | # these shouldn't warn |
1071 | our $x if 0; |
1072 | our $x unless 0; |
1073 | if (0) { my $w1 } |
1074 | if (my $w2) { $a=1 } |
1075 | if ($a && (my $w3 = 1)) {$a = 2} |
1076 | |
1077 | EXPECT |
1078 | Deprecated use of my() in false conditional at - line 3. |
1079 | Deprecated use of my() in false conditional at - line 4. |
1080 | Deprecated use of my() in false conditional at - line 5. |
1081 | Deprecated use of my() in false conditional at - line 6. |
1082 | Deprecated use of my() in false conditional at - line 7. |
1083 | Deprecated use of my() in false conditional at - line 8. |
1084 | Deprecated use of my() in false conditional at - line 9. |