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 Can't use \\%c to mean $%c in expression
39 $_ = "ab" ; s/(ab)/\1/e;
41 Unquoted string "abc" may clash with future reserved word at - line 3.
45 Possible attempt to separate words with commas
48 Possible attempt to put comments in qw() list
51 %s (...) interpreted as function
56 Ambiguous use of %c{%s%s} resolved to %c%s%s
61 Ambiguous use of %c{%s} resolved to %c%s
63 sub fred {} $a = ${fred}
69 Bareword \"%s\" refers to nonexistent package
72 Ambiguous call resolved as CORE::%s(), qualify as such or use &
76 Unrecognized escape \\%c passed through
82 %s number > %s non-portable
83 my $a = 0b011111111111111111111111111111110 ;
84 $a = 0b011111111111111111111111111111111 ;
85 $a = 0b111111111111111111111111111111111 ;
93 Integer overflow in binary number
94 my $a = 0b011111111111111111111111111111110 ;
95 $a = 0b011111111111111111111111111111111 ;
96 $a = 0b111111111111111111111111111111111 ;
104 dump() better written as CORE::dump()
106 Use of /c modifier is meaningless without /g
108 Use of /c modifier is meaningless in s///
112 Use of "%s" without parentheses is ambiguous [check_uni]
115 Ambiguous use of -%s resolved as -&%s() [yylex]
116 sub fred {} ; - fred ;
118 Precedence problem: open %.*s should be open(%.*s) [yylex]
121 Operator or semicolon missing before %c%s [yylex]
122 Ambiguous use of %c resolved as operator %c
131 no warnings 'deprecated' ;
137 Use of comma-less variable list is deprecated at - line 4.
138 Use of comma-less variable list is deprecated at - line 4.
139 Use of comma-less variable list is deprecated at - line 4.
144 no warnings 'deprecated' ;
148 Use of bare << to mean <<"" is deprecated at - line 2.
152 eval "\${\7LOBAL_PHASE}";
156 my $ret = eval "\${\n\cT\n}";
157 print "ok\n" if $ret == $^T;
159 no warnings 'deprecated' ;
161 eval "\${\7LOBAL_PHASE}";
168 Use of literal control characters in variable names is deprecated at (eval 1) line 1.
169 Use of literal control characters in variable names is deprecated at (eval 2) line 1.
170 Use of literal control characters in variable names is deprecated at (eval 3) line 1.
171 Use of literal control characters in variable names is deprecated at (eval 4) line 2.
172 Use of literal control characters in variable names is deprecated at (eval 5) line 1.
173 Use of literal control characters in variable names is deprecated at (eval 6) line 2.
178 $a =~ s/$foo/fool/seq;
182 Unknown regexp modifier "/e" at - line 2, near "=~ "
183 Unknown regexp modifier "/q" at - line 2, near "=~ "
184 Unknown regexp modifier "/q" at - line 3, near "=~ "
185 Execution of - aborted due to compilation errors.
189 use open qw( :utf8 :std );
191 $a =~ s/$foo/fool/seネq;
195 Unknown regexp modifier "/e" at - line 4, near "=~ "
196 Unknown regexp modifier "/ネ" at - line 4, near "=~ "
197 Unknown regexp modifier "/q" at - line 4, near "=~ "
198 Unknown regexp modifier "/ネ" at - line 5, near "=~ "
199 Unknown regexp modifier "/q" at - line 5, near "=~ "
200 Execution of - aborted due to compilation errors.
203 use warnings 'syntax' ;
205 no warnings 'syntax' ;
208 \1 better written as $1 at - line 3.
211 use warnings 'semicolon' ;
214 no warnings 'semicolon' ;
218 Semicolon seems to be missing at - line 3.
221 use warnings 'syntax' ;
233 Reversed += operator at - line 3.
234 Reversed -= operator at - line 4.
235 Reversed *= operator at - line 5.
236 Reversed %= operator at - line 6.
237 Reversed &= operator at - line 7.
238 Reversed .= operator at - line 8.
239 Reversed ^= operator at - line 9.
240 Reversed |= operator at - line 10.
241 Reversed <= operator at - line 11.
242 syntax error at - line 8, near "=."
243 syntax error at - line 9, near "=^"
244 syntax error at - line 10, near "=|"
245 Unterminated <> operator at - line 11.
248 no warnings 'syntax' ;
260 syntax error at - line 8, near "=."
261 syntax error at - line 9, near "=^"
262 syntax error at - line 10, near "=|"
263 Unterminated <> operator at - line 11.
266 use warnings 'syntax' ;
268 no warnings 'syntax' ;
271 Multidimensional syntax $a[1,2] not supported at - line 3.
274 use warnings 'syntax' ;
275 sub fred {} ; $SIG{TERM} = fred;
276 no warnings 'syntax' ;
279 You need to quote "fred" at - line 3.
283 use open qw( :utf8 :std );
284 use warnings 'syntax' ;
285 sub frèd {} ; $SIG{TERM} = frèd;
286 no warnings 'syntax' ;
289 You need to quote "frèd" at - line 5.
293 use open qw( :utf8 :std );
294 use warnings 'syntax' ;
295 sub ふれど {} ; $SIG{TERM} = ふれど;
296 no warnings 'syntax' ;
299 You need to quote "ふれど" at - line 5.
302 use warnings 'syntax' ;
305 no warnings 'syntax' ;
309 Can't use \1 to mean $1 in expression at - line 4.
312 use warnings 'reserved' ;
317 no warnings 'reserved' ;
320 Unquoted string "abc" may clash with future reserved word at - line 3.
328 Possible attempt to separate words with commas at - line 3.
336 Possible attempt to put comments in qw() list at - line 3.
340 @a = qw(a, b, c # #) ;
342 @a = qw(a, b, c # #) ;
344 Possible attempt to separate words with commas at - line 3.
345 Possible attempt to put comments in qw() list at - line 3.
348 use warnings 'syntax' ;
350 print ("") and $x = 1;
353 print (1+2) * 3 if 0; # only this one should warn
356 print (...) interpreted as function at - line 7.
359 no warnings 'syntax' ;
365 use warnings 'syntax' ;
369 printf (...) interpreted as function at - line 4.
372 no warnings 'syntax' ;
378 use warnings 'syntax' ;
382 sort (...) interpreted as function at - line 4.
385 no warnings 'syntax' ;
391 use warnings 'ambiguous' ;
393 no warnings 'ambiguous' ;
396 Ambiguous use of ${time[...]} resolved to $time[...] at - line 3.
399 use warnings 'ambiguous' ;
402 Ambiguous use of ${time{...}} resolved to $time{...} at - line 3.
405 use warnings 'ambiguous' ;
413 Ambiguous use of ${time{...}} resolved to $time{...} at - line 5.
417 use warnings 'ambiguous' ;
431 Ambiguous use of ${time[...]} resolved to $time[...] at - line 5.
432 Ambiguous use of ${time[...]} resolved to $time[...] at - line 10.
436 no warnings 'ambiguous' ;
442 use warnings 'ambiguous' ;
445 $a = $#{time} ; # This one is special cased in toke.c
448 $a = defined &{time} ; # To avoid calling &::time
449 no warnings 'ambiguous' ;
452 $a = $#{time} ; # This one is special cased in toke.c
455 $a = defined &{time} ; # To avoid calling &::time
457 Ambiguous use of ${time} resolved to $time at - line 3.
458 Ambiguous use of @{time} resolved to @time at - line 4.
459 Ambiguous use of @{time} resolved to @time at - line 5.
460 Ambiguous use of %{time} resolved to %time at - line 6.
461 Ambiguous use of *{time} resolved to *time at - line 7.
462 Ambiguous use of &{time} resolved to &time at - line 8.
465 use warnings 'ambiguous' ;
488 Ambiguous use of ${time} resolved to $time at - line 4.
489 Ambiguous use of @{time} resolved to @time at - line 7.
490 Ambiguous use of @{time} resolved to @time at - line 10.
491 Ambiguous use of %{time} resolved to %time at - line 13.
492 Ambiguous use of *{time} resolved to *time at - line 16.
493 Ambiguous use of &{time} resolved to &time at - line 19.
497 use warnings 'ambiguous' ;
500 no warnings 'ambiguous' ;
503 Ambiguous use of ${fred} resolved to $fred at - line 4.
506 use warnings 'syntax' ;
507 $a = _123; print "$a\n"; #( 3 string)
508 $a = 1_23; print "$a\n";
509 $a = 12_3; print "$a\n";
510 $a = 123_; print "$a\n"; # 6
511 $a = _+123; print "$a\n"; # 7 string)
512 $a = +_123; print "$a\n"; #( 8 string)
513 $a = +1_23; print "$a\n";
514 $a = +12_3; print "$a\n";
515 $a = +123_; print "$a\n"; # 11
516 $a = _-123; print "$a\n"; #(12 string)
517 $a = -_123; print "$a\n"; #(13 string)
518 $a = -1_23; print "$a\n";
519 $a = -12_3; print "$a\n";
520 $a = -123_; print "$a\n"; # 16
521 $a = 123._456; print "$a\n"; # 17
522 $a = 123.4_56; print "$a\n";
523 $a = 123.45_6; print "$a\n";
524 $a = 123.456_; print "$a\n"; # 20
525 $a = +123._456; print "$a\n"; # 21
526 $a = +123.4_56; print "$a\n";
527 $a = +123.45_6; print "$a\n";
528 $a = +123.456_; print "$a\n"; # 24
529 $a = -123._456; print "$a\n"; # 25
530 $a = -123.4_56; print "$a\n";
531 $a = -123.45_6; print "$a\n";
532 $a = -123.456_; print "$a\n"; # 28
533 $a = 123.456E_12; printf("%.0f\n", $a); # 29
534 $a = 123.456E1_2; printf("%.0f\n", $a);
535 $a = 123.456E12_; printf("%.0f\n", $a); # 31
536 $a = 123.456E_+12; printf("%.0f\n", $a); # 32
537 $a = 123.456E+_12; printf("%.0f\n", $a); # 33
538 $a = 123.456E+1_2; printf("%.0f\n", $a);
539 $a = 123.456E+12_; printf("%.0f\n", $a); # 35
540 $a = 123.456E_-12; print "$a\n"; # 36
541 $a = 123.456E-_12; print "$a\n"; # 37
542 $a = 123.456E-1_2; print "$a\n";
543 $a = 123.456E-12_; print "$a\n"; # 39
544 $a = 1__23; print "$a\n"; # 40
545 $a = 12.3__4; print "$a\n"; # 41
546 $a = 12.34e1__2; printf("%.0f\n", $a); # 42
547 no warnings 'syntax' ;
548 $a = _123; print "$a\n";
549 $a = 1_23; print "$a\n";
550 $a = 12_3; print "$a\n";
551 $a = 123_; print "$a\n";
552 $a = _+123; print "$a\n";
553 $a = +_123; print "$a\n";
554 $a = +1_23; print "$a\n";
555 $a = +12_3; print "$a\n";
556 $a = +123_; print "$a\n";
557 $a = _-123; print "$a\n";
558 $a = -_123; print "$a\n";
559 $a = -1_23; print "$a\n";
560 $a = -12_3; print "$a\n";
561 $a = -123_; print "$a\n";
562 $a = 123._456; print "$a\n";
563 $a = 123.4_56; print "$a\n";
564 $a = 123.45_6; print "$a\n";
565 $a = 123.456_; print "$a\n";
566 $a = +123._456; print "$a\n";
567 $a = +123.4_56; print "$a\n";
568 $a = +123.45_6; print "$a\n";
569 $a = +123.456_; print "$a\n";
570 $a = -123._456; print "$a\n";
571 $a = -123.4_56; print "$a\n";
572 $a = -123.45_6; print "$a\n";
573 $a = -123.456_; print "$a\n";
574 $a = 123.456E_12; printf("%.0f\n", $a);
575 $a = 123.456E1_2; printf("%.0f\n", $a);
576 $a = 123.456E12_; printf("%.0f\n", $a);
577 $a = 123.456E_+12; printf("%.0f\n", $a);
578 $a = 123.456E+_12; printf("%.0f\n", $a);
579 $a = 123.456E+1_2; printf("%.0f\n", $a);
580 $a = 123.456E+12_; printf("%.0f\n", $a);
581 $a = 123.456E_-12; print "$a\n";
582 $a = 123.456E-_12; print "$a\n";
583 $a = 123.456E-1_2; print "$a\n";
584 $a = 123.456E-12_; print "$a\n";
585 $a = 1__23; print "$a\n";
586 $a = 12.3__4; print "$a\n";
587 $a = 12.34e1__2; printf("%.0f\n", $a);
590 Misplaced _ in number at - line 6.
591 Misplaced _ in number at - line 11.
592 Misplaced _ in number at - line 16.
593 Misplaced _ in number at - line 17.
594 Misplaced _ in number at - line 20.
595 Misplaced _ in number at - line 21.
596 Misplaced _ in number at - line 24.
597 Misplaced _ in number at - line 25.
598 Misplaced _ in number at - line 28.
599 Misplaced _ in number at - line 29.
600 Misplaced _ in number at - line 31.
601 Misplaced _ in number at - line 32.
602 Misplaced _ in number at - line 33.
603 Misplaced _ in number at - line 35.
604 Misplaced _ in number at - line 36.
605 Misplaced _ in number at - line 37.
606 Misplaced _ in number at - line 39.
607 Misplaced _ in number at - line 40.
608 Misplaced _ in number at - line 41.
609 Misplaced _ in number at - line 42.
692 use warnings 'bareword' ;
695 no warnings 'bareword' ;
699 Bareword "FRED::" refers to nonexistent package at bar line 25.
703 use open qw( :utf8 :std );
704 use warnings 'bareword' ;
707 no warnings 'bareword' ;
711 Bareword "FRÈD::" refers to nonexistent package at bar line 25.
715 use open qw( :utf8 :std );
716 use warnings 'bareword' ;
719 no warnings 'bareword' ;
723 Bareword "ϞϞϞ::" refers to nonexistent package at bar line 25.
726 use warnings 'ambiguous' ;
729 no warnings 'ambiguous' ;
732 Ambiguous call resolved as CORE::time(), qualify as such or use & at - line 4.
751 Warning: Use of "rand" without parentheses is ambiguous at - line 2.
757 no warnings 'ambiguous' ;
759 use warnings 'ambiguous' ;
764 Warning: Use of "rand" without parentheses is ambiguous at - line 3.
765 Warning: Use of "rand" without parentheses is ambiguous at - line 8.
766 Warning: Use of "rand" without parentheses is ambiguous at - line 10.
772 my $b = whatever + 4 ;
774 Warning: Use of "myrand" without parentheses is ambiguous at - line 4.
777 use warnings "ambiguous";
778 print for keys %+; # should not warn
784 sub hank : lvalue {$_}
785 --hank; # This should *not* warn [perl #77240]
787 Ambiguous use of -fred resolved as -&fred() at - line 3.
794 no warnings 'ambiguous' ;
796 use warnings 'ambiguous' ;
801 Ambiguous use of -fred resolved as -&fred() at - line 4.
802 Ambiguous use of -fred resolved as -&fred() at - line 9.
803 Ambiguous use of -fred resolved as -&fred() at - line 11.
807 use open qw( :utf8 :std );
811 Ambiguous use of -frèd resolved as -&frèd() at - line 5.
816 use open qw( :utf8 :std );
820 no warnings 'ambiguous' ;
822 use warnings 'ambiguous' ;
827 Ambiguous use of -frèd resolved as -&frèd() at - line 6.
828 Ambiguous use of -frèd resolved as -&frèd() at - line 11.
829 Ambiguous use of -frèd resolved as -&frèd() at - line 13.
833 use open qw( :utf8 :std );
837 Ambiguous use of -ᒍᒘᒊ resolved as -&ᒍᒘᒊ() at - line 5.
842 use open qw( :utf8 :std );
846 no warnings 'ambiguous' ;
848 use warnings 'ambiguous' ;
853 Ambiguous use of -ᒍᒘᒊ resolved as -&ᒍᒘᒊ() at - line 6.
854 Ambiguous use of -ᒍᒘᒊ resolved as -&ᒍᒘᒊ() at - line 11.
855 Ambiguous use of -ᒍᒘᒊ resolved as -&ᒍᒘᒊ() at - line 13.
859 open local *FOO; # should be ok
861 Precedence problem: open FOO should be open(FOO) at - line 2.
865 use open qw( :utf8 :std );
868 Precedence problem: open FÒÒ should be open(FÒÒ) at - line 4.
872 use open qw( :utf8 :std );
875 Precedence problem: open ᒍOO should be open(ᒍOO) at - line 4.
877 # toke.c (and [perl #16184])
878 open FOO => "<&0"; close FOO;
885 no warnings 'precedence' ;
887 use warnings 'precedence' ;
891 open Foo::BAR; # this should not warn
893 Precedence problem: open FOO should be open(FOO) at - line 3.
894 Precedence problem: open FOO should be open(FOO) at - line 8.
895 Precedence problem: open FOO should be open(FOO) at - line 10.
900 use open qw( :utf8 :std );
903 no warnings 'precedence' ;
905 use warnings 'precedence' ;
910 Precedence problem: open FÒÒ should be open(FÒÒ) at - line 5.
911 Precedence problem: open FÒÒ should be open(FÒÒ) at - line 10.
912 Precedence problem: open FÒÒ should be open(FÒÒ) at - line 12.
916 use open qw( :utf8 :std );
920 no warnings 'precedence' ;
922 use warnings 'precedence' ;
927 Precedence problem: open ᒍÒÒ should be open(ᒍÒÒ) at - line 5.
928 Precedence problem: open ᒍÒÒ should be open(ᒍÒÒ) at - line 10.
929 Precedence problem: open ᒍÒÒ should be open(ᒍÒÒ) at - line 12.
935 no warnings 'ambiguous' ;
937 use warnings 'ambiguous' ;
941 # These should not warn [perl #117535]:
943 no warnings 'deprecated';
947 Operator or semicolon missing before *foo at - line 3.
948 Ambiguous use of * resolved as operator * at - line 3.
949 Operator or semicolon missing before *foo at - line 8.
950 Ambiguous use of * resolved as operator * at - line 8.
951 Operator or semicolon missing before *foo at - line 10.
952 Ambiguous use of * resolved as operator * at - line 10.
958 no warnings 'ambiguous' ;
960 use warnings 'ambiguous' ;
964 # This should not produce ambiguity warnings [perl #117535]:
968 Operator or semicolon missing before %foo at - line 3.
969 Ambiguous use of % resolved as operator % at - line 3.
970 Operator or semicolon missing before %foo at - line 8.
971 Ambiguous use of % resolved as operator % at - line 8.
972 Operator or semicolon missing before %foo at - line 10.
973 Ambiguous use of % resolved as operator % at - line 10.
974 Bareword found where operator expected at - line 12, near "$%foo"
975 (Missing operator before foo?)
976 Bareword found where operator expected at - line 13, near "$ %foo"
977 (Missing operator before foo?)
978 Illegal modulus zero at - line 3.
984 no warnings 'ambiguous' ;
986 use warnings 'ambiguous' ;
990 # These should not warn produce ambiguity warnings [perl #76910]:
995 Operator or semicolon missing before &foo at - line 3.
996 Ambiguous use of & resolved as operator & at - line 3.
997 Operator or semicolon missing before &foo at - line 8.
998 Ambiguous use of & resolved as operator & at - line 8.
999 Operator or semicolon missing before &foo at - line 10.
1000 Ambiguous use of & resolved as operator & at - line 10.
1001 Bareword found where operator expected at - line 13, near "$&foo"
1002 (Missing operator before foo?)
1003 Bareword found where operator expected at - line 14, near "$ &foo"
1004 (Missing operator before foo?)
1005 Undefined subroutine &main::foo called at - line 3.
1009 use open qw( :utf8 :std );
1013 no warnings 'ambiguous' ;
1015 use warnings 'ambiguous' ;
1020 Operator or semicolon missing before *foo at - line 5.
1021 Ambiguous use of * resolved as operator * at - line 5.
1022 Operator or semicolon missing before *foo at - line 10.
1023 Ambiguous use of * resolved as operator * at - line 10.
1024 Operator or semicolon missing before *foo at - line 12.
1025 Ambiguous use of * resolved as operator * at - line 12.
1028 use warnings 'misc' ;
1030 no warnings 'misc' ;
1033 Unrecognized escape \m passed through at - line 3.
1036 use warnings 'misc' ;
1038 no warnings 'misc' ;
1041 Useless use of \E at - line 3.
1044 use warnings 'portable' ;
1045 my $a = 0b011111111111111111111111111111110 ;
1046 $a = 0b011111111111111111111111111111111 ;
1047 $a = 0b111111111111111111111111111111111 ;
1051 $a = 0037777777776 ;
1052 $a = 0037777777777 ;
1053 $a = 0047777777777 ;
1054 no warnings 'portable' ;
1055 $a = 0b011111111111111111111111111111110 ;
1056 $a = 0b011111111111111111111111111111111 ;
1057 $a = 0b111111111111111111111111111111111 ;
1061 $a = 0037777777776 ;
1062 $a = 0037777777777 ;
1063 $a = 0047777777777 ;
1065 Binary number > 0b11111111111111111111111111111111 non-portable at - line 5.
1066 Hexadecimal number > 0xffffffff non-portable at - line 8.
1067 Octal number > 037777777777 non-portable at - line 11.
1070 use warnings 'overflow' ;
1071 my $a = 0b011111111111111111111111111111110 ;
1072 $a = 0b011111111111111111111111111111111 ;
1073 $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
1076 $a = 0x10000000000000000 ;
1077 $a = 0037777777776 ;
1078 $a = 0037777777777 ;
1079 $a = 002000000000000000000000;
1080 no warnings 'overflow' ;
1081 $a = 0b011111111111111111111111111111110 ;
1082 $a = 0b011111111111111111111111111111111 ;
1083 $a = 0b10000000000000000000000000000000000000000000000000000000000000000 ;
1086 $a = 0x10000000000000000 ;
1087 $a = 0037777777776 ;
1088 $a = 0037777777777 ;
1089 $a = 002000000000000000000000;
1091 Integer overflow in binary number at - line 5.
1092 Integer overflow in hexadecimal number at - line 8.
1093 Integer overflow in octal number at - line 11.
1097 use warnings 'misc';
1101 dump() better written as CORE::dump() at - line 4.
1105 use warnings 'misc';
1107 sub dump { print "no warning for overridden dump\n"; }
1110 no warning for overridden dump
1113 use warnings 'ambiguous';
1114 "@mjd_previously_unused_array";
1115 no warnings 'ambiguous';
1116 "@mjd_previously_unused_array2";
1118 Possible unintended interpolation of @mjd_previously_unused_array in string at - line 3.
1122 use open qw( :utf8 :std );
1123 use warnings 'ambiguous';
1124 "@mjd_previously_unused_àrray";
1125 no warnings 'ambiguous';
1126 "@mjd_previously_unused_àrray2";
1128 Possible unintended interpolation of @mjd_previously_unused_àrray in string at - line 5.
1132 use open qw( :utf8 :std );
1133 use warnings 'ambiguous';
1134 "@mjd_previously_unused_ぁrrぁy";
1135 no warnings 'ambiguous';
1136 "@mjd_previously_unused_ぁrrぁy2";
1138 Possible unintended interpolation of @mjd_previously_unused_ぁrrぁy in string at - line 5.
1141 # 20020328 mjd-perl-patch+@plover.com at behest of jfriedl@yahoo.com
1142 use warnings 'regexp';
1145 no warnings 'regexp';
1149 Use of /c modifier is meaningless without /g at - line 4.
1152 # 20020328 mjd-perl-patch+@plover.com at behest of jfriedl@yahoo.com
1153 use warnings 'regexp';
1157 no warnings 'regexp';
1161 Use of /c modifier is meaningless in s/// at - line 5.
1162 Use of /c modifier is meaningless in s/// at - line 6.
1166 # 20020414 mjd-perl-patch+@plover.com # -a flag should suppress these warnings
1173 # 20020414 mjd-perl-patch+@plover.com # -a flag should suppress these warnings
1176 Possible unintended interpolation of @F in string at - line 4.
1177 Name "main::F" used only once: possible typo at - line 4.
1181 # 20020414 mjd-perl-patch+@plover.com
1186 # 20020414 mjd-perl-patch+@plover.com
1187 # In 5.7.3, this emitted "Possible unintended interpolation" warnings
1188 use warnings 'ambiguous';
1195 eval q/if ($a) { } elseif ($b) { }/;
1196 no warnings "syntax";
1197 eval q/if ($a) { } elseif ($b) { }/;
1199 elseif should be elsif at (eval 1) line 1.
1204 no warnings "syntax";
1207 Number found where operator expected at (eval 1) line 1, near "5 6"
1208 (Missing operator before 6?)
1211 use warnings "syntax"; no warnings "deprecated";
1221 no warnings "syntax";
1230 !=~ should be !~ at - line 4.
1231 !=~ should be !~ at - line 5.
1232 !=~ should be !~ at - line 6.
1233 !=~ should be !~ at - line 7.
1234 !=~ should be !~ at - line 8.
1235 !=~ should be !~ at - line 9.
1236 !=~ should be !~ at - line 10.
1243 sub whack_eth ($) : locked {
1245 no warnings 'deprecated';
1248 sub ker_plop :locked {
1250 sub swa_a_p ($) : locked {
1253 Use of :unique is deprecated at - line 2.
1254 Use of :locked is deprecated at - line 3.
1255 Use of :locked is deprecated at - line 4.
1256 Use of :locked is deprecated at - line 6.
1259 use warnings "syntax"; use feature 'lexical_subs';
1260 sub proto_after_array(@$);
1261 sub proto_after_arref(\@$);
1262 sub proto_after_arref2(\[@$]);
1263 sub proto_after_arref3(\[@$]_);
1264 sub proto_after_hash(%$);
1265 sub proto_after_hashref(\%$);
1266 sub proto_after_hashref2(\[%$]);
1267 sub underscore_last_pos($_);
1268 sub underscore2($_;$);
1269 sub underscore_fail($_$);
1270 sub underscore_after_at(@_);
1273 use feature 'state';
1274 state sub estate (@$);
1279 no warnings "syntax";
1280 sub proto_after_array(@$);
1281 sub proto_after_hash(%$);
1282 sub underscore_fail($_$);
1284 Prototype after '@' for main::proto_after_array : @$ at - line 3.
1285 Prototype after '%' for main::proto_after_hash : %$ at - line 7.
1286 Illegal character after '_' in prototype for main::underscore_fail : $_$ at - line 12.
1287 Prototype after '@' for main::underscore_after_at : @_ at - line 13.
1288 The lexical_subs feature is experimental at - line 14.
1289 Prototype after '@' for hour : @$ at - line 14.
1290 The lexical_subs feature is experimental at - line 15.
1291 Prototype after '@' for migh : @$ at - line 15.
1292 The lexical_subs feature is experimental at - line 17.
1293 Prototype after '@' for estate : @$ at - line 17.
1294 Prototype after '@' for hour : @$ at - line 19.
1295 Prototype after '@' for migh : @$ at - line 20.
1296 Prototype after '@' for estate : @$ at - line 21.
1299 use warnings "ambiguous";
1300 "foo\nn" =~ /^foo$\n/;
1301 "foo\nn" =~ /^foo${\}n/;
1302 my $foo = qr/^foo$\n/;
1303 my $bar = qr/^foo${\}n/;
1304 no warnings "ambiguous";
1305 "foo\nn" =~ /^foo$\n/;
1306 "foo\nn" =~ /^foo${\}n/;
1307 my $foo = qr/^foo$\n/;
1308 my $bar = qr/^foo${\}n/;
1310 Possible unintended interpolation of $\ in regex at - line 3.
1311 Possible unintended interpolation of $\ in regex at - line 5.
1314 use warnings 'syntax' ;
1318 no warnings 'syntax' ;
1323 Missing braces on \o{} at - line 3, within string
1324 Missing right brace on \o{ at - line 4, within string
1325 Number with no digits at - line 5, within string
1326 BEGIN not safe after errors--compilation aborted at - line 6.
1329 use warnings 'digit' ;
1330 my $a = "\o{1238456}";
1331 no warnings 'digit' ;
1332 my $a = "\o{1238456}";
1334 Non-octal character '8'. Resolved as "\o{123}" at - line 3.
1339 print $a =~ ?f? ? "yes\n" : "no\n" foreach 0..2;
1341 Use of ?PATTERN? without explicit operator is deprecated at - line 4.
1351 no warnings 'syntax';
1355 no warnings 'deprecated';
1357 "\c{" is deprecated and is more clearly written as ";" at - line 3.
1358 "\c," is more clearly written simply as "l" at - line 4.
1359 "\c`" is more clearly written simply as "\ " at - line 5.
1360 "\c{" is deprecated and is more clearly written as ";" at - line 7.
1363 use warnings 'syntax' ;
1369 no warnings 'syntax' ;
1372 Regexp modifiers "/d" and "/u" are mutually exclusive at - line 3, near "= "
1373 Regexp modifiers "/l" and "/a" are mutually exclusive at - line 4, near "= "
1374 Regexp modifier "/l" may not appear twice at - line 5, near "= "
1375 Regexp modifier "/a" may appear a maximum of twice at - line 7, near "= "
1376 BEGIN not safe after errors--compilation aborted at - line 8.
1380 eval "print q\xabfoo";
1382 $@ =~ /Can't find string terminator "\xab" anywhere before EOF/;
1388 use open qw( :utf8 :std );
1389 use warnings 'ambiguous' ;
1392 no warnings 'ambiguous' ;
1395 Ambiguous use of ${frèd} resolved to $frèd at - line 6.
1399 use open qw( :utf8 :std );
1400 use warnings 'ambiguous' ;
1403 no warnings 'ambiguous' ;
1406 Ambiguous use of ${f렏} resolved to $f렏 at - line 6.
1410 use open qw( :utf8 :std );
1414 CORE::렏 is not a keyword at - line 5.
1419 eval this_method_is_fake ();
1421 Undefined subroutine &main::this_method_is_fake called at - line 4.
1424 # [perl #107002] Erroneous ambiguity warnings
1425 sub { # do not actually call require
1426 require a::b . 1; # These used to produce erroneous
1427 require a::b + 1; # ambiguity warnings.
1432 # [perl #113094], [perl #119101]
1433 print "aa" =~ m{^a\{1,2\}$}, "\n";
1434 print "aa" =~ m{^a\x\{61\}$}, "\n";
1435 print "a\\x{6F}" =~ m{^a\\x\{6F\}$}, "\n";
1436 print "a\\o" =~ m{^a\\\x\{6F\}$}, "\n";
1437 print "a\\\\x{6F}" =~ m{^a\\\\x\{6F\}$}, "\n";
1438 print "a\\\\o" =~ m{^a\\\\\x\{6F\}$}, "\n";
1439 print "aa" =~ m{^a{1,2}$}, "\n";
1440 print "aq" =~ m[^a\[a-z\]$], "\n";
1441 print "aq" =~ m(^a\(q\)$), "\n";
1442 no warnings 'deprecated';
1443 print "aa" =~ m{^a\{1,2\}$}, "\n";
1444 print "aa" =~ m{^a\x\{61\}$}, "\n";
1445 print "a\\x{6F}" =~ m{^a\\x\{6F\}$}, "\n";
1446 print "a\\o" =~ m{^a\\\x\{6f\}$}, "\n";
1447 print "aq" =~ m[^a\[a-z\]$], "\n";
1448 print "aq" =~ m(^a\(q\)$), "\n";
1450 Useless use of '\'; doesn't escape metacharacter '{' at - line 3.
1451 Useless use of '\'; doesn't escape metacharacter '{' at - line 4.
1452 Useless use of '\'; doesn't escape metacharacter '{' at - line 6.
1453 Useless use of '\'; doesn't escape metacharacter '{' at - line 8.
1454 Useless use of '\'; doesn't escape metacharacter '[' at - line 10.
1455 Useless use of '\'; doesn't escape metacharacter '(' at - line 11.
1473 #[perl #119123] disallow literal control character variables
1475 eval "\${ \cX } = 24";
1478 }; # shouldn't warn on {\n, even though \n is a control character
1480 Use of literal control characters in variable names is deprecated at (eval 1) line 1.
1481 Use of literal control characters in variable names is deprecated at (eval 2) line 1.