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 qw//
76 Can't find string terminator "/" anywhere before EOF at - line 1.
78 # NAME Unterminated q//
81 Can't find string terminator "/" anywhere before EOF at - line 1.
83 # NAME Unterminated ''
86 Can't find string terminator "'" anywhere before EOF at - line 1.
91 Missing right brace on \N{} or unescaped left brace after \N at - line 1, within pattern
92 Execution of - aborted due to compilation errors.
94 # NAME map{for our *a...
95 map{for our *a (1..10) {$_.=$x}}
97 Missing $ on loop variable at - line 1.
99 # NAME Missing name in "my sub"
100 use feature 'lexical_subs'; my sub;
102 Missing name in "my sub" at - line 1.
104 # NAME Missing name in "our sub"
105 use feature 'lexical_subs'; our sub;
107 Missing name in "our sub" at - line 1.
109 # NAME Missing name in "state sub"
113 Missing name in "state sub" at - line 2.
115 # NAME my sub pack::foo
116 use feature 'lexical_subs', 'state';
120 "my" subroutine &foo::bar can't be in a package at - line 2, near "my sub foo::bar"
121 "state" subroutine &foo::bear can't be in a package at - line 3, near "state sub foo::bear"
122 Execution of - aborted due to compilation errors.
124 # NAME Integer constant overloading returning undef
126 BEGIN { overload::constant integer => sub {}; undef *^H }
129 Constant(1) unknown at - line 3, at end of line
130 Execution of - aborted due to compilation errors.
132 # NAME Float constant overloading returning undef
134 BEGIN { overload::constant float => sub {}; undef *^H }
137 Constant(1.1) unknown at - line 3, at end of line
138 Execution of - aborted due to compilation errors.
140 # NAME Binary constant overloading returning undef
142 BEGIN { overload::constant binary => sub {}; undef *^H }
145 Constant(0x1) unknown at - line 3, at end of line
146 Execution of - aborted due to compilation errors.
148 # NAME String constant overloading returning undef
150 BEGIN { overload::constant q => sub {}; undef *^H }
151 '1', "1$_", tr"a"", s""a"
153 Constant(q) unknown at - line 3, near "'1'"
154 Constant(qq) unknown at - line 3, within string
155 Constant(tr) unknown at - line 3, within string
156 Constant(s) unknown at - line 3, within string
157 Execution of - aborted due to compilation errors.
159 # NAME Regexp constant overloading when *^H is undefined
161 BEGIN { overload::constant qr => sub {}; undef *^H }
164 Constant(qq) unknown at - line 3, within pattern
165 Constant(q) unknown at - line 3, within pattern
166 Execution of - aborted due to compilation errors.
168 # NAME \N{...} when charnames fails to load but without an error
169 # SKIP ? exists $ENV{PERL_UNICODE} ? "Unreliable under some PERL_UNICODE settings" : 0
170 BEGIN { ++$_ for @INC{"charnames.pm","_charnames.pm"} }
173 Constant(\N{a}) unknown at - line 2, within string
174 Execution of - aborted due to compilation errors.
176 # NAME Integer constant overloading returning undef
178 BEGIN { overload::constant integer => sub {} }
181 Constant(1): Call to &{$^H{integer}} did not return a defined value at - line 3, at end of line
182 Execution of - aborted due to compilation errors.
184 # NAME Float constant overloading returning undef
186 BEGIN { overload::constant float => sub {} }
189 Constant(1.1): Call to &{$^H{float}} did not return a defined value at - line 3, at end of line
190 Execution of - aborted due to compilation errors.
192 # NAME Binary constant overloading returning undef
194 BEGIN { overload::constant binary => sub {} }
197 Constant(0x1): Call to &{$^H{binary}} did not return a defined value at - line 3, at end of line
198 Execution of - aborted due to compilation errors.
200 # NAME String constant overloading returning undef
202 BEGIN { overload::constant q => sub {} }
203 '1', "1$_", tr"a"", s""a"
205 Constant(q): Call to &{$^H{q}} did not return a defined value at - line 3, near "'1'"
206 Constant(qq): Call to &{$^H{q}} did not return a defined value at - line 3, within string
207 Constant(tr): Call to &{$^H{q}} did not return a defined value at - line 3, within string
208 Constant(s): Call to &{$^H{q}} did not return a defined value at - line 3, within string
209 Execution of - aborted due to compilation errors.
211 # NAME Regexp constant overloading returning undef
213 BEGIN { overload::constant qr => sub {} }
216 Constant(qq): Call to &{$^H{qr}} did not return a defined value at - line 3, within pattern
217 Constant(q): Call to &{$^H{qr}} did not return a defined value at - line 3, within pattern
218 Execution of - aborted due to compilation errors.
220 # NAME Failed constant overloading should not cause a double free
222 BEGIN { overload::constant q => sub {}; undef *^H }
234 Too many arguments for undef operator at - line 3, near "2)"
235 Too many arguments for undef operator at - line 4, near "2)"
236 Too many arguments for undef operator at - line 5, near "2)"
237 Too many arguments for undef operator at - line 6, near "2)"
238 Too many arguments for undef operator at - line 7, near "2)"
239 Too many arguments for undef operator at - line 8, near "2)"
240 Too many arguments for undef operator at - line 9, near "2)"
241 Too many arguments for undef operator at - line 10, near "2)"
242 Too many arguments for undef operator at - line 11, near "2)"
243 Constant(q) unknown at - line 12, near ""a""
244 - has too many errors.
246 # NAME Unterminated delimiter for here document
249 Unterminated delimiter for here document at - line 1.
251 # NAME my (our $x) errors
254 Can't redeclare "our" in "my" at - line 1, at end of line
255 Execution of - aborted due to compilation errors.
257 # NAME our (my $x) errors
260 Can't redeclare "my" in "our" at - line 1, at end of line
261 Execution of - aborted due to compilation errors.
263 # NAME state (my $x) errors
267 Can't redeclare "my" in "state" at - line 2, at end of line
268 Execution of - aborted due to compilation errors.
270 # NAME our (state $x) errors
274 Can't redeclare "state" in "our" at - line 2, at end of line
275 Execution of - aborted due to compilation errors.
277 # NAME my (my $x) errors
280 Can't redeclare "my" in "my" at - line 1, at end of line
281 Execution of - aborted due to compilation errors.
283 # NAME our (our $x) errors
284 our ($x, our($y), $z);
286 Can't redeclare "our" in "our" at - line 1, near ", "
287 Execution of - aborted due to compilation errors.
289 # NAME state (state $x) errors
291 state ($x, $y, state $z);
293 Can't redeclare "state" in "state" at - line 2, near ", "
294 Execution of - aborted due to compilation errors.
296 # NAME BEGIN <> [perl #125341]
299 Illegal declaration of subroutine BEGIN at - line 1.