2 # NAME foo found where operator expected
5 Number found where operator expected at - line 1, near "myfunc 1"
6 (Do you need to predeclare myfunc?)
7 syntax error at - line 1, near "myfunc 1"
8 Execution of - aborted due to compilation errors.
10 # NAME foo found where operator expected (after strict error, w/fatal warnings)
11 use warnings FATAL => 'all';
16 Global symbol "$foo" requires explicit package name (did you forget to declare "my $foo"?) at - line 3.
17 Number found where operator expected at - line 4, near "myfunc 1"
18 (Do you need to predeclare myfunc?)
19 syntax error at - line 4, near "myfunc 1"
20 Execution of - aborted due to compilation errors.
22 # NAME (Missing operator before ${?) [perl #123737]
25 Scalar found where operator expected at - line 1, near "0${"
26 (Missing operator before ${?)
27 syntax error at - line 1, near "0$"
28 Missing right curly or square bracket at - line 1, at end of line
29 Execution of - aborted due to compilation errors.
31 # NAME (Missing operator before $#{?) [perl #123737]
34 Array length found where operator expected at - line 1, near "0$#{"
35 (Missing operator before $#{?)
36 syntax error at - line 1, near "0$#"
37 Missing right curly or square bracket at - line 1, at end of line
38 Execution of - aborted due to compilation errors.
40 # NAME (Missing operator before @foo) [perl #123737]
43 Array found where operator expected at - line 1, near "0@foo"
44 (Missing operator before @foo?)
45 syntax error at - line 1, near "0@foo
47 Execution of - aborted due to compilation errors.
49 # NAME (Missing operator before @{) [perl #123737]
52 Array found where operator expected at - line 1, near "0@{"
53 (Missing operator before @{?)
54 syntax error at - line 1, near "0@"
55 Missing right curly or square bracket at - line 1, at end of line
56 Execution of - aborted due to compilation errors.
58 # NAME Unterminated here-doc in string eval
61 Can't find string terminator "foo" anywhere before EOF at (eval 1) line 1.
63 # NAME Unterminated here-doc in s/// string eval
64 eval "s//<<foo/e"; die $@
66 Can't find string terminator "foo" anywhere before EOF at (eval 1) line 1.
68 # NAME Unterminated here-doc in string
69 "${<<foo"; # Used to give ‘Attempt to free blah blah blah’
71 Can't find string terminator "foo" anywhere before EOF at - line 1.
73 # NAME Unterminated here-doc with non-Latin-1 terminator
74 BEGIN { binmode STDERR, ":utf8" }
78 Can't find string terminator "옷옷" anywhere before EOF at - line 3.
80 # NAME Unterminated qw//
83 Can't find string terminator "/" anywhere before EOF at - line 1.
85 # NAME Unterminated q//
88 Can't find string terminator "/" anywhere before EOF at - line 1.
90 # NAME Unterminated ''
93 Can't find string terminator "'" anywhere before EOF at - line 1.
95 # NAME Unterminated ""
98 Can't find string terminator '"' anywhere before EOF at - line 1.
100 # NAME Unterminated q// with non-ASCII delimiter, under utf8
101 BEGIN { binmode STDERR, ":utf8" }
105 Can't find string terminator "«" anywhere before EOF at - line 3.
107 # NAME Unterminated q// with non-Latin-1 delimiter
108 BEGIN { binmode STDERR, ":utf8" }
112 Can't find string terminator "옷" anywhere before EOF at - line 3.
117 Missing right brace on \N{} or unescaped left brace after \N at - line 1, within pattern
118 Execution of - aborted due to compilation errors.
120 # NAME map{for our *a...
121 map{for our *a (1..10) {$_.=$x}}
123 Missing $ on loop variable at - line 1.
125 # NAME Missing name in "my sub"
126 use feature 'lexical_subs'; my sub;
128 Missing name in "my sub" at - line 1.
130 # NAME Missing name in "our sub"
131 use feature 'lexical_subs'; our sub;
133 Missing name in "our sub" at - line 1.
135 # NAME Missing name in "state sub"
139 Missing name in "state sub" at - line 2.
141 # NAME our sub pack::foo
144 No package name allowed for subroutine &foo::bar in "our" at - line 1, near "our sub foo::bar"
145 Execution of - aborted due to compilation errors.
147 # NAME my sub pack::foo
148 use feature 'lexical_subs', 'state';
152 "my" subroutine &foo::bar can't be in a package at - line 2, near "my sub foo::bar"
153 "state" subroutine &foo::bear can't be in a package at - line 3, near "state sub foo::bear"
154 Execution of - aborted due to compilation errors.
156 # NAME Integer constant overloading returning undef
158 BEGIN { overload::constant integer => sub {}; undef *^H }
161 Constant(1) unknown at - line 3, at end of line
162 Execution of - aborted due to compilation errors.
164 # NAME Float constant overloading returning undef
166 BEGIN { overload::constant float => sub {}; undef *^H }
169 Constant(1.1) unknown at - line 3, at end of line
170 Execution of - aborted due to compilation errors.
172 # NAME Binary constant overloading returning undef
174 BEGIN { overload::constant binary => sub {}; undef *^H }
177 Constant(0x1) unknown at - line 3, at end of line
178 Execution of - aborted due to compilation errors.
180 # NAME String constant overloading returning undef
182 BEGIN { overload::constant q => sub {}; undef *^H }
183 '1', "1$_", tr"a"", s""a"
185 Constant(q) unknown at - line 3, near "'1'"
186 Constant(qq) unknown at - line 3, within string
187 Constant(tr) unknown at - line 3, within string
188 Constant(s) unknown at - line 3, within string
189 Execution of - aborted due to compilation errors.
191 # NAME Regexp constant overloading when *^H is undefined
193 BEGIN { overload::constant qr => sub {}; undef *^H }
196 Constant(qq) unknown at - line 3, within pattern
197 Execution of - aborted due to compilation errors.
199 # NAME Regexp constant overloading when *^H is undefined
201 BEGIN { overload::constant qr => sub {}; undef *^H }
204 Constant(q) unknown at - line 3, within pattern
205 Execution of - aborted due to compilation errors.
207 # NAME \N{...} when charnames fails to load but without an error
208 # SKIP ? exists $ENV{PERL_UNICODE} ? "Unreliable under some PERL_UNICODE settings" : 0
209 BEGIN { ++$_ for @INC{"charnames.pm","_charnames.pm"} }
212 Constant(\N{a}) unknown at - line 2, within string
213 Execution of - aborted due to compilation errors.
215 # NAME Integer constant overloading returning undef
217 BEGIN { overload::constant integer => sub {} }
220 Constant(1): Call to &{$^H{integer}} did not return a defined value at - line 3, at end of line
221 Execution of - aborted due to compilation errors.
223 # NAME Float constant overloading returning undef
225 BEGIN { overload::constant float => sub {} }
228 Constant(1.1): Call to &{$^H{float}} did not return a defined value at - line 3, at end of line
229 Execution of - aborted due to compilation errors.
231 # NAME Binary constant overloading returning undef
233 BEGIN { overload::constant binary => sub {} }
236 Constant(0x1): Call to &{$^H{binary}} did not return a defined value at - line 3, at end of line
237 Execution of - aborted due to compilation errors.
239 # NAME String constant overloading returning undef
241 BEGIN { overload::constant q => sub {} }
242 '1', "1$_", tr"a"", s""a"
244 Constant(q): Call to &{$^H{q}} did not return a defined value at - line 3, near "'1'"
245 Constant(qq): Call to &{$^H{q}} did not return a defined value at - line 3, within string
246 Constant(tr): Call to &{$^H{q}} did not return a defined value at - line 3, within string
247 Constant(s): Call to &{$^H{q}} did not return a defined value at - line 3, within string
248 Execution of - aborted due to compilation errors.
250 # NAME Regexp constant overloading returning undef
252 BEGIN { overload::constant qr => sub {} }
255 Constant(qq): Call to &{$^H{qr}} did not return a defined value at - line 3, within pattern
256 Execution of - aborted due to compilation errors.
258 # NAME Regexp constant overloading returning undef
260 BEGIN { overload::constant qr => sub {} }
263 Constant(q): Call to &{$^H{qr}} did not return a defined value at - line 3, within pattern
264 Execution of - aborted due to compilation errors.
266 # NAME Failed constant overloading should not cause a double free
268 BEGIN { overload::constant q => sub {}; undef *^H }
280 Too many arguments for undef operator at - line 3, near "2)"
281 Too many arguments for undef operator at - line 4, near "2)"
282 Too many arguments for undef operator at - line 5, near "2)"
283 Too many arguments for undef operator at - line 6, near "2)"
284 Too many arguments for undef operator at - line 7, near "2)"
285 Too many arguments for undef operator at - line 8, near "2)"
286 Too many arguments for undef operator at - line 9, near "2)"
287 Too many arguments for undef operator at - line 10, near "2)"
288 Too many arguments for undef operator at - line 11, near "2)"
289 Constant(q) unknown at - line 12, near ""a""
290 - has too many errors.
292 # NAME Bad name after ' (with other helpful messages)
306 Bareword found where operator expected at - line 9, near "isa => 'Int"
307 (Might be a runaway multi-line '' string starting on line 4)
308 (Do you need to predeclare isa?)
309 Bad name after Int' at - line 9.
311 # NAME Bad name after :: (with other helpful messages)
320 isa => "Foo::$subpackage",
325 Bareword found where operator expected at - line 9, near "isa => "Foo"
326 (Might be a runaway multi-line "" string starting on line 4)
327 (Do you need to predeclare isa?)
328 Bad name after Foo:: at - line 9.
330 # NAME Unterminated delimiter for here document
333 Unterminated delimiter for here document at - line 1.
335 # NAME my (our $x) errors
338 Can't redeclare "our" in "my" at - line 1, near "(our"
339 Execution of - aborted due to compilation errors.
341 # NAME our (my $x) errors
344 Can't redeclare "my" in "our" at - line 1, near "(my"
345 Execution of - aborted due to compilation errors.
347 # NAME state (my $x) errors
351 Can't redeclare "my" in "state" at - line 2, near "(my"
352 Execution of - aborted due to compilation errors.
354 # NAME our (state $x) errors
358 Can't redeclare "state" in "our" at - line 2, near "(state"
359 Execution of - aborted due to compilation errors.
361 # NAME my (my $x) errors
364 Can't redeclare "my" in "my" at - line 1, near "(my"
365 Execution of - aborted due to compilation errors.
367 # NAME our (our $x) errors
368 our ($x, our($y), $z);
370 Can't redeclare "our" in "our" at - line 1, near ", our"
371 Execution of - aborted due to compilation errors.
373 # NAME state (state $x) errors
375 state ($x, $y, state $z);
377 Can't redeclare "state" in "state" at - line 2, near ", state"
378 Execution of - aborted due to compilation errors.
380 # NAME BEGIN <> [perl #125341]
383 Illegal declaration of subroutine BEGIN at - line 1.
385 # NAME multiple conflict markers
386 <<<<<<< yours:sample.txt
390 >>>>>>> theirs:sample.txt
392 Version control conflict marker at - line 1, near "<<<<<<<"
393 Version control conflict marker at - line 3, near "======="
394 Version control conflict marker at - line 5, near ">>>>>>>"
395 Execution of - aborted due to compilation errors.
397 # NAME (Might be a runaway multi-line...) with Latin-1 delimiters in utf8
398 BEGIN { binmode STDERR, ':utf8' }
403 syntax error at - line 4, near "« time"
404 (Might be a runaway multi-line «« string starting on line 3)
405 Execution of - aborted due to compilation errors.
407 # NAME (Might be a runaway multi-line...) with non-Latin-1 delimiters
408 BEGIN { binmode STDERR, ':utf8' }
413 syntax error at - line 4, near "ϡ time"
414 (Might be a runaway multi-line ϡϡ string starting on line 3)
415 Execution of - aborted due to compilation errors.
417 # NAME tr/// handling of mis-formatted \o characters
418 # may only fail with ASAN
421 Missing braces on \o{} at - line 2, within string
422 Execution of - aborted due to compilation errors.
428 Use of bare << to mean <<"" is forbidden at - line 1.
433 Use of bare << to mean <<"" is forbidden at - line 1.
439 Use of bare << to mean <<"" is forbidden at - line 1.
441 # NAME incomplete floating point decimal exponent (#131725)
444 Bareword found where operator expected at - line 1, near "1e"
445 (Missing operator before e?)
446 Number found where operator expected at - line 1, near "--5"
447 (Missing operator before 5?)
448 syntax error at - line 1, near "1e"
449 Execution of - aborted due to compilation errors.
451 # NAME signature with non-"=" assignop #131777
452 use feature 'signatures';
453 no warnings 'experimental::signatures';
456 Illegal operator following parameter in a subroutine signature at - line 3, near "($a += 1"
457 syntax error at - line 3, near "($a += 1"
458 Execution of - aborted due to compilation errors.
460 # NAME tr/// range with empty \N{} at the start
463 Unknown charname '' at - line 1, within string
464 Execution of - aborted due to compilation errors.
466 # NAME octal fp with non-octal digits after the decimal point
470 Bareword found where operator expected at - line 2, near "8p0"
471 (Missing operator before p0?)
472 syntax error at - line 2, near "8p0"
473 Execution of - aborted due to compilation errors.
475 # NAME binary fp with non-binary digits after the decimal point
479 Bareword found where operator expected at - line 2, near "2p0"
480 (Missing operator before p0?)
481 syntax error at - line 2, near "2p0"
482 Execution of - aborted due to compilation errors.
484 # NAME dump() must be written as CORE::dump() as of Perl 5.30
489 dump() must be written as CORE::dump() as of Perl 5.30 at - line 2.
491 # NAME check Prototype not terminated includes line number (133524)
495 Prototype not terminated at - line 2.
497 # NAME [perl #132158] format with syntax errors
503 syntax error at - line 4, next token ???
504 Execution of - aborted due to compilation errors.
506 # NAME [perl #134045] incomplete hex number
511 Number found where operator expected at - line 1, near "x 2"
512 (Do you need to predeclare x?)
513 Bareword found where operator expected at - line 2, near "0xx"
514 (Missing operator before xx?)
515 Number found where operator expected at - line 2, near "xx 2"
516 (Do you need to predeclare xx?)
517 Bareword found where operator expected at - line 3, near "0x_"
518 (Missing operator before x_?)
519 syntax error at - line 1, near "x 2"
520 Execution of - aborted due to compilation errors.
522 # NAME [perl #130585] close paren in subparse
525 syntax error at - line 1, near "})"
526 Execution of - aborted due to compilation errors.
528 # NAME [perl #130585] close paren in subparse - a few more tests
530 qq!$x\U $z[0] $y{a}\E $z[1]!;
533 syntax error at - line 3, near ")("
534 Execution of - aborted due to compilation errors.