3 we seem to have lost a few ambiguous warnings!!
7 Use of comma-less variable list is deprecated
8 (called 3 times via depcom)
10 \1 better written as $1
11 use warnings 'syntax' ;
15 Semicolon seems to be missing
32 Multidimensional syntax %.*s not supported
35 You need to quote \"%s\""
36 sub fred {} ; $SIG{TERM} = fred;
38 Scalar value %.*s better written as $%.*s"
42 Can't use \\%c to mean $%c in expression
43 $_ = "ab" ; s/(ab)/\1/e;
45 Unquoted string "abc" may clash with future reserved word at - line 3.
49 Possible attempt to separate words with commas
52 Possible attempt to put comments in qw() list
55 %s (...) interpreted as function
60 Ambiguous use of %c{%s%s} resolved to %c%s%s
65 Ambiguous use of %c{%s} resolved to %c%s
67 sub fred {} $a = ${fred}
73 Bareword \"%s\" refers to nonexistent package
76 Ambiguous call resolved as CORE::%s(), qualify as such or use &
80 Unrecognized escape \\%c passed through
83 %s number > %s non-portable
84 my $a = 0b011111111111111111111111111111110 ;
85 $a = 0b011111111111111111111111111111111 ;
86 $a = 0b111111111111111111111111111111111 ;
94 Integer overflow in binary number
95 my $a = 0b011111111111111111111111111111110 ;
96 $a = 0b011111111111111111111111111111111 ;
97 $a = 0b111111111111111111111111111111111 ;
105 dump() better written as CORE::dump()
107 Use of /c modifier is meaningless without /g
109 Use of /c modifier is meaningless in s///
113 Use of "%s" without parentheses is ambiguous [check_uni]
116 Ambiguous use of -%s resolved as -&%s() [yylex]
117 sub fred {} ; - fred ;
119 Precedence problem: open %.*s should be open(%.*s) [yylex]
122 Operator or semicolon missing before %c%s [yylex]
123 Ambiguous use of %c resolved as operator %c
132 no warnings 'deprecated' ;
138 Use of comma-less variable list is deprecated at - line 4.
139 Use of comma-less variable list is deprecated at - line 4.
140 Use of comma-less variable list is deprecated at - line 4.
145 no warnings 'deprecated' ;
149 Use of bare << to mean <<"" is deprecated at - line 2.
152 use warnings 'syntax' ;
154 no warnings 'syntax' ;
157 \1 better written as $1 at - line 3.
160 use warnings 'semicolon' ;
163 no warnings 'semicolon' ;
167 Semicolon seems to be missing at - line 3.
170 use warnings 'syntax' ;
182 Reversed += operator at - line 3.
183 Reversed -= operator at - line 4.
184 Reversed *= operator at - line 5.
185 Reversed %= operator at - line 6.
186 Reversed &= operator at - line 7.
187 Reversed .= operator at - line 8.
188 Reversed ^= operator at - line 9.
189 Reversed |= operator at - line 10.
190 Reversed <= operator at - line 11.
191 syntax error at - line 8, near "=."
192 syntax error at - line 9, near "=^"
193 syntax error at - line 10, near "=|"
194 Unterminated <> operator at - line 11.
197 no warnings 'syntax' ;
209 syntax error at - line 8, near "=."
210 syntax error at - line 9, near "=^"
211 syntax error at - line 10, near "=|"
212 Unterminated <> operator at - line 11.
215 use warnings 'syntax' ;
217 no warnings 'syntax' ;
220 Multidimensional syntax $a[1,2] not supported at - line 3.
223 use warnings 'syntax' ;
224 sub fred {} ; $SIG{TERM} = fred;
225 no warnings 'syntax' ;
228 You need to quote "fred" at - line 3.
231 use warnings 'syntax' ;
234 no warnings 'syntax' ;
238 Scalar value @a[3] better written as $a[3] at - line 3.
239 Scalar value @a{3} better written as $a{3} at - line 4.
242 use warnings 'syntax' ;
245 no warnings 'syntax' ;
249 Can't use \1 to mean $1 in expression at - line 4.
252 use warnings 'reserved' ;
257 no warnings 'reserved' ;
260 Unquoted string "abc" may clash with future reserved word at - line 3.
268 Possible attempt to separate words with commas at - line 3.
276 Possible attempt to put comments in qw() list at - line 3.
279 use warnings 'syntax' ;
281 print ("") and $x = 1;
284 print (1+2) * 3 if 0; # only this one should warn
287 print (...) interpreted as function at - line 7.
290 no warnings 'syntax' ;
296 use warnings 'syntax' ;
300 printf (...) interpreted as function at - line 4.
303 no warnings 'syntax' ;
309 use warnings 'syntax' ;
313 sort (...) interpreted as function at - line 4.
316 no warnings 'syntax' ;
322 use warnings 'ambiguous' ;
324 no warnings 'ambiguous' ;
327 Ambiguous use of ${time[...]} resolved to $time[...] at - line 3.
330 use warnings 'ambiguous' ;
333 Ambiguous use of ${time{...}} resolved to $time{...} at - line 3.
336 no warnings 'ambiguous' ;
342 use warnings 'ambiguous' ;
344 no warnings 'ambiguous' ;
347 Ambiguous use of ${time} resolved to $time at - line 3.
350 use warnings 'ambiguous' ;
353 no warnings 'ambiguous' ;
356 Ambiguous use of ${fred} resolved to $fred at - line 4.
359 use warnings 'syntax' ;
360 $a = _123; print "$a\n"; #( 3 string)
361 $a = 1_23; print "$a\n";
362 $a = 12_3; print "$a\n";
363 $a = 123_; print "$a\n"; # 6
364 $a = _+123; print "$a\n"; # 7 string)
365 $a = +_123; print "$a\n"; #( 8 string)
366 $a = +1_23; print "$a\n";
367 $a = +12_3; print "$a\n";
368 $a = +123_; print "$a\n"; # 11
369 $a = _-123; print "$a\n"; #(12 string)
370 $a = -_123; print "$a\n"; #(13 string)
371 $a = -1_23; print "$a\n";
372 $a = -12_3; print "$a\n";
373 $a = -123_; print "$a\n"; # 16
374 $a = 123._456; print "$a\n"; # 17
375 $a = 123.4_56; print "$a\n";
376 $a = 123.45_6; print "$a\n";
377 $a = 123.456_; print "$a\n"; # 20
378 $a = +123._456; print "$a\n"; # 21
379 $a = +123.4_56; print "$a\n";
380 $a = +123.45_6; print "$a\n";
381 $a = +123.456_; print "$a\n"; # 24
382 $a = -123._456; print "$a\n"; # 25
383 $a = -123.4_56; print "$a\n";
384 $a = -123.45_6; print "$a\n";
385 $a = -123.456_; print "$a\n"; # 28
386 $a = 123.456E_12; printf("%.0f\n", $a); # 29
387 $a = 123.456E1_2; printf("%.0f\n", $a);
388 $a = 123.456E12_; printf("%.0f\n", $a); # 31
389 $a = 123.456E_+12; printf("%.0f\n", $a); # 32
390 $a = 123.456E+_12; printf("%.0f\n", $a); # 33
391 $a = 123.456E+1_2; printf("%.0f\n", $a);
392 $a = 123.456E+12_; printf("%.0f\n", $a); # 35
393 $a = 123.456E_-12; print "$a\n"; # 36
394 $a = 123.456E-_12; print "$a\n"; # 37
395 $a = 123.456E-1_2; print "$a\n";
396 $a = 123.456E-12_; print "$a\n"; # 39
397 $a = 1__23; print "$a\n"; # 40
398 $a = 12.3__4; print "$a\n"; # 41
399 $a = 12.34e1__2; printf("%.0f\n", $a); # 42
400 no warnings 'syntax' ;
401 $a = _123; print "$a\n";
402 $a = 1_23; print "$a\n";
403 $a = 12_3; print "$a\n";
404 $a = 123_; print "$a\n";
405 $a = _+123; print "$a\n";
406 $a = +_123; print "$a\n";
407 $a = +1_23; print "$a\n";
408 $a = +12_3; print "$a\n";
409 $a = +123_; print "$a\n";
410 $a = _-123; print "$a\n";
411 $a = -_123; print "$a\n";
412 $a = -1_23; print "$a\n";
413 $a = -12_3; print "$a\n";
414 $a = -123_; print "$a\n";
415 $a = 123._456; print "$a\n";
416 $a = 123.4_56; print "$a\n";
417 $a = 123.45_6; print "$a\n";
418 $a = 123.456_; print "$a\n";
419 $a = +123._456; print "$a\n";
420 $a = +123.4_56; print "$a\n";
421 $a = +123.45_6; print "$a\n";
422 $a = +123.456_; print "$a\n";
423 $a = -123._456; print "$a\n";
424 $a = -123.4_56; print "$a\n";
425 $a = -123.45_6; print "$a\n";
426 $a = -123.456_; print "$a\n";
427 $a = 123.456E_12; printf("%.0f\n", $a);
428 $a = 123.456E1_2; printf("%.0f\n", $a);
429 $a = 123.456E12_; printf("%.0f\n", $a);
430 $a = 123.456E_+12; printf("%.0f\n", $a);
431 $a = 123.456E+_12; printf("%.0f\n", $a);
432 $a = 123.456E+1_2; printf("%.0f\n", $a);
433 $a = 123.456E+12_; printf("%.0f\n", $a);
434 $a = 123.456E_-12; print "$a\n";
435 $a = 123.456E-_12; print "$a\n";
436 $a = 123.456E-1_2; print "$a\n";
437 $a = 123.456E-12_; print "$a\n";
438 $a = 1__23; print "$a\n";
439 $a = 12.3__4; print "$a\n";
440 $a = 12.34e1__2; printf("%.0f\n", $a);
443 Misplaced _ in number at - line 6.
444 Misplaced _ in number at - line 11.
445 Misplaced _ in number at - line 16.
446 Misplaced _ in number at - line 17.
447 Misplaced _ in number at - line 20.
448 Misplaced _ in number at - line 21.
449 Misplaced _ in number at - line 24.
450 Misplaced _ in number at - line 25.
451 Misplaced _ in number at - line 28.
452 Misplaced _ in number at - line 29.
453 Misplaced _ in number at - line 31.
454 Misplaced _ in number at - line 32.
455 Misplaced _ in number at - line 33.
456 Misplaced _ in number at - line 35.
457 Misplaced _ in number at - line 36.
458 Misplaced _ in number at - line 37.
459 Misplaced _ in number at - line 39.
460 Misplaced _ in number at - line 40.
461 Misplaced _ in number at - line 41.
462 Misplaced _ in number at - line 42.
545 use warnings 'bareword' ;
548 no warnings 'bareword' ;
552 Bareword "FRED::" refers to nonexistent package at bar line 25.
555 use warnings 'ambiguous' ;
558 no warnings 'ambiguous' ;
561 Ambiguous call resolved as CORE::time(), qualify as such or use & at - line 4.
578 Warning: Use of "rand" without parentheses is ambiguous at - line 2.
584 no warnings 'ambiguous' ;
586 use warnings 'ambiguous' ;
591 Warning: Use of "rand" without parentheses is ambiguous at - line 3.
592 Warning: Use of "rand" without parentheses is ambiguous at - line 8.
593 Warning: Use of "rand" without parentheses is ambiguous at - line 10.
596 use warnings "ambiguous";
597 print for keys %+; # should not warn
604 Ambiguous use of -fred resolved as -&fred() at - line 3.
611 no warnings 'ambiguous' ;
613 use warnings 'ambiguous' ;
618 Ambiguous use of -fred resolved as -&fred() at - line 4.
619 Ambiguous use of -fred resolved as -&fred() at - line 9.
620 Ambiguous use of -fred resolved as -&fred() at - line 11.
625 Precedence problem: open FOO should be open(FOO) at - line 2.
627 # toke.c (and [perl #16184])
628 open FOO => "<&0"; close FOO;
635 no warnings 'precedence' ;
637 use warnings 'precedence' ;
642 Precedence problem: open FOO should be open(FOO) at - line 3.
643 Precedence problem: open FOO should be open(FOO) at - line 8.
644 Precedence problem: open FOO should be open(FOO) at - line 10.
650 no warnings 'ambiguous' ;
652 use warnings 'ambiguous' ;
657 Operator or semicolon missing before *foo at - line 3.
658 Ambiguous use of * resolved as operator * at - line 3.
659 Operator or semicolon missing before *foo at - line 8.
660 Ambiguous use of * resolved as operator * at - line 8.
661 Operator or semicolon missing before *foo at - line 10.
662 Ambiguous use of * resolved as operator * at - line 10.
665 use warnings 'misc' ;
670 Unrecognized escape \m passed through at - line 3.
673 use warnings 'portable' ;
674 my $a = 0b011111111111111111111111111111110 ;
675 $a = 0b011111111111111111111111111111111 ;
676 $a = 0b111111111111111111111111111111111 ;
683 no warnings 'portable' ;
684 $a = 0b011111111111111111111111111111110 ;
685 $a = 0b011111111111111111111111111111111 ;
686 $a = 0b111111111111111111111111111111111 ;
694 Binary number > 0b11111111111111111111111111111111 non-portable at - line 5.
695 Hexadecimal number > 0xffffffff non-portable at - line 8.
696 Octal number > 037777777777 non-portable at - line 11.
699 use warnings 'overflow' ;
700 my $a = 0b011111111111111111111111111111110 ;
701 $a = 0b011111111111111111111111111111111 ;
702 $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
705 $a = 0x10000000000000000 ;
708 $a = 002000000000000000000000;
709 no warnings 'overflow' ;
710 $a = 0b011111111111111111111111111111110 ;
711 $a = 0b011111111111111111111111111111111 ;
712 $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
715 $a = 0x10000000000000000 ;
718 $a = 002000000000000000000000;
720 Integer overflow in binary number at - line 5.
721 Integer overflow in hexadecimal number at - line 8.
722 Integer overflow in octal number at - line 11.
730 dump() better written as CORE::dump() at - line 4.
736 sub dump { print "no warning for overriden dump\n"; }
739 no warning for overriden dump
742 use warnings 'ambiguous';
743 "@mjd_previously_unused_array";
744 no warnings 'ambiguous';
745 "@mjd_previously_unused_array";
747 Possible unintended interpolation of @mjd_previously_unused_array in string at - line 3.
750 # 20020328 mjd-perl-patch+@plover.com at behest of jfriedl@yahoo.com
751 use warnings 'regexp';
754 no warnings 'regexp';
758 Use of /c modifier is meaningless without /g at - line 4.
761 # 20020328 mjd-perl-patch+@plover.com at behest of jfriedl@yahoo.com
762 use warnings 'regexp';
766 no warnings 'regexp';
770 Use of /c modifier is meaningless in s/// at - line 5.
771 Use of /c modifier is meaningless in s/// at - line 6.
775 # 20020414 mjd-perl-patch+@plover.com # -a flag should suppress these warnings
782 # 20020414 mjd-perl-patch+@plover.com # -a flag should suppress these warnings
785 Possible unintended interpolation of @F in string at - line 4.
786 Name "main::F" used only once: possible typo at - line 4.
790 # 20020414 mjd-perl-patch+@plover.com
795 # 20020414 mjd-perl-patch+@plover.com
796 # In 5.7.3, this emitted "Possible unintended interpolation" warnings
797 use warnings 'ambiguous';
804 eval q/if ($a) { } elseif ($b) { }/;
805 no warnings "syntax";
806 eval q/if ($a) { } elseif ($b) { }/;
808 elseif should be elsif at (eval 1) line 1.
813 no warnings "syntax";
816 Number found where operator expected at (eval 1) line 1, near "5 6"
817 (Missing operator before 6?)
820 use warnings "syntax";
830 no warnings "syntax";
839 !=~ should be !~ at - line 4.
840 !=~ should be !~ at - line 5.
841 !=~ should be !~ at - line 6.
842 !=~ should be !~ at - line 7.
843 !=~ should be !~ at - line 8.
844 !=~ should be !~ at - line 9.
845 !=~ should be !~ at - line 10.
852 sub whack_eth ($) : locked {
854 no warnings 'deprecated';
857 sub ker_plop :locked {
859 sub swa_a_p ($) : locked {
862 Use of :unique is deprecated at - line 2.
863 Use of :locked is deprecated at - line 3.
864 Use of :locked is deprecated at - line 4.
865 Use of :locked is deprecated at - line 6.
868 use warnings "syntax";
869 sub proto_after_array(@$);
870 sub proto_after_arref(\@$);
871 sub proto_after_arref2(\[@$]);
872 sub proto_after_arref3(\[@$]_);
873 sub proto_after_hash(%$);
874 sub proto_after_hashref(\%$);
875 sub proto_after_hashref2(\[%$]);
876 sub underscore_last_pos($_);
877 sub underscore2($_;$);
878 sub underscore_fail($_$);
879 sub underscore_after_at(@_);
880 no warnings "syntax";
881 sub proto_after_array(@$);
882 sub proto_after_hash(%$);
883 sub underscore_fail($_$);
885 Prototype after '@' for main::proto_after_array : @$ at - line 3.
886 Prototype after '%' for main::proto_after_hash : %$ at - line 7.
887 Illegal character after '_' in prototype for main::underscore_fail : $_$ at - line 12.
888 Prototype after '@' for main::underscore_after_at : @_ at - line 13.
891 use warnings "ambiguous";
892 "foo\nn" =~ /^foo$\n/;
893 "foo\nn" =~ /^foo${\}n/;
894 my $foo = qr/^foo$\n/;
895 my $bar = qr/^foo${\}n/;
896 no warnings "ambiguous";
897 "foo\nn" =~ /^foo$\n/;
898 "foo\nn" =~ /^foo${\}n/;
899 my $foo = qr/^foo$\n/;
900 my $bar = qr/^foo${\}n/;
902 Possible unintended interpolation of $\ in regex at - line 3.
903 Possible unintended interpolation of $\ in regex at - line 5.
907 # This one is fine as an empty attribute list
908 my $holy_Einstein : = '';
909 # This one is deprecated
911 our $FWISK_FWISK_FWIZZACH_FWACH_ZACHITTY_ZICH_SHAZZATZ_FWISK := '';
912 state $thump := 'Trumpets';
913 # Lather rinse repeat in my usual obsessive style
914 my @holy_perfect_pitch : = ();
917 # state @widget_mark := ();
918 my %holy_seditives : = ();
922 no warnings 'deprecated';
923 my $holy_giveaways : = '';
925 our $TWOYYOYYOING_THUK_UGH := 1 == 1;
926 state $octothorn := 'Tinky Winky';
927 my @holy_Taj_Mahal : = ();
929 our @PLAK_DAK_THUK_FRIT := ();
930 # state @hash_mark := ();
931 my %holy_priceless_collection_of_Etruscan_snoods : = ();
934 # state %octalthorpe := ();
936 my $holy_sewer_pipe : = '';
939 state $crunch := 'Laa Laa';
941 my @holy_harem : = ();
943 # state @square := ();
944 my %holy_pin_cushions : = ();
947 # state %scratchmark := ();
949 Use of := for an empty attribute list is deprecated at - line 6.
950 Use of := for an empty attribute list is deprecated at - line 7.
951 Use of := for an empty attribute list is deprecated at - line 8.
952 Use of := for an empty attribute list is deprecated at - line 11.
953 Use of := for an empty attribute list is deprecated at - line 12.
954 Use of := for an empty attribute list is deprecated at - line 15.
955 Use of := for an empty attribute list is deprecated at - line 16.
956 Use of := for an empty attribute list is deprecated at - line 33.
957 Use of := for an empty attribute list is deprecated at - line 34.
958 Use of := for an empty attribute list is deprecated at - line 35.
959 Use of := for an empty attribute list is deprecated at - line 36.
960 Use of := for an empty attribute list is deprecated at - line 38.
961 Use of := for an empty attribute list is deprecated at - line 41.
962 Use of := for an empty attribute list is deprecated at - line 42.