Debian Codegraph @

upstream/opensuse-tumbleweed/man1/perldiag.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERLDIAG 1"
61 .TH PERLDIAG 1 2026-03-09 "perl v5.42.1" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perldiag \- various Perl diagnostics
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 These messages are classified as follows (listed in increasing order of
71 desperation):
72 .PP
73 .Vb 7
74 \& (W) A warning (optional).
75 \& (D) A deprecation (enabled by default).
76 \& (S) A severe warning (enabled by default).
77 \& (F) A fatal error (trappable).
78 \& (P) An internal error you should never see (trappable).
79 \& (X) A very fatal error (nontrappable).
80 \& (A) An alien error message (not generated by Perl).
81 .Ve
82 .PP
83 The majority of messages from the first three classifications above
84 (W, D & S) can be controlled using the \f(CW\*(C`warnings\*(C'\fR pragma.
85 .PP
86 If a message can be controlled by the \f(CW\*(C`warnings\*(C'\fR pragma, its warning
87 category is included with the classification letter in the description
88 below. E.g. \f(CW\*(C`(W closed)\*(C'\fR means a warning in the \f(CW\*(C`closed\*(C'\fR category.
89 .PP
90 Optional warnings are enabled by using the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-w\fR
91 and \fB\-W\fR switches. Warnings may be captured by setting \f(CW$SIG{_\|_WARN_\|_}\fR
92 to a reference to a routine that will be called on each warning instead
93 of printing it. See perlvar.
94 .PP
95 Severe warnings are always enabled, unless they are explicitly disabled
96 with the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-X\fR switch.
97 .PP
98 Trappable errors may be trapped using the eval operator. See
99 "eval" in perlfunc. In almost all cases, warnings may be selectively
100 disabled or promoted to fatal errors using the \f(CW\*(C`warnings\*(C'\fR pragma.
101 See warnings.
102 .PP
103 The messages are in alphabetical order, without regard to upper or
104 lower\-case. Some of these messages are generic. Spots that vary are
105 denoted with a \f(CW%s\fR or other printf\-style escape. These escapes are
106 ignored by the alphabetical order, as are all characters other than
107 letters. To look up your message, just ignore anything that is not a
108 letter.
109 .IP "_\|_CLASS_\|_ is experimental" 4
110 .IX Item "__CLASS__ is experimental"
111 (S experimental::class) This warning is emitted if you use the \f(CW\*(C`_\|_CLASS_\|_\*(C'\fR
112 keyword of \f(CW\*(C`use feature \*(Aqclass\*(Aq\*(C'\fR. This keyword is currently
113 experimental and its behaviour may change in future releases of Perl.
114 .ie n .IP "\fBaccept()\fR on closed socket %s" 4
115 .el .IP "\fBaccept()\fR on closed socket \f(CW%s\fR" 4
116 .IX Item "accept() on closed socket %s"
117 (W closed) You tried to do an accept on a closed socket. Did you forget
118 to check the return value of your \fBsocket()\fR call? See
119 "accept" in perlfunc.
120 .IP "ADJUST is experimental" 4
121 .IX Item "ADJUST is experimental"
122 (S experimental::class) This warning is emitted if you use the \f(CW\*(C`ADJUST\*(C'\fR
123 keyword of \f(CW\*(C`use feature \*(Aqclass\*(Aq\*(C'\fR. This keyword is currently
124 experimental and its behaviour may change in future releases of Perl.
125 .IP "Aliasing via reference is experimental" 4
126 .IX Item "Aliasing via reference is experimental"
127 (S experimental::refaliasing) This warning is emitted if you use
128 a reference constructor on the left\-hand side of an assignment to
129 alias one variable to another. Simply suppress the warning if you
130 want to use the feature, but know that in doing so you are taking
131 the risk of using an experimental feature which may change or be
132 removed in a future Perl version:
133 .Sp
134 .Vb 3
135 \& no warnings "experimental::refaliasing";
136 \& use feature "refaliasing";
137 \& \e$x = \e$y;
138 .Ve
139 .IP "all is experimental" 4
140 .IX Item "all is experimental"
141 (S experimental::keyword_all) This warning is emitted if you use the
142 \&\f(CW\*(C`all\*(C'\fR keyword of \f(CW\*(C`use feature \*(Aqkeyword_all\*(Aq\*(C'\fR. This keyword is currently
143 experimental and its behaviour may change in future releases of Perl.
144 .ie n .IP "\*(Aq%c\*(Aq allowed only after types %s in %s" 4
145 .el .IP "\*(Aq%c\*(Aq allowed only after types \f(CW%s\fR in \f(CW%s\fR" 4
146 .IX Item "'%c' allowed only after types %s in %s"
147 (F) The modifiers \*(Aq!\*(Aq, \*(Aq<\*(Aq and \*(Aq>\*(Aq are allowed in \fBpack()\fR or \fBunpack()\fR only
148 after certain types. See "pack" in perlfunc.
149 .IP "alpha\->\fBnumify()\fR is lossy" 4
150 .IX Item "alpha->numify() is lossy"
151 (W numeric) An alpha version can not be numified without losing
152 information.
153 .IP "Ambiguous call resolved as CORE::%s(), qualify as such or use &" 4
154 .IX Item "Ambiguous call resolved as CORE::%s(), qualify as such or use &"
155 (W ambiguous) A subroutine you have declared has the same name as a Perl
156 keyword, and you have used the name without qualification for calling
157 one or the other. Perl decided to call the builtin because the
158 subroutine is not imported.
159 .Sp
160 To force interpretation as a subroutine call, either put an ampersand
161 before the subroutine name, or qualify the name with its package.
162 Alternatively, you can import the subroutine (or pretend that it\*(Aqs
163 imported with the \f(CW\*(C`use subs\*(C'\fR pragma).
164 .Sp
165 To silently interpret it as the Perl operator, use the \f(CW\*(C`CORE::\*(C'\fR prefix
166 on the operator (e.g. \f(CWCORE::log($x)\fR) or declare the subroutine
167 to be an object method (see "Subroutine Attributes" in perlsub or
168 attributes).
169 .IP "Ambiguous range in transliteration operator" 4
170 .IX Item "Ambiguous range in transliteration operator"
171 (F) You wrote something like \f(CW\*(C`tr/a\-z\-0//\*(C'\fR which doesn\*(Aqt mean anything at
172 all. To include a \f(CW\*(C`\-\*(C'\fR character in a transliteration, put it either
173 first or last. (In the past, \f(CW\*(C`tr/a\-z\-0//\*(C'\fR was synonymous with
174 \&\f(CW\*(C`tr/a\-y//\*(C'\fR, which was probably not what you would have expected.)
175 .ie n .IP "Ambiguous use of %s resolved as %s" 4
176 .el .IP "Ambiguous use of \f(CW%s\fR resolved as \f(CW%s\fR" 4
177 .IX Item "Ambiguous use of %s resolved as %s"
178 (S ambiguous) You said something that may not be interpreted the way
179 you thought. Normally it\*(Aqs pretty easy to disambiguate it by supplying
180 a missing quote, operator, parenthesis pair or declaration.
181 .IP "Ambiguous use of \-%s resolved as \-&%s()" 4
182 .IX Item "Ambiguous use of -%s resolved as -&%s()"
183 (S ambiguous) You wrote something like \f(CW\*(C`\-foo\*(C'\fR, which might be the
184 string \f(CW"\-foo"\fR, or a call to the function \f(CW\*(C`foo\*(C'\fR, negated. If you meant
185 the string, just write \f(CW"\-foo"\fR. If you meant the function call,
186 write \f(CW\*(C`\-foo()\*(C'\fR.
187 .ie n .IP "Ambiguous use of %c resolved as operator %c" 4
188 .el .IP "Ambiguous use of \f(CW%c\fR resolved as operator \f(CW%c\fR" 4
189 .IX Item "Ambiguous use of %c resolved as operator %c"
190 (S ambiguous) \f(CW\*(C`%\*(C'\fR, \f(CW\*(C`&\*(C'\fR, and \f(CW\*(C`*\*(C'\fR are both infix operators (modulus,
191 bitwise and, and multiplication) \fIand\fR initial special characters
192 (denoting hashes, subroutines and typeglobs), and you said something
193 like \f(CW\*(C`*foo * foo\*(C'\fR that might be interpreted as either of them. We
194 assumed you meant the infix operator, but please try to make it more
195 clear \-\- in the example given, you might write \f(CW\*(C`*foo * foo()\*(C'\fR if you
196 really meant to multiply a glob by the result of calling a function.
197 .ie n .IP "Ambiguous use of %c{%s} resolved to %c%s" 4
198 .el .IP "Ambiguous use of \f(CW%c\fR{%s} resolved to \f(CW%c\fR%s" 4
199 .IX Item "Ambiguous use of %c{%s} resolved to %c%s"
200 (W ambiguous) You wrote something like \f(CW\*(C`@{foo}\*(C'\fR, which might be
201 asking for the variable \f(CW@foo\fR, or it might be calling a function
202 named foo, and dereferencing it as an array reference. If you wanted
203 the variable, you can just write \f(CW@foo\fR. If you wanted to call the
204 function, write \f(CW\*(C`@{foo()}\*(C'\fR ... or you could just not have a variable
205 and a function with the same name, and save yourself a lot of trouble.
206 .ie n .IP "Ambiguous use of %c{%s[...]} resolved to %c%s[...]" 4
207 .el .IP "Ambiguous use of \f(CW%c\fR{%s[...]} resolved to \f(CW%c\fR%s[...]" 4
208 .IX Item "Ambiguous use of %c{%s[...]} resolved to %c%s[...]"
209 .PD 0
210 .ie n .IP "Ambiguous use of %c{%s{...}} resolved to %c%s{...}" 4
211 .el .IP "Ambiguous use of \f(CW%c\fR{%s{...}} resolved to \f(CW%c\fR%s{...}" 4
212 .IX Item "Ambiguous use of %c{%s{...}} resolved to %c%s{...}"
213 .PD
214 (W ambiguous) You wrote something like \f(CW\*(C`${foo[2]}\*(C'\fR (where foo represents
215 the name of a Perl keyword), which might be looking for element number
216 2 of the array named \f(CW@foo\fR, in which case please write \f(CW$foo[2]\fR, or you
217 might have meant to pass an anonymous arrayref to the function named
218 foo, and then do a scalar deref on the value it returns. If you meant
219 that, write \f(CW\*(C`${foo([2])}\*(C'\fR.
220 .Sp
221 In regular expressions, the \f(CW\*(C`${foo[2]}\*(C'\fR syntax is sometimes necessary
222 to disambiguate between array subscripts and character classes.
223 \&\f(CW\*(C`/$length[2345]/\*(C'\fR, for instance, will be interpreted as \f(CW$length\fR followed
224 by the character class \f(CW\*(C`[2345]\*(C'\fR. If an array subscript is what you
225 want, you can avoid the warning by changing \f(CW\*(C`/${length[2345]}/\*(C'\fR to the
226 unsightly \f(CW\*(C`/${\e$length[2345]}/\*(C'\fR, by renaming your array to something
227 that does not coincide with a built\-in keyword, or by simply turning
228 off warnings with \f(CW\*(C`no warnings \*(Aqambiguous\*(Aq;\*(C'\fR.
229 .IP "\*(Aq|\*(Aq and \*(Aq<\*(Aq may not both be specified on command line" 4
230 .IX Item "'|' and '<' may not both be specified on command line"
231 (F) An error peculiar to VMS. Perl does its own command line
232 redirection, and found that STDIN was a pipe, and that you also tried to
233 redirect STDIN using \*(Aq<\*(Aq. Only one STDIN stream to a customer, please.
234 .IP "\*(Aq|\*(Aq and \*(Aq>\*(Aq may not both be specified on command line" 4
235 .IX Item "'|' and '>' may not both be specified on command line"
236 (F) An error peculiar to VMS. Perl does its own command line
237 redirection, and thinks you tried to redirect stdout both to a file and
238 into a pipe to another command. You need to choose one or the other,
239 though nothing\*(Aqs stopping you from piping into a program or Perl script
240 which \*(Aqsplits\*(Aq output into two streams, such as
241 .Sp
242 .Vb 6
243 \& open(OUT,">$ARGV[0]") or die "Can\*(Aqt write to $ARGV[0]: $!";
244 \& while (<STDIN>) {
245 \& print;
246 \& print OUT;
247 \& }
248 \& close OUT;
249 .Ve
250 .IP "any is experimental" 4
251 .IX Item "any is experimental"
252 (S experimental::keyword_any) This warning is emitted if you use the
253 \&\f(CW\*(C`any\*(C'\fR keyword of \f(CW\*(C`use feature \*(Aqkeyword_any\*(Aq\*(C'\fR. This keyword is currently
254 experimental and its behaviour may change in future releases of Perl.
255 .ie n .IP "Applying %s to %s will act on scalar(%s)" 4
256 .el .IP "Applying \f(CW%s\fR to \f(CW%s\fR will act on scalar(%s)" 4
257 .IX Item "Applying %s to %s will act on scalar(%s)"
258 (W misc) The pattern match (\f(CW\*(C`//\*(C'\fR), substitution (\f(CW\*(C`s///\*(C'\fR), and
259 transliteration (\f(CW\*(C`tr///\*(C'\fR) operators work on scalar values. If you apply
260 one of them to an array or a hash, it will convert the array or hash to
261 a scalar value (the length of an array, or the population info of a
262 hash) and then work on that scalar value. This is probably not what
263 you meant to do. See "grep" in perlfunc and "map" in perlfunc for
264 alternatives.
265 .IP "Arg too short for msgsnd" 4
266 .IX Item "Arg too short for msgsnd"
267 (F) \fBmsgsnd()\fR requires a string at least as long as sizeof(long).
268 .IP "Argument ""%s"" isn\*(Aqt numeric%s" 4
269 .IX Item "Argument ""%s"" isn't numeric%s"
270 (W numeric) The indicated string was fed as an argument to an operator
271 that expected a numeric value instead. If you\*(Aqre fortunate the message
272 will identify which operator was so unfortunate.
273 .Sp
274 Note that for the \f(CW\*(C`Inf\*(C'\fR and \f(CW\*(C`NaN\*(C'\fR (infinity and not\-a\-number) the
275 definition of "numeric" is somewhat unusual: the strings themselves
276 (like "Inf") are considered numeric, and anything following them is
277 considered non\-numeric.
278 .IP "Argument list not closed for PerlIO layer ""%s""" 4
279 .IX Item "Argument list not closed for PerlIO layer ""%s"""
280 (W layer) When pushing a layer with arguments onto the Perl I/O
281 system you forgot the ) that closes the argument list. (Layers
282 take care of transforming data between external and internal
283 representations.) Perl stopped parsing the layer list at this
284 point and did not attempt to push this layer. If your program
285 didn\*(Aqt explicitly request the failing operation, it may be the
286 result of the value of the environment variable PERLIO.
287 .IP "Argument ""%s"" treated as 0 in increment (++)" 4
288 .IX Item "Argument ""%s"" treated as 0 in increment (++)"
289 (W numeric) The indicated string was fed as an argument to the \f(CW\*(C`++\*(C'\fR
290 operator which expects either a number or a string matching
291 \&\f(CW\*(C`/^[a\-zA\-Z]*[0\-9]*\ez/\*(C'\fR. See "Auto\-increment and
292 Auto\-decrement" in perlop for details.
293 .IP "Array passed to stat will be coerced to a scalar%s" 4
294 .IX Item "Array passed to stat will be coerced to a scalar%s"
295 (W syntax) You called \fBstat()\fR on an array, but the array will be
296 coerced to a scalar \- the number of elements in the array.
297 .IP "A signature parameter must start with \*(Aq$\*(Aq, \*(Aq@\*(Aq or \*(Aq%\*(Aq" 4
298 .IX Item "A signature parameter must start with '$', '@' or '%'"
299 (F) Each subroutine signature parameter declaration must start with a valid
300 sigil; for example:
301 .Sp
302 .Vb 1
303 \& sub foo ($x, $, $y = 1, @z) {}
304 .Ve
305 .IP "A slurpy parameter may not have a default value" 4
306 .IX Item "A slurpy parameter may not have a default value"
307 (F) Only scalar subroutine signature parameters may have a default value;
308 for example:
309 .Sp
310 .Vb 3
311 \& sub foo ($x = 1) {} # legal
312 \& sub foo (@x = (1)) {} # invalid
313 \& sub foo (%x = (a => b)) {} # invalid
314 .Ve
315 .ie n .IP "assertion botched: %s" 4
316 .el .IP "assertion botched: \f(CW%s\fR" 4
317 .IX Item "assertion botched: %s"
318 (X) The malloc package that comes with Perl had an internal failure.
319 .ie n .IP "Assertion %s failed: file ""%s"", line %d" 4
320 .el .IP "Assertion \f(CW%s\fR failed: file ""%s"", line \f(CW%d\fR" 4
321 .IX Item "Assertion %s failed: file ""%s"", line %d"
322 (X) A general assertion failed. The file in question must be examined.
323 .IP "Assigned value is not a reference" 4
324 .IX Item "Assigned value is not a reference"
325 (F) You tried to assign something that was not a reference to an lvalue
326 reference (e.g., \f(CW\*(C`\e$x = $y\*(C'\fR). If you meant to make \f(CW$x\fR an alias to \f(CW$y\fR, use
327 \&\f(CW\*(C`\e$x = \e$y\*(C'\fR.
328 .ie n .IP "Assigned value is not %s reference" 4
329 .el .IP "Assigned value is not \f(CW%s\fR reference" 4
330 .IX Item "Assigned value is not %s reference"
331 (F) You tried to assign a reference to a reference constructor, but the
332 two references were not of the same type. You cannot alias a scalar to
333 an array, or an array to a hash; the two types must match.
334 .Sp
335 .Vb 4
336 \& \e$x = \e@y; # error
337 \& \e@x = \e%y; # error
338 \& $y = [];
339 \& \e$x = $y; # error; did you mean \e$y?
340 .Ve
341 .IP "Assigning non\-zero to $[ is no longer possible" 4
342 .IX Item "Assigning non-zero to $[ is no longer possible"
343 (F) When the "array_base" feature is disabled
344 (e.g., and under \f(CW\*(C`use v5.16;\*(C'\fR, and as of Perl 5.30)
345 the special variable \f(CW$[\fR, which is deprecated, is now a fixed zero value.
346 .IP "Assignment to both a list and a scalar" 4
347 .IX Item "Assignment to both a list and a scalar"
348 (F) If you assign to a conditional operator, the 2nd and 3rd arguments
349 must either both be scalars or both be lists. Otherwise Perl won\*(Aqt
350 know which context to supply to the right side.
351 .ie n .IP "Assuming NOT a POSIX class since %s in regex; marked by <\-\-\ HERE in m/%s/" 4
352 .el .IP "Assuming NOT a POSIX class since \f(CW%s\fR in regex; marked by <\-\-\ HERE in m/%s/" 4
353 .IX Item "Assuming NOT a POSIX class since %s in regex; marked by <-- HERE in m/%s/"
354 (W regexp) You had something like these:
355 .Sp
356 .Vb 2
357 \& [[:alnum]]
358 \& [[:digit:xyz]
359 .Ve
360 .Sp
361 They look like they might have been meant to be the POSIX classes
362 \&\f(CW\*(C`[:alnum:]\*(C'\fR or \f(CW\*(C`[:digit:]\*(C'\fR. If so, they should be written:
363 .Sp
364 .Vb 2
365 \& [[:alnum:]]
366 \& [[:digit:]xyz]
367 .Ve
368 .Sp
369 Since these aren\*(Aqt legal POSIX class specifications, but are legal
370 bracketed character classes, Perl treats them as the latter. In the
371 first example, it matches the characters \f(CW":"\fR, \f(CW"["\fR, \f(CW"a"\fR, \f(CW"l"\fR,
372 \&\f(CW"m"\fR, \f(CW"n"\fR, and \f(CW"u"\fR.
373 .Sp
374 If these weren\*(Aqt meant to be POSIX classes, this warning message is
375 spurious, and can be suppressed by reordering things, such as
376 .Sp
377 .Vb 1
378 \& [[al:num]]
379 .Ve
380 .Sp
381 or
382 .Sp
383 .Vb 1
384 \& [[:munla]]
385 .Ve
386 .IP "<> at require\-statement should be quotes" 4
387 .IX Item "<> at require-statement should be quotes"
388 (F) You wrote \f(CW\*(C`require <file>\*(C'\fR when you should have written
389 \&\f(CW\*(C`require \*(Aqfile\*(Aq\*(C'\fR.
390 .IP "Attempt to access disallowed key \*(Aq%s\*(Aq in a restricted hash" 4
391 .IX Item "Attempt to access disallowed key '%s' in a restricted hash"
392 (F) The failing code has attempted to get or set a key which is not in
393 the current set of allowed keys of a restricted hash.
394 .IP "Attempt to bless into a freed package" 4
395 .IX Item "Attempt to bless into a freed package"
396 (F) You wrote \f(CW\*(C`bless $foo\*(C'\fR with one argument after somehow causing
397 the current package to be freed. Perl cannot figure out what to
398 do, so it throws up its hands in despair.
399 .IP "Attempt to bless into a class" 4
400 .IX Item "Attempt to bless into a class"
401 (F) You are attempting to call \f(CW\*(C`bless\*(C'\fR with a package name that is a
402 new\-style \f(CW\*(C`class\*(C'\fR. This is not necessary, as instances created by the
403 constructor are already in the correct class. Instances cannot be created
404 by other means, such as \f(CW\*(C`bless\*(C'\fR.
405 .IP "Attempt to bless into a reference" 4
406 .IX Item "Attempt to bless into a reference"
407 (F) The CLASSNAME argument to the \fBbless()\fR operator is expected to be
408 the name of the package to bless the resulting object into. You\*(Aqve
409 supplied instead a reference to something: perhaps you wrote
410 .Sp
411 .Vb 1
412 \& bless $self, $proto;
413 .Ve
414 .Sp
415 when you intended
416 .Sp
417 .Vb 1
418 \& bless $self, ref($proto) || $proto;
419 .Ve
420 .Sp
421 If you actually want to bless into the stringified version
422 of the reference supplied, you need to stringify it yourself, for
423 example by:
424 .Sp
425 .Vb 1
426 \& bless $self, "$proto";
427 .Ve
428 .IP "Attempt to clear deleted array" 4
429 .IX Item "Attempt to clear deleted array"
430 (S debugging) An array was assigned to when it was being freed.
431 Freed values are not supposed to be visible to Perl code. This
432 can also happen if XS code calls \f(CW\*(C`av_clear\*(C'\fR from a custom magic
433 callback on the array.
434 .IP "Attempt to delete disallowed key \*(Aq%s\*(Aq from a restricted hash" 4
435 .IX Item "Attempt to delete disallowed key '%s' from a restricted hash"
436 (F) The failing code attempted to delete from a restricted hash a key
437 which is not in its key set.
438 .IP "Attempt to delete readonly key \*(Aq%s\*(Aq from a restricted hash" 4
439 .IX Item "Attempt to delete readonly key '%s' from a restricted hash"
440 (F) The failing code attempted to delete a key whose value has been
441 declared readonly from a restricted hash.
442 .IP "Attempt to free non\-arena SV: 0x%x" 4
443 .IX Item "Attempt to free non-arena SV: 0x%x"
444 (S internal) All SV objects are supposed to be allocated from arenas
445 that will be garbage collected on exit. An SV was discovered to be
446 outside any of those arenas.
447 .IP "Attempt to free nonexistent shared string \*(Aq%s\*(Aq%s" 4
448 .IX Item "Attempt to free nonexistent shared string '%s'%s"
449 (S internal) Perl maintains a reference\-counted internal table of
450 strings to optimize the storage and access of hash keys and other
451 strings. This indicates someone tried to decrement the reference count
452 of a string that can no longer be found in the table.
453 .IP "Attempt to free temp prematurely: SV 0x%x" 4
454 .IX Item "Attempt to free temp prematurely: SV 0x%x"
455 (S debugging) Mortalized values are supposed to be freed by the
456 \&\fBfree_tmps()\fR routine. This indicates that something else is freeing the
457 SV before the \fBfree_tmps()\fR routine gets a chance, which means that the
458 \&\fBfree_tmps()\fR routine will be freeing an unreferenced scalar when it does
459 try to free it.
460 .IP "Attempt to free unreferenced glob pointers" 4
461 .IX Item "Attempt to free unreferenced glob pointers"
462 (S internal) The reference counts got screwed up on symbol aliases.
463 .IP "Attempt to free unreferenced scalar: SV 0x%x" 4
464 .IX Item "Attempt to free unreferenced scalar: SV 0x%x"
465 (S internal) Perl went to decrement the reference count of a scalar to
466 see if it would go to 0, and discovered that it had already gone to 0
467 earlier, and should have been freed, and in fact, probably was freed.
468 This could indicate that \fBSvREFCNT_dec()\fR was called too many times, or
469 that \fBSvREFCNT_inc()\fR was called too few times, or that the SV was
470 mortalized when it shouldn\*(Aqt have been, or that memory has been
471 corrupted.
472 .IP "Attempt to pack pointer to temporary value" 4
473 .IX Item "Attempt to pack pointer to temporary value"
474 (W pack) You tried to pass a temporary value (like the result of a
475 function, or a computed expression) to the "p" \fBpack()\fR template. This
476 means the result contains a pointer to a location that could become
477 invalid anytime, even before the end of the current statement. Use
478 literals or global values as arguments to the "p" \fBpack()\fR template to
479 avoid this warning.
480 .ie n .IP "Attempt to reload %s aborted." 4
481 .el .IP "Attempt to reload \f(CW%s\fR aborted." 4
482 .IX Item "Attempt to reload %s aborted."
483 (F) You tried to load a file with \f(CW\*(C`use\*(C'\fR or \f(CW\*(C`require\*(C'\fR that failed to
484 compile once already. Perl will not try to compile this file again
485 unless you delete its entry from \f(CW%INC\fR. See "require" in perlfunc and
486 "%INC" in perlvar.
487 .IP "Attempt to set length of freed array" 4
488 .IX Item "Attempt to set length of freed array"
489 (W misc) You tried to set the length of an array which has
490 been freed. You can do this by storing a reference to the
491 scalar representing the last index of an array and later
492 assigning through that reference. For example
493 .Sp
494 .Vb 2
495 \& $r = do {my @a; \e$#a};
496 \& $$r = 503
497 .Ve
498 .IP "Attempt to use reference as lvalue in substr" 4
499 .IX Item "Attempt to use reference as lvalue in substr"
500 (W substr) You supplied a reference as the first argument to \fBsubstr()\fR
501 used as an lvalue, which is pretty strange. Perhaps you forgot to
502 dereference it first. See "substr" in perlfunc.
503 .IP "Attribute prototype(%s) discards earlier prototype attribute in same sub" 4
504 .IX Item "Attribute prototype(%s) discards earlier prototype attribute in same sub"
505 (W misc) A sub was declared as sub foo : prototype(A) : prototype(B) {}, for
506 example. Since each sub can only have one prototype, the earlier
507 declaration(s) are discarded while the last one is applied.
508 .IP "av_reify called on tied array" 4
509 .IX Item "av_reify called on tied array"
510 (S debugging) This indicates that something went wrong and Perl got \fIvery\fR
511 confused about \f(CW@_\fR or \f(CW@DB::args\fR being tied.
512 .ie n .IP "Bad arg length for %s, is %u, should be %d" 4
513 .el .IP "Bad arg length for \f(CW%s\fR, is \f(CW%u\fR, should be \f(CW%d\fR" 4
514 .IX Item "Bad arg length for %s, is %u, should be %d"
515 (F) You passed a buffer of the wrong size to one of \fBmsgctl()\fR, \fBsemctl()\fR
516 or \fBshmctl()\fR. In C parlance, the correct sizes are, respectively,
517 sizeof(struct\ msqid_ds\ *), sizeof(struct\ semid_ds\ *), and
518 sizeof(struct\ shmid_ds\ *).
519 .IP "Bad evalled substitution pattern" 4
520 .IX Item "Bad evalled substitution pattern"
521 (F) You\*(Aqve used the \f(CW\*(C`/e\*(C'\fR switch to evaluate the replacement for a
522 substitution, but perl found a syntax error in the code to evaluate,
523 most likely an unexpected right brace \*(Aq}\*(Aq.
524 .ie n .IP "Bad filehandle: %s" 4
525 .el .IP "Bad filehandle: \f(CW%s\fR" 4
526 .IX Item "Bad filehandle: %s"
527 (F) A symbol was passed to something wanting a filehandle, but the
528 symbol has no filehandle associated with it. Perhaps you didn\*(Aqt do an
529 \&\fBopen()\fR, or did it in another package.
530 .IP "Bad \fBfree()\fR ignored" 4
531 .IX Item "Bad free() ignored"
532 (S malloc) An internal routine called \fBfree()\fR on something that had never
533 been \fBmalloc()\fRed in the first place. Mandatory, but can be disabled by
534 setting environment variable \f(CW\*(C`PERL_BADFREE\*(C'\fR to 0.
535 .Sp
536 This message can be seen quite often with DB_File on systems with "hard"
537 dynamic linking, like \f(CW\*(C`AIX\*(C'\fR and \f(CW\*(C`OS/2\*(C'\fR. It is a bug of \f(CW\*(C`Berkeley DB\*(C'\fR
538 which is left unnoticed if \f(CW\*(C`DB\*(C'\fR uses \fIforgiving\fR system \fBmalloc()\fR.
539 .IP "Bad infix plugin result (%zd) \- did not consume entire identifier <%s>" 4
540 .IX Item "Bad infix plugin result (%zd) - did not consume entire identifier <%s>"
541 (F) A plugin using the \f(CW\*(C`PL_infix_plugin\*(C'\fR mechanism to parse an infix
542 keyword consumed part of a named identifier operator name but did not
543 consume all of it. This is not permitted as it leads to fragile parsing
544 results.
545 .IP "Badly placed ()\*(Aqs" 4
546 .IX Item "Badly placed ()'s"
547 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead
548 of Perl. Check the #! line, or manually feed your script into
549 Perl yourself.
550 .ie n .IP "Bad name after %s" 4
551 .el .IP "Bad name after \f(CW%s\fR" 4
552 .IX Item "Bad name after %s"
553 (F) You started to name a symbol by using a package prefix, and then
554 didn\*(Aqt finish the symbol. In particular, you can\*(Aqt interpolate outside
555 of quotes, so
556 .Sp
557 .Vb 2
558 \& $var = \*(Aqmyvar\*(Aq;
559 \& $sym = mypack::$var;
560 .Ve
561 .Sp
562 is not the same as
563 .Sp
564 .Vb 2
565 \& $var = \*(Aqmyvar\*(Aq;
566 \& $sym = "mypack::$var";
567 .Ve
568 .IP "Bad plugin affecting keyword \*(Aq%s\*(Aq" 4
569 .IX Item "Bad plugin affecting keyword '%s'"
570 (F) An extension using the keyword plugin mechanism violated the
571 plugin API.
572 .IP "Bad \fBrealloc()\fR ignored" 4
573 .IX Item "Bad realloc() ignored"
574 (S malloc) An internal routine called \fBrealloc()\fR on something that
575 had never been \fBmalloc()\fRed in the first place. Mandatory, but can
576 be disabled by setting the environment variable \f(CW\*(C`PERL_BADFREE\*(C'\fR to 1.
577 .ie n .IP "Bad symbol for %s" 4
578 .el .IP "Bad symbol for \f(CW%s\fR" 4
579 .IX Item "Bad symbol for %s"
580 (P) An internal request asked to add an entry of the named type to something that
581 wasn\*(Aqt a symbol table entry.
582 .IP "Bad symbol for scalar" 4
583 .IX Item "Bad symbol for scalar"
584 (P) An internal request asked to add a scalar entry to something that
585 wasn\*(Aqt a symbol table entry.
586 .IP "Bareword found in conditional" 4
587 .IX Item "Bareword found in conditional"
588 (W bareword) The compiler found a bareword where it expected a
589 conditional, which often indicates that an || or && was parsed as part
590 of the last argument of the previous construct, for example:
591 .Sp
592 .Vb 1
593 \& open FOO || die;
594 .Ve
595 .Sp
596 It may also indicate a misspelled constant that has been interpreted as
597 a bareword:
598 .Sp
599 .Vb 2
600 \& use constant TYPO => 1;
601 \& if (TYOP) { print "foo" }
602 .Ve
603 .Sp
604 The \f(CW\*(C`strict\*(C'\fR pragma is useful in avoiding such errors.
605 .IP "Bareword in require contains ""%s""" 4
606 .IX Item "Bareword in require contains ""%s"""
607 .PD 0
608 .IP "Bareword in require maps to disallowed filename ""%s""" 4
609 .IX Item "Bareword in require maps to disallowed filename ""%s"""
610 .IP "Bareword in require maps to empty filename" 4
611 .IX Item "Bareword in require maps to empty filename"
612 .PD
613 (F) The bareword form of require has been invoked with a filename which could
614 not have been generated by a valid bareword permitted by the parser. You
615 shouldn\*(Aqt be able to get this error from Perl code, but XS code may throw it
616 if it passes an invalid module name to \f(CW\*(C`Perl_load_module\*(C'\fR.
617 .IP "Bareword in require must not start with a double\-colon: ""%s""" 4
618 .IX Item "Bareword in require must not start with a double-colon: ""%s"""
619 (F) In \f(CW\*(C`require Bare::Word\*(C'\fR, the bareword is not allowed to start with a
620 double\-colon. Write \f(CW\*(C`require ::Foo::Bar\*(C'\fR as \f(CW\*(C`require Foo::Bar\*(C'\fR instead.
621 .IP "Bareword ""%s"" not allowed while ""strict subs"" in use" 4
622 .IX Item "Bareword ""%s"" not allowed while ""strict subs"" in use"
623 (F) With "strict subs" in use, a bareword is only allowed as a
624 subroutine identifier, in curly brackets or to the left of the "=>"
625 symbol. Perhaps you need to predeclare a subroutine?
626 .IP "Bareword ""%s"" refers to nonexistent package" 4
627 .IX Item "Bareword ""%s"" refers to nonexistent package"
628 (W bareword) You used a qualified bareword of the form \f(CW\*(C`Foo::\*(C'\fR, but the
629 compiler saw no other uses of that namespace before that point. Perhaps
630 you need to predeclare a package?
631 .IP "Bareword filehandle ""%s"" not allowed under \*(Aqno feature ""bareword_filehandles""\*(Aq" 4
632 .IX Item "Bareword filehandle ""%s"" not allowed under 'no feature ""bareword_filehandles""'"
633 (F) You attempted to use a bareword filehandle with the
634 \&\f(CW\*(C`bareword_filehandles\*(C'\fR feature disabled.
635 .Sp
636 Only the built\-in handles \f(CW\*(C`STDIN\*(C'\fR, \f(CW\*(C`STDOUT\*(C'\fR, \f(CW\*(C`STDERR\*(C'\fR, \f(CW\*(C`ARGV\*(C'\fR,
637 \&\f(CW\*(C`ARGVOUT\*(C'\fR and \f(CW\*(C`DATA\*(C'\fR can be used with the \f(CW\*(C`bareword_filehandles\*(C'\fR
638 feature disabled.
639 .IP "BEGIN failed\-\-compilation aborted" 4
640 .IX Item "BEGIN failed--compilation aborted"
641 (F) An untrapped exception was raised while executing a BEGIN
642 subroutine. Compilation stops immediately and the interpreter is
643 exited.
644 .IP "BEGIN not safe after errors\-\-compilation aborted" 4
645 .IX Item "BEGIN not safe after errors--compilation aborted"
646 (F) Perl found a \f(CW\*(C`BEGIN {}\*(C'\fR subroutine (or a \f(CW\*(C`use\*(C'\fR directive, which
647 implies a \f(CW\*(C`BEGIN {}\*(C'\fR) after one or more compilation errors had already
648 occurred. Since the intended environment for the \f(CW\*(C`BEGIN {}\*(C'\fR could not
649 be guaranteed (due to the errors), and since subsequent code likely
650 depends on its correct operation, Perl just gave up.
651 .IP "\e%d better written as $%d" 4
652 .IX Item "%d better written as $%d"
653 (W syntax) Outside of patterns, backreferences live on as variables.
654 The use of backslashes is grandfathered on the right\-hand side of a
655 substitution, but stylistically it\*(Aqs better to use the variable form
656 because other Perl programmers will expect it, and it works better if
657 there are more than 9 backreferences.
658 .IP "Binary number > 0b11111111111111111111111111111111 non\-portable" 4
659 .IX Item "Binary number > 0b11111111111111111111111111111111 non-portable"
660 (W portable) The binary number you specified is larger than 2**32\-1
661 (4294967295) and therefore non\-portable between systems. See
662 perlport for more on portability concerns.
663 .ie n .IP "\fBbind()\fR on closed socket %s" 4
664 .el .IP "\fBbind()\fR on closed socket \f(CW%s\fR" 4
665 .IX Item "bind() on closed socket %s"
666 (W closed) You tried to do a bind on a closed socket. Did you forget to
667 check the return value of your \fBsocket()\fR call? See "bind" in perlfunc.
668 .ie n .IP "\fBbinmode()\fR on closed filehandle %s" 4
669 .el .IP "\fBbinmode()\fR on closed filehandle \f(CW%s\fR" 4
670 .IX Item "binmode() on closed filehandle %s"
671 (W unopened) You tried \fBbinmode()\fR on a filehandle that was never opened.
672 Check your control flow and number of arguments.
673 .IP "Bit vector size > 32 non\-portable" 4
674 .IX Item "Bit vector size > 32 non-portable"
675 (W portable) Using bit vector sizes larger than 32 is non\-portable.
676 .ie n .IP "Bizarre copy of %s" 4
677 .el .IP "Bizarre copy of \f(CW%s\fR" 4
678 .IX Item "Bizarre copy of %s"
679 (P) Perl detected an attempt to copy an internal value that is not
680 copiable.
681 .IP "Bizarre SvTYPE [%d]" 4
682 .IX Item "Bizarre SvTYPE [%d]"
683 (P) When starting a new thread or returning values from a thread, Perl
684 encountered an invalid data type.
685 .IP "Both or neither range ends should be Unicode in regex; marked by <\-\-\ HERE in m/%s/" 4
686 .IX Item "Both or neither range ends should be Unicode in regex; marked by <-- HERE in m/%s/"
687 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR or within \f(CW\*(C`(?[...])\*(C'\fR)
688 .Sp
689 In a bracketed character class in a regular expression pattern, you
690 had a range which has exactly one end of it specified using \f(CW\*(C`\eN{}\*(C'\fR, and
691 the other end is specified using a non\-portable mechanism. Perl treats
692 the range as a Unicode range, that is, all the characters in it are
693 considered to be the Unicode characters, and which may be different code
694 points on some platforms Perl runs on. For example, \f(CW\*(C`[\eN{U+06}\-\ex08]\*(C'\fR
695 is treated as if you had instead said \f(CW\*(C`[\eN{U+06}\-\eN{U+08}]\*(C'\fR, that is it
696 matches the characters whose code points in Unicode are 6, 7, and 8.
697 But that \f(CW\*(C`\ex08\*(C'\fR might indicate that you meant something different, so
698 the warning gets raised.
699 .ie n .IP "Buffer overflow in prime_env_iter: %s" 4
700 .el .IP "Buffer overflow in prime_env_iter: \f(CW%s\fR" 4
701 .IX Item "Buffer overflow in prime_env_iter: %s"
702 (W internal) A warning peculiar to VMS. While Perl was preparing to
703 iterate over \f(CW%ENV\fR, it encountered a logical name or symbol definition
704 which was too long, so it was truncated to the string shown.
705 .IP "Built\-in function \*(Aq%s\*(Aq is experimental" 4
706 .IX Item "Built-in function '%s' is experimental"
707 (S experimental::builtin) A call is being made to a function in the
708 \&\f(CW\*(C`builtin::\*(C'\fR namespace, which is currently experimental. The existence
709 or nature of the function may be subject to change in a future version
710 of Perl.
711 .IP "builtin::import can only be called at compile time" 4
712 .IX Item "builtin::import can only be called at compile time"
713 (F) The \f(CW\*(C`import\*(C'\fR method of the \f(CW\*(C`builtin\*(C'\fR package was invoked when no code
714 is currently being compiled. Since this method is used to introduce new
715 lexical subroutines into the scope currently being compiled, this is not
716 going to have any effect.
717 .IP "builtin::inf not implemented" 4
718 .IX Item "builtin::inf not implemented"
719 (F) Your machine doesn\*(Aqt support infinity as a numeric value (probably because
720 it\*(Aqs a VAX).
721 .IP "builtin::nan not implemented" 4
722 .IX Item "builtin::nan not implemented"
723 (F) Your machine doesn\*(Aqt support NaN ("not a number") as a numeric value
724 (probably because it\*(Aqs a VAX).
725 .IP "Builtin version bundle ""%s"" is not supported by Perl" 4
726 .IX Item "Builtin version bundle ""%s"" is not supported by Perl"
727 (F) You attempted to \f(CW\*(C`use builtin :ver\*(C'\fR for a version number that is either
728 older than 5.39 (when the ability was added), or newer than the current perl
729 version.
730 .IP "Callback called exit" 4
731 .IX Item "Callback called exit"
732 (F) A subroutine invoked from an external package via \fBcall_sv()\fR
733 exited by calling exit.
734 .ie n .IP "%s() attempted on invalid dirhandle %s" 4
735 .el .IP "%s() attempted on invalid dirhandle \f(CW%s\fR" 4
736 .IX Item "%s() attempted on invalid dirhandle %s"
737 (W io) You called \fBreaddir()\fR, \fBtelldir()\fR, \fBseekdir()\fR, \fBrewinddir()\fR or
738 \&\fBclosedir()\fR on a handle that has not been opened, or is now closed. A
739 handle must be successfully opened with \fBopendir()\fR to be used with
740 these functions. Check your control flow.
741 .ie n .IP "%s() attempted on handle %s opened with \fBopen()\fR" 4
742 .el .IP "%s() attempted on handle \f(CW%s\fR opened with \fBopen()\fR" 4
743 .IX Item "%s() attempted on handle %s opened with open()"
744 (W io) You called \fBreaddir()\fR, \fBtelldir()\fR, \fBseekdir()\fR, \fBrewinddir()\fR or
745 \&\fBclosedir()\fR on a handle that was opened with \fBopen()\fR. If you want to
746 use these functions to traverse the contents of a directory, you need
747 to open the handle with \fBopendir()\fR.
748 .IP "%s() called too early to check prototype" 4
749 .IX Item "%s() called too early to check prototype"
750 (W prototype) You\*(Aqve called a function that has a prototype before the
751 parser saw a definition or declaration for it, and Perl could not check
752 that the call conforms to the prototype. You need to either add an
753 early prototype declaration for the subroutine in question, or move the
754 subroutine definition ahead of the call to get proper prototype
755 checking. Alternatively, if you are certain that you\*(Aqre calling the
756 function correctly, you may put an ampersand before the name to avoid
757 the warning. See perlsub.
758 .IP "Cannot apply a :writer attribute to a non\-scalar field" 4
759 .IX Item "Cannot apply a :writer attribute to a non-scalar field"
760 (F) An attempt was made to use the \f(CW\*(C`:writer\*(C'\fR attribute on a field that is
761 not a scalar (i.e. an array or hash). At the present version, these are only
762 permitted on scalar fields. You will have to manually create a writer
763 accessor method yourself.
764 .ie n .IP "Cannot assign :param(%s) to field %s because that name is already in use" 4
765 .el .IP "Cannot assign :param(%s) to field \f(CW%s\fR because that name is already in use" 4
766 .IX Item "Cannot assign :param(%s) to field %s because that name is already in use"
767 (F) An attempt was made to apply a parameter name to a field, when the name
768 is already being used by another field in the same class, or one of its
769 parent classes. This would cause a name clash so is not allowed.
770 .ie n .IP "Cannot chr %f" 4
771 .el .IP "Cannot chr \f(CW%f\fR" 4
772 .IX Item "Cannot chr %f"
773 (F) You passed an invalid number (like an infinity or not\-a\-number) to \f(CW\*(C`chr\*(C'\fR.
774 .ie n .IP "Cannot complete in\-place edit of %s: %s" 4
775 .el .IP "Cannot complete in\-place edit of \f(CW%s:\fR \f(CW%s\fR" 4
776 .IX Item "Cannot complete in-place edit of %s: %s"
777 (F) Your perl script appears to have changed directory while
778 performing an in\-place edit of a file specified by a relative path,
779 and your system doesn\*(Aqt include the directory relative POSIX functions
780 needed to handle that.
781 .ie n .IP "Cannot compress %f in pack" 4
782 .el .IP "Cannot compress \f(CW%f\fR in pack" 4
783 .IX Item "Cannot compress %f in pack"
784 (F) You tried compressing an infinity or not\-a\-number as an unsigned
785 integer with BER, which makes no sense.
786 .IP "Cannot compress integer in pack" 4
787 .IX Item "Cannot compress integer in pack"
788 (F) An argument to pack("w",...) was too large to compress.
789 The BER compressed integer format can only be used with positive
790 integers, and you attempted to compress a very large number (> 1e308).
791 See "pack" in perlfunc.
792 .IP "Cannot compress negative numbers in pack" 4
793 .IX Item "Cannot compress negative numbers in pack"
794 (F) An argument to pack("w",...) was negative. The BER compressed integer
795 format can only be used with positive integers. See "pack" in perlfunc.
796 .ie n .IP "Cannot convert a reference to %s to typeglob" 4
797 .el .IP "Cannot convert a reference to \f(CW%s\fR to typeglob" 4
798 .IX Item "Cannot convert a reference to %s to typeglob"
799 (F) You manipulated Perl\*(Aqs symbol table directly, stored a reference
800 in it, then tried to access that symbol via conventional Perl syntax.
801 The access triggers Perl to autovivify that typeglob, but there is
802 no legal conversion from that type of reference to a typeglob.
803 .ie n .IP "Cannot copy to %s" 4
804 .el .IP "Cannot copy to \f(CW%s\fR" 4
805 .IX Item "Cannot copy to %s"
806 (P) Perl detected an attempt to copy a value to an internal type that cannot
807 be directly assigned to.
808 .ie n .IP "Cannot create class %s as it already has a non\-empty @ISA" 4
809 .el .IP "Cannot create class \f(CW%s\fR as it already has a non\-empty \f(CW@ISA\fR" 4
810 .IX Item "Cannot create class %s as it already has a non-empty @ISA"
811 (F) An attempt was made to create a class out of a package that already has
812 an \f(CW@ISA\fR array, and the array is not empty. This is not permitted, as it
813 would lead to a class with inconsistent inheritance.
814 .IP "Cannot create an object of incomplete class ""%s""" 4
815 .IX Item "Cannot create an object of incomplete class ""%s"""
816 (F) An attempt was made to create an object of a class where the start
817 of the class definition has been seen, but the class has not been
818 completed.
819 .Sp
820 This can happen for a failed eval, or if you attempt to create an
821 object at compile time before the class is complete:
822 .Sp
823 .Vb 2
824 \& eval "class Foo {"; Foo\->new; # error
825 \& class Bar { BEGIN { Bar\->new } }; # error
826 .Ve
827 .IP "Cannot find encoding ""%s""" 4
828 .IX Item "Cannot find encoding ""%s"""
829 (S io) You tried to apply an encoding that did not exist to a filehandle,
830 either with \fBopen()\fR or \fBbinmode()\fR.
831 .IP "Cannot invoke a method of ""%s"" on an instance of ""%s""" 4
832 .IX Item "Cannot invoke a method of ""%s"" on an instance of ""%s"""
833 (F) You tried to directly call a \f(CW\*(C`method\*(C'\fR subroutine of one class by passing
834 in a value that is an instance of a different class. This is not permitted,
835 as the method would not have access to the correct instance fields.
836 .IP "Cannot invoke method on a non\-instance" 4
837 .IX Item "Cannot invoke method on a non-instance"
838 (F) You tried to directly call a \f(CW\*(C`method\*(C'\fR subroutine of a class by passing
839 in a value that is not an instance of that class. This is not permitted, as
840 the method would not then have access to its instance fields.
841 .ie n .IP "Cannot open %s as a dirhandle: it is already open as a filehandle" 4
842 .el .IP "Cannot open \f(CW%s\fR as a dirhandle: it is already open as a filehandle" 4
843 .IX Item "Cannot open %s as a dirhandle: it is already open as a filehandle"
844 (F) You tried to use \fBopendir()\fR to associate a dirhandle to a symbol (glob
845 or scalar) that already holds a filehandle. Since this idiom might render
846 your code confusing, it was deprecated in Perl 5.10. As of Perl 5.28, it
847 is a fatal error.
848 .ie n .IP "Cannot open %s as a filehandle: it is already open as a dirhandle" 4
849 .el .IP "Cannot open \f(CW%s\fR as a filehandle: it is already open as a dirhandle" 4
850 .IX Item "Cannot open %s as a filehandle: it is already open as a dirhandle"
851 (F) You tried to use \fBopen()\fR to associate a filehandle to a symbol (glob
852 or scalar) that already holds a dirhandle. Since this idiom might render
853 your code confusing, it was deprecated in Perl 5.10. As of Perl 5.28, it
854 is a fatal error.
855 .IP "Cannot \*(Aq%s\*(Aq outside of a \*(Aqclass\*(Aq" 4
856 .IX Item "Cannot '%s' outside of a 'class'"
857 (F) You attempted to use one of the keywords that only makes sense inside
858 a \f(CW\*(C`class\*(C'\fR definition, at a location that is not inside such a class.
859 .ie n .IP "Cannot pack %f with \*(Aq%c\*(Aq" 4
860 .el .IP "Cannot pack \f(CW%f\fR with \*(Aq%c\*(Aq" 4
861 .IX Item "Cannot pack %f with '%c'"
862 (F) You tried converting an infinity or not\-a\-number to an integer,
863 which makes no sense.
864 .ie n .IP "Cannot printf %f with \*(Aq%c\*(Aq" 4
865 .el .IP "Cannot printf \f(CW%f\fR with \*(Aq%c\*(Aq" 4
866 .IX Item "Cannot printf %f with '%c'"
867 (F) You tried printing an infinity or not\-a\-number as a character (%c),
868 which makes no sense. Maybe you meant \*(Aq%s\*(Aq, or just stringifying it?
869 .IP "Cannot reopen existing class ""%s""" 4
870 .IX Item "Cannot reopen existing class ""%s"""
871 (F) You tried to begin a \f(CW\*(C`class\*(C'\fR definition for a class that already exists.
872 A class may only have one definition block.
873 .ie n .IP "Cannot set tied @DB::args" 4
874 .el .IP "Cannot set tied \f(CW@DB::args\fR" 4
875 .IX Item "Cannot set tied @DB::args"
876 (F) \f(CW\*(C`caller\*(C'\fR tried to set \f(CW@DB::args\fR, but found it tied. Tying \f(CW@DB::args\fR
877 is not supported. (Before this error was added, it used to crash.)
878 .IP "Cannot tie unreifiable array" 4
879 .IX Item "Cannot tie unreifiable array"
880 (P) You somehow managed to call \f(CW\*(C`tie\*(C'\fR on an array that does not
881 keep a reference count on its arguments and cannot be made to
882 do so. Such arrays are not even supposed to be accessible to
883 Perl code, but are only used internally.
884 .IP "Cannot use _\|_CLASS_\|_ outside of a method or field initializer expression" 4
885 .IX Item "Cannot use __CLASS__ outside of a method or field initializer expression"
886 (F) A \f(CW\*(C`_\|_CLASS_\|_\*(C'\fR expression yields the class name of the object instance
887 executing the current method, and therefore it can only be placed inside an
888 actual method (or method\-like expression, such as a field initializer
889 expression).
890 .IP "Cannot yet reorder \fBsv_vcatpvfn()\fR arguments from va_list" 4
891 .IX Item "Cannot yet reorder sv_vcatpvfn() arguments from va_list"
892 (F) Some XS code tried to use \f(CWsv_vcatpvfn()\fR or a related function with a
893 format string that specifies explicit indexes for some of the elements, and
894 using a C\-style variable\-argument list (a \f(CW\*(C`va_list\*(C'\fR). This is not currently
895 supported. XS authors wanting to do this must instead construct a C array
896 of \f(CW\*(C`SV*\*(C'\fR scalars containing the arguments.
897 .IP "Can only compress unsigned integers in pack" 4
898 .IX Item "Can only compress unsigned integers in pack"
899 (F) An argument to pack("w",...) was not an integer. The BER compressed
900 integer format can only be used with positive integers, and you attempted
901 to compress something else. See "pack" in perlfunc.
902 .IP "Can\*(Aqt ""%s"" out of a ""defer"" block" 4
903 .IX Item "Can't ""%s"" out of a ""defer"" block"
904 (F) An attempt was made to jump out of the scope of a \f(CW\*(C`defer\*(C'\fR block by using
905 a control\-flow statement such as \f(CW\*(C`return\*(C'\fR, \f(CW\*(C`goto\*(C'\fR or a loop control. This is
906 not permitted.
907 .IP "Can\*(Aqt ""%s"" out of a ""finally"" block" 4
908 .IX Item "Can't ""%s"" out of a ""finally"" block"
909 (F) Similar to above, but involving a \f(CW\*(C`finally\*(C'\fR block at the end of a
910 \&\f(CW\*(C`try\*(C'\fR/\f(CW\*(C`catch\*(C'\fR construction rather than a \f(CW\*(C`defer\*(C'\fR block.
911 .IP "Can\*(Aqt bless an object reference" 4
912 .IX Item "Can't bless an object reference"
913 (F) You attempted to call \f(CW\*(C`bless\*(C'\fR on a value that already refers to a real
914 object instance.
915 .IP "Can\*(Aqt bless non\-reference value" 4
916 .IX Item "Can't bless non-reference value"
917 (F) Only hard references may be blessed. This is how Perl "enforces"
918 encapsulation of objects. See perlobj.
919 .IP "Can\*(Aqt ""break"" in a loop topicalizer" 4
920 .IX Item "Can't ""break"" in a loop topicalizer"
921 (F) You called \f(CW\*(C`break\*(C'\fR, but you\*(Aqre in a \f(CW\*(C`foreach\*(C'\fR block rather than
922 a \f(CW\*(C`given\*(C'\fR block. You probably meant to use \f(CW\*(C`next\*(C'\fR or \f(CW\*(C`last\*(C'\fR.
923 .IP "Can\*(Aqt ""break"" outside a given block" 4
924 .IX Item "Can't ""break"" outside a given block"
925 (F) You called \f(CW\*(C`break\*(C'\fR, but you\*(Aqre not inside a \f(CW\*(C`given\*(C'\fR block.
926 .IP "Can\*(Aqt call destructor for 0x%p in global destruction" 4
927 .IX Item "Can't call destructor for 0x%p in global destruction"
928 (S) This should not happen. Internals code has set up a destructor
929 using \f(CW\*(C`mortal_destructor_sv\*(C'\fR or \f(CW\*(C`mortal_destructor_x\*(C'\fR which is firing
930 during global destruction. Please attempt to reduce the code that triggers
931 this warning down to a small an example as possible and then report the
932 problem to <https://github.com/Perl/perl5/issues/new/choose>
933 .IP "Can\*(Aqt call method ""%s"" on an undefined value" 4
934 .IX Item "Can't call method ""%s"" on an undefined value"
935 (F) You used the syntax of a method call, but the slot filled by the
936 object reference or package name contains an undefined value. Something
937 like this will reproduce the error:
938 .Sp
939 .Vb 3
940 \& $BADREF = undef;
941 \& process $BADREF 1,2,3;
942 \& $BADREF\->process(1,2,3);
943 .Ve
944 .IP "Can\*(Aqt call method ""%s"" on unblessed reference" 4
945 .IX Item "Can't call method ""%s"" on unblessed reference"
946 (F) A method call must know in what package it\*(Aqs supposed to run. It
947 ordinarily finds this out from the object reference you supply, but you
948 didn\*(Aqt supply an object reference in this case. A reference isn\*(Aqt an
949 object reference until it has been blessed. See perlobj.
950 .IP "Can\*(Aqt call method ""%s"" without a package or object reference" 4
951 .IX Item "Can't call method ""%s"" without a package or object reference"
952 (F) You used the syntax of a method call, but the slot filled by the
953 object reference or package name contains an expression that returns a
954 defined value which is neither an object reference nor a package name.
955 Something like this will reproduce the error:
956 .Sp
957 .Vb 3
958 \& $BADREF = 42;
959 \& process $BADREF 1,2,3;
960 \& $BADREF\->process(1,2,3);
961 .Ve
962 .IP "Can\*(Aqt call \fBmro_isa_changed_in()\fR on anonymous symbol table" 4
963 .IX Item "Can't call mro_isa_changed_in() on anonymous symbol table"
964 (P) Perl got confused as to whether a hash was a plain hash or a
965 symbol table hash when trying to update \f(CW@ISA\fR caches.
966 .IP "Can\*(Aqt call \fBmro_method_changed_in()\fR on anonymous symbol table" 4
967 .IX Item "Can't call mro_method_changed_in() on anonymous symbol table"
968 (F) An XS module tried to call \f(CW\*(C`mro_method_changed_in\*(C'\fR on a hash that was
969 not attached to the symbol table.
970 .ie n .IP "Can\*(Aqt chdir to %s" 4
971 .el .IP "Can\*(Aqt chdir to \f(CW%s\fR" 4
972 .IX Item "Can't chdir to %s"
973 (F) You called \f(CW\*(C`perl \-x/foo/bar\*(C'\fR, but \fI/foo/bar\fR is not a directory
974 that you can chdir to, possibly because it doesn\*(Aqt exist.
975 .ie n .IP "Can\*(Aqt coerce %s to %s in %s" 4
976 .el .IP "Can\*(Aqt coerce \f(CW%s\fR to \f(CW%s\fR in \f(CW%s\fR" 4
977 .IX Item "Can't coerce %s to %s in %s"
978 (F) Certain types of SVs, in particular real symbol table entries
979 (typeglobs), can\*(Aqt be forced to stop being what they are. So you can\*(Aqt
980 say things like:
981 .Sp
982 .Vb 1
983 \& *foo += 1;
984 .Ve
985 .Sp
986 You CAN say
987 .Sp
988 .Vb 2
989 \& $foo = *foo;
990 \& $foo += 1;
991 .Ve
992 .Sp
993 but then \f(CW$foo\fR no longer contains a glob.
994 .IP "Can\*(Aqt ""continue"" outside a when block" 4
995 .IX Item "Can't ""continue"" outside a when block"
996 (F) You called \f(CW\*(C`continue\*(C'\fR, but you\*(Aqre not inside a \f(CW\*(C`when\*(C'\fR
997 or \f(CW\*(C`default\*(C'\fR block.
998 .IP "can\*(Aqt convert empty path" 4
999 .IX Item "can't convert empty path"
1000 (F) On Cygwin, you called a path conversion function with an empty path.
1001 Only non\-empty paths are legal.
1002 .IP "Can\*(Aqt create pipe mailbox" 4
1003 .IX Item "Can't create pipe mailbox"
1004 (P) An error peculiar to VMS. The process is suffering from exhausted
1005 quotas or other plumbing problems.
1006 .ie n .IP "Can\*(Aqt declare %s in ""%s""" 4
1007 .el .IP "Can\*(Aqt declare \f(CW%s\fR in ""%s""" 4
1008 .IX Item "Can't declare %s in ""%s"""
1009 (F) Only scalar, array, and hash variables may be declared as "my", "our" or
1010 "state" variables. They must have ordinary identifiers as names.
1011 .IP "Can\*(Aqt ""default"" outside a topicalizer" 4
1012 .IX Item "Can't ""default"" outside a topicalizer"
1013 (F) You have used a \f(CW\*(C`default\*(C'\fR block that is neither inside a
1014 \&\f(CW\*(C`foreach\*(C'\fR loop nor a \f(CW\*(C`given\*(C'\fR block. (Note that this error is
1015 issued on exit from the \f(CW\*(C`default\*(C'\fR block, so you won\*(Aqt get the
1016 error if you use an explicit \f(CW\*(C`continue\*(C'\fR.)
1017 .ie n .IP "Can\*(Aqt determine class of operator %s, assuming BASEOP" 4
1018 .el .IP "Can\*(Aqt determine class of operator \f(CW%s\fR, assuming BASEOP" 4
1019 .IX Item "Can't determine class of operator %s, assuming BASEOP"
1020 (S) This warning indicates something wrong in the internals of perl.
1021 Perl was trying to find the class (e.g. LISTOP) of a particular OP,
1022 and was unable to do so. This is likely to be due to a bug in the perl
1023 internals, or due to a bug in XS code which manipulates perl optrees.
1024 .ie n .IP "Can\*(Aqt do inplace edit: %s is not a regular file" 4
1025 .el .IP "Can\*(Aqt do inplace edit: \f(CW%s\fR is not a regular file" 4
1026 .IX Item "Can't do inplace edit: %s is not a regular file"
1027 (S inplace) You tried to use the \fB\-i\fR switch on a special file, such as
1028 a file in /dev, a FIFO or an uneditable directory. The file was ignored.
1029 .ie n .IP "Can\*(Aqt do inplace edit on %s: %s" 4
1030 .el .IP "Can\*(Aqt do inplace edit on \f(CW%s:\fR \f(CW%s\fR" 4
1031 .IX Item "Can't do inplace edit on %s: %s"
1032 (S inplace) The creation of the new file failed for the indicated
1033 reason.
1034 .ie n .IP "Can\*(Aqt do inplace edit: %s would not be unique" 4
1035 .el .IP "Can\*(Aqt do inplace edit: \f(CW%s\fR would not be unique" 4
1036 .IX Item "Can't do inplace edit: %s would not be unique"
1037 (S inplace) Your filesystem does not support filenames longer than 14
1038 characters and Perl was unable to create a unique filename during
1039 inplace editing with the \fB\-i\fR switch. The file was ignored.
1040 .IP "Can\*(Aqt do %s(""%s"") on non\-UTF\-8 locale; resolved to ""%s""." 4
1041 .IX Item "Can't do %s(""%s"") on non-UTF-8 locale; resolved to ""%s""."
1042 (W locale) You are 1) running under "\f(CW\*(C`use locale\*(C'\fR"; 2) the current
1043 locale is not a UTF\-8 one; 3) you tried to do the designated case\-change
1044 operation on the specified Unicode character; and 4) the result of this
1045 operation would mix Unicode and locale rules, which likely conflict.
1046 Mixing of different rule types is forbidden, so the operation was not
1047 done; instead the result is the indicated value, which is the best
1048 available that uses entirely Unicode rules. That turns out to almost
1049 always be the original character, unchanged.
1050 .Sp
1051 It is generally a bad idea to mix non\-UTF\-8 locales and Unicode, and
1052 this issue is one of the reasons why. This warning is raised when
1053 Unicode rules would normally cause the result of this operation to
1054 contain a character that is in the range specified by the locale,
1055 0..255, and hence is subject to the locale\*(Aqs rules, not Unicode\*(Aqs.
1056 .Sp
1057 If you are using locale purely for its characteristics related to things
1058 like its numeric and time formatting (and not \f(CW\*(C`LC_CTYPE\*(C'\fR), consider
1059 using a restricted form of the locale pragma (see "The "use
1060 locale" pragma" in perllocale) like "\f(CW\*(C`use\ locale\ \*(Aq:not_characters\*(Aq\*(C'\fR".
1061 .Sp
1062 Note that failed case\-changing operations done as a result of
1063 case\-insensitive \f(CW\*(C`/i\*(C'\fR regular expression matching will show up in this
1064 warning as having the \f(CW\*(C`fc\*(C'\fR operation (as that is what the regular
1065 expression engine calls behind the scenes.)
1066 .IP "Can\*(Aqt do waitpid with flags" 4
1067 .IX Item "Can't do waitpid with flags"
1068 (F) This machine doesn\*(Aqt have either \fBwaitpid()\fR or \fBwait4()\fR, so only
1069 \&\fBwaitpid()\fR without flags is emulated.
1070 .IP "Can\*(Aqt emulate \-%s on #! line" 4
1071 .IX Item "Can't emulate -%s on #! line"
1072 (F) The #! line specifies a switch that doesn\*(Aqt make sense at this
1073 point. For example, it\*(Aqd be kind of silly to put a \fB\-x\fR on the #!
1074 line.
1075 .ie n .IP "Can\*(Aqt %s %s\-endian %ss on this platform" 4
1076 .el .IP "Can\*(Aqt \f(CW%s\fR \f(CW%s\fR\-endian \f(CW%ss\fR on this platform" 4
1077 .IX Item "Can't %s %s-endian %ss on this platform"
1078 (F) Your platform\*(Aqs byte\-order is neither big\-endian nor little\-endian,
1079 or it has a very strange pointer size. Packing and unpacking big\- or
1080 little\-endian floating point values and pointers may not be possible.
1081 See "pack" in perlfunc.
1082 .ie n .IP "Can\*(Aqt exec ""%s"": %s" 4
1083 .el .IP "Can\*(Aqt exec ""%s"": \f(CW%s\fR" 4
1084 .IX Item "Can't exec ""%s"": %s"
1085 (W exec) A \fBsystem()\fR, \fBexec()\fR, or piped open call could not execute the
1086 named program for the indicated reason. Typical reasons include: the
1087 permissions were wrong on the file, the file wasn\*(Aqt found in
1088 \&\f(CW$ENV{PATH}\fR, the executable in question was compiled for another
1089 architecture, or the #! line in a script points to an interpreter that
1090 can\*(Aqt be run for similar reasons. (Or maybe your system doesn\*(Aqt support
1091 #! at all.)
1092 .ie n .IP "Can\*(Aqt exec %s" 4
1093 .el .IP "Can\*(Aqt exec \f(CW%s\fR" 4
1094 .IX Item "Can't exec %s"
1095 (F) Perl was trying to execute the indicated program for you because
1096 that\*(Aqs what the #! line said. If that\*(Aqs not what you wanted, you may
1097 need to mention "perl" on the #! line somewhere.
1098 .ie n .IP "Can\*(Aqt execute %s" 4
1099 .el .IP "Can\*(Aqt execute \f(CW%s\fR" 4
1100 .IX Item "Can't execute %s"
1101 (F) You used the \fB\-S\fR switch, but the copies of the script to execute
1102 found in the PATH did not have correct permissions.
1103 .IP "Can\*(Aqt find an opnumber for ""%s""" 4
1104 .IX Item "Can't find an opnumber for ""%s"""
1105 (F) A string of a form \f(CW\*(C`CORE::word\*(C'\fR was given to \fBprototype()\fR, but there
1106 is no builtin with the name \f(CW\*(C`word\*(C'\fR.
1107 .ie n .IP "Can\*(Aqt find label %s" 4
1108 .el .IP "Can\*(Aqt find label \f(CW%s\fR" 4
1109 .IX Item "Can't find label %s"
1110 (F) You said to goto a label that isn\*(Aqt mentioned anywhere that it\*(Aqs
1111 possible for us to go to. See "goto" in perlfunc.
1112 .ie n .IP "Can\*(Aqt find %s on PATH" 4
1113 .el .IP "Can\*(Aqt find \f(CW%s\fR on PATH" 4
1114 .IX Item "Can't find %s on PATH"
1115 (F) You used the \fB\-S\fR switch, but the script to execute could not be
1116 found in the PATH.
1117 .ie n .IP "Can\*(Aqt find %s on PATH, \*(Aq.\*(Aq not in PATH" 4
1118 .el .IP "Can\*(Aqt find \f(CW%s\fR on PATH, \*(Aq.\*(Aq not in PATH" 4
1119 .IX Item "Can't find %s on PATH, '.' not in PATH"
1120 (F) You used the \fB\-S\fR switch, but the script to execute could not be
1121 found in the PATH, or at least not with the correct permissions. The
1122 script exists in the current directory, but PATH prohibits running it.
1123 .ie n .IP "Can\*(Aqt find string terminator %s anywhere before EOF" 4
1124 .el .IP "Can\*(Aqt find string terminator \f(CW%s\fR anywhere before EOF" 4
1125 .IX Item "Can't find string terminator %s anywhere before EOF"
1126 (F) Perl strings can stretch over multiple lines. This message means
1127 that the closing delimiter was omitted. Because bracketed quotes count
1128 nesting levels, the following is missing its final parenthesis:
1129 .Sp
1130 .Vb 1
1131 \& print q(The character \*(Aq(\*(Aq starts a side comment.);
1132 .Ve
1133 .Sp
1134 If you\*(Aqre getting this error from a here\-document, you may have
1135 included unseen whitespace before or after your closing tag or there
1136 may not be a linebreak after it. A good programmer\*(Aqs editor will have
1137 a way to help you find these characters (or lack of characters). See
1138 perlop for the full details on here\-documents.
1139 .IP "Can\*(Aqt find Unicode property definition ""%s""" 4
1140 .IX Item "Can't find Unicode property definition ""%s"""
1141 .PD 0
1142 .IP "Can\*(Aqt find Unicode property definition ""%s"" in regex; marked by <\-\- HERE in m/%s/" 4
1143 .IX Item "Can't find Unicode property definition ""%s"" in regex; marked by <-- HERE in m/%s/"
1144 .PD
1145 (F) The named property which you specified via \f(CW\*(C`\ep\*(C'\fR or \f(CW\*(C`\eP\*(C'\fR is not one
1146 known to Perl. Perhaps you misspelled the name? See
1147 "Properties accessible through \ep{} and \eP{}" in perluniprops
1148 for a complete list of available official
1149 properties. If it is a
1150 user\-defined property
1151 it must have been defined by the time the regular expression is
1152 matched.
1153 .Sp
1154 If you didn\*(Aqt mean to use a Unicode property, escape the \f(CW\*(C`\ep\*(C'\fR, either
1155 by \f(CW\*(C`\e\ep\*(C'\fR (just the \f(CW\*(C`\ep\*(C'\fR) or by \f(CW\*(C`\eQ\ep\*(C'\fR (the rest of the string, or
1156 until \f(CW\*(C`\eE\*(C'\fR).
1157 .ie n .IP "Can\*(Aqt fork: %s" 4
1158 .el .IP "Can\*(Aqt fork: \f(CW%s\fR" 4
1159 .IX Item "Can't fork: %s"
1160 (F) A fatal error occurred while trying to fork while opening a
1161 pipeline.
1162 .IP "Can\*(Aqt fork, trying again in 5 seconds" 4
1163 .IX Item "Can't fork, trying again in 5 seconds"
1164 (W pipe) A fork in a piped open failed with EAGAIN and will be retried
1165 after five seconds.
1166 .IP "Can\*(Aqt get filespec \- stale stat buffer?" 4
1167 .IX Item "Can't get filespec - stale stat buffer?"
1168 (S) A warning peculiar to VMS. This arises because of the difference
1169 between access checks under VMS and under the Unix model Perl assumes.
1170 Under VMS, access checks are done by filename, rather than by bits in
1171 the stat buffer, so that ACLs and other protections can be taken into
1172 account. Unfortunately, Perl assumes that the stat buffer contains all
1173 the necessary information, and passes it, instead of the filespec, to
1174 the access\-checking routine. It will try to retrieve the filespec using
1175 the device name and FID present in the stat buffer, but this works only
1176 if you haven\*(Aqt made a subsequent call to the CRTL \fBstat()\fR routine,
1177 because the device name is overwritten with each call. If this warning
1178 appears, the name lookup failed, and the access\-checking routine gave up
1179 and returned FALSE, just to be conservative. (Note: The access\-checking
1180 routine knows about the Perl \f(CW\*(C`stat\*(C'\fR operator and file tests, so you
1181 shouldn\*(Aqt ever see this warning in response to a Perl command; it arises
1182 only if some internal code takes stat buffers lightly.)
1183 .IP "Can\*(Aqt get pipe mailbox device name" 4
1184 .IX Item "Can't get pipe mailbox device name"
1185 (P) An error peculiar to VMS. After creating a mailbox to act as a
1186 pipe, Perl can\*(Aqt retrieve its name for later use.
1187 .IP "Can\*(Aqt get SYSGEN parameter value for MAXBUF" 4
1188 .IX Item "Can't get SYSGEN parameter value for MAXBUF"
1189 (P) An error peculiar to VMS. Perl asked \f(CW$GETSYI\fR how big you want your
1190 mailbox buffers to be, and didn\*(Aqt get an answer.
1191 .IP "Can\*(Aqt ""goto"" into a binary or list expression" 4
1192 .IX Item "Can't ""goto"" into a binary or list expression"
1193 (F) A "goto" statement was executed to jump into the middle of a binary
1194 or list expression. You can\*(Aqt get there from here. The reason for this
1195 restriction is that the interpreter would get confused as to how many
1196 arguments there are, resulting in stack corruption or crashes. This
1197 error occurs in cases such as these:
1198 .Sp
1199 .Vb 2
1200 \& goto F;
1201 \& print do { F: }; # Can\*(Aqt jump into the arguments to print
1202 \&
1203 \& goto G;
1204 \& $x + do { G: $y }; # How is + supposed to get its first operand?
1205 .Ve
1206 .IP "Can\*(Aqt ""goto"" into a ""defer"" block" 4
1207 .IX Item "Can't ""goto"" into a ""defer"" block"
1208 (F) A \f(CW\*(C`goto\*(C'\fR statement was executed to jump into the scope of a \f(CW\*(C`defer\*(C'\fR
1209 block. This is not permitted.
1210 .IP "Can\*(Aqt ""goto"" into a ""given"" block" 4
1211 .IX Item "Can't ""goto"" into a ""given"" block"
1212 (F) A "goto" statement was executed to jump into the middle of a \f(CW\*(C`given\*(C'\fR
1213 block. You can\*(Aqt get there from here. See "goto" in perlfunc.
1214 .IP "Can\*(Aqt ""goto"" into the middle of a foreach loop" 4
1215 .IX Item "Can't ""goto"" into the middle of a foreach loop"
1216 (F) A "goto" statement was executed to jump into the middle of a foreach
1217 loop. You can\*(Aqt get there from here. See "goto" in perlfunc.
1218 .IP "Can\*(Aqt ""goto"" out of a pseudo block" 4
1219 .IX Item "Can't ""goto"" out of a pseudo block"
1220 (F) A "goto" statement was executed to jump out of what might look like
1221 a block, except that it isn\*(Aqt a proper block. This usually occurs if
1222 you tried to jump out of a \fBsort()\fR block or subroutine, which is a no\-no.
1223 See "goto" in perlfunc.
1224 .IP "Can\*(Aqt goto subroutine from an eval\-%s" 4
1225 .IX Item "Can't goto subroutine from an eval-%s"
1226 (F) The "goto subroutine" call can\*(Aqt be used to jump out of an eval
1227 "string" or block.
1228 .IP "Can\*(Aqt goto subroutine from a sort sub (or similar callback)" 4
1229 .IX Item "Can't goto subroutine from a sort sub (or similar callback)"
1230 (F) The "goto subroutine" call can\*(Aqt be used to jump out of the
1231 comparison sub for a \fBsort()\fR, or from a similar callback (such
1232 as the \fBreduce()\fR function in List::Util).
1233 .IP "Can\*(Aqt goto subroutine outside a subroutine" 4
1234 .IX Item "Can't goto subroutine outside a subroutine"
1235 (F) The deeply magical "goto subroutine" call can only replace one
1236 subroutine call for another. It can\*(Aqt manufacture one out of whole
1237 cloth. In general you should be calling it out of only an AUTOLOAD
1238 routine anyway. See "goto" in perlfunc.
1239 .IP "Can\*(Aqt ignore signal CHLD, forcing to default" 4
1240 .IX Item "Can't ignore signal CHLD, forcing to default"
1241 (W signal) Perl has detected that it is being run with the SIGCHLD
1242 signal (sometimes known as SIGCLD) disabled. Since disabling this
1243 signal will interfere with proper determination of exit status of child
1244 processes, Perl has reset the signal to its default value. This
1245 situation typically indicates that the parent program under which Perl
1246 may be running (e.g. cron) is being very careless.
1247 .IP "Can\*(Aqt kill a non\-numeric process ID" 4
1248 .IX Item "Can't kill a non-numeric process ID"
1249 (F) Process identifiers must be (signed) integers. It is a fatal error to
1250 attempt to \fBkill()\fR an undefined, empty\-string or otherwise non\-numeric
1251 process identifier.
1252 .IP "Can\*(Aqt ""last"" outside a loop block" 4
1253 .IX Item "Can't ""last"" outside a loop block"
1254 (F) A "last" statement was executed to break out of the current block,
1255 except that there\*(Aqs this itty bitty problem called there isn\*(Aqt a current
1256 block. Note that an "if" or "else" block doesn\*(Aqt count as a "loopish"
1257 block, as doesn\*(Aqt a block given to \fBsort()\fR, \fBmap()\fR or \fBgrep()\fR. You can
1258 usually double the curlies to get the same effect though, because the
1259 inner curlies will be considered a block that loops once. See
1260 "last" in perlfunc.
1261 .IP "Can\*(Aqt linearize anonymous symbol table" 4
1262 .IX Item "Can't linearize anonymous symbol table"
1263 (F) Perl tried to calculate the method resolution order (MRO) of a
1264 package, but failed because the package stash has no name.
1265 .ie n .IP "Can\*(Aqt load \*(Aq%s\*(Aq for module %s" 4
1266 .el .IP "Can\*(Aqt load \*(Aq%s\*(Aq for module \f(CW%s\fR" 4
1267 .IX Item "Can't load '%s' for module %s"
1268 (F) The module you tried to load failed to load a dynamic extension.
1269 This may either mean that you upgraded your version of perl to one
1270 that is incompatible with your old dynamic extensions (which is known
1271 to happen between major versions of perl), or (more likely) that your
1272 dynamic extension was built against an older version of the library
1273 that is installed on your system. You may need to rebuild your old
1274 dynamic extensions.
1275 .ie n .IP "Can\*(Aqt localize lexical variable %s" 4
1276 .el .IP "Can\*(Aqt localize lexical variable \f(CW%s\fR" 4
1277 .IX Item "Can't localize lexical variable %s"
1278 (F) You used local on a variable name that was previously declared as a
1279 lexical variable using "my" or "state". This is not allowed. If you
1280 want to localize a package variable of the same name, qualify it with
1281 the package name.
1282 .IP "Can\*(Aqt localize through a reference" 4
1283 .IX Item "Can't localize through a reference"
1284 (F) You said something like \f(CW\*(C`local $$ref\*(C'\fR, which Perl can\*(Aqt currently
1285 handle, because when it goes to restore the old value of whatever \f(CW$ref\fR
1286 pointed to after the scope of the \fBlocal()\fR is finished, it can\*(Aqt be sure
1287 that \f(CW$ref\fR will still be a reference.
1288 .ie n .IP "Can\*(Aqt locate %s" 4
1289 .el .IP "Can\*(Aqt locate \f(CW%s\fR" 4
1290 .IX Item "Can't locate %s"
1291 (F) You said to \f(CW\*(C`do\*(C'\fR (or \f(CW\*(C`require\*(C'\fR, or \f(CW\*(C`use\*(C'\fR) a file that couldn\*(Aqt be found.
1292 Perl looks for the file in all the locations mentioned in \f(CW@INC\fR, unless
1293 the file name included the full path to the file. Perhaps you need
1294 to set the PERL5LIB or PERL5OPT environment variable to say where the
1295 extra library is, or maybe the script needs to add the library name
1296 to \f(CW@INC\fR. Or maybe you just misspelled the name of the file. See
1297 "require" in perlfunc and lib.
1298 .ie n .IP "Can\*(Aqt locate auto/%s.al in @INC" 4
1299 .el .IP "Can\*(Aqt locate auto/%s.al in \f(CW@INC\fR" 4
1300 .IX Item "Can't locate auto/%s.al in @INC"
1301 (F) A function (or method) was called in a package which allows
1302 autoload, but there is no function to autoload. Most probable causes
1303 are a misprint in a function/method name or a failure to \f(CW\*(C`AutoSplit\*(C'\fR
1304 the file, say, by doing \f(CW\*(C`make install\*(C'\fR.
1305 .ie n .IP "Can\*(Aqt locate loadable object for module %s in @INC" 4
1306 .el .IP "Can\*(Aqt locate loadable object for module \f(CW%s\fR in \f(CW@INC\fR" 4
1307 .IX Item "Can't locate loadable object for module %s in @INC"
1308 (F) The module you loaded is trying to load an external library, like
1309 for example, \fIfoo.so\fR or \fIbar.dll\fR, but the DynaLoader module was
1310 unable to locate this library. See DynaLoader.
1311 .IP "Can\*(Aqt locate object method ""%s"" via package ""%s""" 4
1312 .IX Item "Can't locate object method ""%s"" via package ""%s"""
1313 (F) You called a method correctly, and it correctly indicated a package
1314 functioning as a class, but that package doesn\*(Aqt define that particular
1315 method, nor does any of its base classes. See perlobj.
1316 .IP "Can\*(Aqt locate object method ""%s"" via package ""%s"" (perhaps you forgot to load ""%s""?)" 4
1317 .IX Item "Can't locate object method ""%s"" via package ""%s"" (perhaps you forgot to load ""%s""?)"
1318 (F) You called a method on a class that did not exist, and the method
1319 could not be found in UNIVERSAL. This often means that a method
1320 requires a package that has not been loaded.
1321 .ie n .IP "Can\*(Aqt locate object method ""INC"", nor ""INCDIR"" nor string overload via package ""%s"" %s in @INC" 4
1322 .el .IP "Can\*(Aqt locate object method ""INC"", nor ""INCDIR"" nor string overload via package ""%s"" \f(CW%s\fR in \f(CW@INC\fR" 4
1323 .IX Item "Can't locate object method ""INC"", nor ""INCDIR"" nor string overload via package ""%s"" %s in @INC"
1324 (F) You pushed an object, either directly or via an array reference hook,
1325 into \f(CW@INC\fR, but the object doesn\*(Aqt support any known hook methods, nor
1326 a string overload and is also not a blessed CODE reference. In short the
1327 \&\f(CW\*(C`require\*(C'\fR function does not know what to do with the object.
1328 See also "require" in perlfunc.
1329 .ie n .IP "Attempt to call undefined %s method with arguments (""%s""%s) via package ""%s"" (Perhaps you forgot to load the package?)" 4
1330 .el .IP "Attempt to call undefined \f(CW%s\fR method with arguments (""%s""%s) via package ""%s"" (Perhaps you forgot to load the package?)" 4
1331 .IX Item "Attempt to call undefined %s method with arguments (""%s""%s) via package ""%s"" (Perhaps you forgot to load the package?)"
1332 (D deprecated::missing_import_called_with_args) You called the
1333 \&\f(CWimport()\fR or \f(CWunimport()\fR method of a class that has no import method
1334 defined in its inheritance graph, and passed an argument to the method.
1335 This is very often the sign of a misspelled package name in a use or
1336 require statement that has silently succeded due to a case insensitive
1337 file system.
1338 .Sp
1339 Another common reason this may happen is when mistakenly attempting to
1340 import or unimport a symbol from a class definition or package which
1341 does not use \f(CW\*(C`Exporter\*(C'\fR or otherwise define its own \f(CW\*(C`import\*(C'\fR or
1342 \&\f(CW\*(C`unimport\*(C'\fR method.
1343 .ie n .IP "Can\*(Aqt locate package %s for @%s::ISA" 4
1344 .el .IP "Can\*(Aqt locate package \f(CW%s\fR for @%s::ISA" 4
1345 .IX Item "Can't locate package %s for @%s::ISA"
1346 (W syntax) The \f(CW@ISA\fR array contained the name of another package that
1347 doesn\*(Aqt seem to exist.
1348 .IP "Can\*(Aqt locate PerlIO%s" 4
1349 .IX Item "Can't locate PerlIO%s"
1350 (F) You tried to use in \fBopen()\fR a PerlIO layer that does not exist,
1351 e.g. open(FH, ">:nosuchlayer", "somefile").
1352 .ie n .IP "Can\*(Aqt make list assignment to %ENV on this system" 4
1353 .el .IP "Can\*(Aqt make list assignment to \f(CW%ENV\fR on this system" 4
1354 .IX Item "Can't make list assignment to %ENV on this system"
1355 (F) List assignment to \f(CW%ENV\fR is not supported on some systems, notably
1356 VMS.
1357 .ie n .IP "Can\*(Aqt make loaded symbols global on this platform while loading %s" 4
1358 .el .IP "Can\*(Aqt make loaded symbols global on this platform while loading \f(CW%s\fR" 4
1359 .IX Item "Can't make loaded symbols global on this platform while loading %s"
1360 (S) A module passed the flag 0x01 to \fBDynaLoader::dl_load_file()\fR to request
1361 that symbols from the stated file are made available globally within the
1362 process, but that functionality is not available on this platform. Whilst
1363 the module likely will still work, this may prevent the perl interpreter
1364 from loading other XS\-based extensions which need to link directly to
1365 functions defined in the C or XS code in the stated file.
1366 .ie n .IP "Can\*(Aqt modify %s in %s" 4
1367 .el .IP "Can\*(Aqt modify \f(CW%s\fR in \f(CW%s\fR" 4
1368 .IX Item "Can't modify %s in %s"
1369 (F) You aren\*(Aqt allowed to assign to the item indicated, or otherwise try
1370 to change it, such as with an auto\-increment.
1371 .IP "Can\*(Aqt modify non\-lvalue subroutine call of &%s" 4
1372 .IX Item "Can't modify non-lvalue subroutine call of &%s"
1373 .PD 0
1374 .ie n .IP "Can\*(Aqt modify non\-lvalue subroutine call of &%s in %s" 4
1375 .el .IP "Can\*(Aqt modify non\-lvalue subroutine call of &%s in \f(CW%s\fR" 4
1376 .IX Item "Can't modify non-lvalue subroutine call of &%s in %s"
1377 .PD
1378 (F) Subroutines meant to be used in lvalue context should be declared as
1379 such. See "Lvalue subroutines" in perlsub.
1380 .ie n .IP "Can\*(Aqt modify reference to %s in %s assignment" 4
1381 .el .IP "Can\*(Aqt modify reference to \f(CW%s\fR in \f(CW%s\fR assignment" 4
1382 .IX Item "Can't modify reference to %s in %s assignment"
1383 (F) Only a limited number of constructs can be used as the argument to a
1384 reference constructor on the left\-hand side of an assignment, and what
1385 you used was not one of them. See "Assigning to References" in perlref.
1386 .IP "Can\*(Aqt modify reference to localized parenthesized array in list assignment" 4
1387 .IX Item "Can't modify reference to localized parenthesized array in list assignment"
1388 (F) Assigning to \f(CW\*(C`\elocal(@array)\*(C'\fR or \f(CW\*(C`\e(local @array)\*(C'\fR is not supported, as
1389 it is not clear exactly what it should do. If you meant to make \f(CW@array\fR
1390 refer to some other array, use \f(CW\*(C`\e@array = \e@other_array\*(C'\fR. If you want to
1391 make the elements of \f(CW@array\fR aliases of the scalars referenced on the
1392 right\-hand side, use \f(CW\*(C`\e(@array) = @scalar_refs\*(C'\fR.
1393 .IP "Can\*(Aqt modify reference to parenthesized hash in list assignment" 4
1394 .IX Item "Can't modify reference to parenthesized hash in list assignment"
1395 (F) Assigning to \f(CW\*(C`\e(%hash)\*(C'\fR is not supported. If you meant to make \f(CW%hash\fR
1396 refer to some other hash, use \f(CW\*(C`\e%hash = \e%other_hash\*(C'\fR. If you want to
1397 make the elements of \f(CW%hash\fR into aliases of the scalars referenced on the
1398 right\-hand side, use a hash slice: \f(CW\*(C`\e@hash{@keys} = @those_scalar_refs\*(C'\fR.
1399 .IP "Can\*(Aqt msgrcv to read\-only var" 4
1400 .IX Item "Can't msgrcv to read-only var"
1401 (F) The target of a msgrcv must be modifiable to be used as a receive
1402 buffer.
1403 .IP "Can\*(Aqt ""next"" outside a loop block" 4
1404 .IX Item "Can't ""next"" outside a loop block"
1405 (F) A "next" statement was executed to reiterate the current block, but
1406 there isn\*(Aqt a current block. Note that an "if" or "else" block doesn\*(Aqt
1407 count as a "loopish" block, as doesn\*(Aqt a block given to \fBsort()\fR, \fBmap()\fR or
1408 \&\fBgrep()\fR. You can usually double the curlies to get the same effect
1409 though, because the inner curlies will be considered a block that loops
1410 once. See "next" in perlfunc.
1411 .ie n .IP "Can\*(Aqt open %s: %s" 4
1412 .el .IP "Can\*(Aqt open \f(CW%s:\fR \f(CW%s\fR" 4
1413 .IX Item "Can't open %s: %s"
1414 (S inplace) The implicit opening of a file through use of the \f(CW\*(C`<>\*(C'\fR
1415 filehandle, either implicitly under the \f(CW\*(C`\-n\*(C'\fR or \f(CW\*(C`\-p\*(C'\fR command\-line
1416 switches, or explicitly, failed for the indicated reason. Usually
1417 this is because you don\*(Aqt have read permission for a file which
1418 you named on the command line.
1419 .Sp
1420 (F) You tried to call perl with the \fB\-e\fR switch, but \fI/dev/null\fR (or
1421 your operating system\*(Aqs equivalent) could not be opened.
1422 .IP "Can\*(Aqt open a reference" 4
1423 .IX Item "Can't open a reference"
1424 (W io) You tried to open a scalar reference for reading or writing,
1425 using the 3\-arg \fBopen()\fR syntax:
1426 .Sp
1427 .Vb 1
1428 \& open FH, \*(Aq>\*(Aq, $ref;
1429 .Ve
1430 .Sp
1431 but your version of perl is compiled without perlio, and this form of
1432 open is not supported.
1433 .IP "Can\*(Aqt open bidirectional pipe" 4
1434 .IX Item "Can't open bidirectional pipe"
1435 (W pipe) You tried to say \f(CW\*(C`open(CMD, "|cmd|")\*(C'\fR, which is not supported.
1436 You can try any of several modules in the Perl library to do this, such
1437 as IPC::Open2. Alternately, direct the pipe\*(Aqs output to a file using
1438 ">", and then read it in under a different file handle.
1439 .ie n .IP "Can\*(Aqt open error file %s as stderr" 4
1440 .el .IP "Can\*(Aqt open error file \f(CW%s\fR as stderr" 4
1441 .IX Item "Can't open error file %s as stderr"
1442 (F) An error peculiar to VMS. Perl does its own command line
1443 redirection, and couldn\*(Aqt open the file specified after \*(Aq2>\*(Aq or \*(Aq2>>\*(Aq on
1444 the command line for writing.
1445 .ie n .IP "Can\*(Aqt open input file %s as stdin" 4
1446 .el .IP "Can\*(Aqt open input file \f(CW%s\fR as stdin" 4
1447 .IX Item "Can't open input file %s as stdin"
1448 (F) An error peculiar to VMS. Perl does its own command line
1449 redirection, and couldn\*(Aqt open the file specified after \*(Aq<\*(Aq on the
1450 command line for reading.
1451 .ie n .IP "Can\*(Aqt open output file %s as stdout" 4
1452 .el .IP "Can\*(Aqt open output file \f(CW%s\fR as stdout" 4
1453 .IX Item "Can't open output file %s as stdout"
1454 (F) An error peculiar to VMS. Perl does its own command line
1455 redirection, and couldn\*(Aqt open the file specified after \*(Aq>\*(Aq or \*(Aq>>\*(Aq on
1456 the command line for writing.
1457 .ie n .IP "Can\*(Aqt open output pipe (name: %s)" 4
1458 .el .IP "Can\*(Aqt open output pipe (name: \f(CW%s\fR)" 4
1459 .IX Item "Can't open output pipe (name: %s)"
1460 (P) An error peculiar to VMS. Perl does its own command line
1461 redirection, and couldn\*(Aqt open the pipe into which to send data destined
1462 for stdout.
1463 .ie n .IP "Can\*(Aqt open perl script ""%s"": %s" 4
1464 .el .IP "Can\*(Aqt open perl script ""%s"": \f(CW%s\fR" 4
1465 .IX Item "Can't open perl script ""%s"": %s"
1466 (F) The script you specified can\*(Aqt be opened for the indicated reason.
1467 .Sp
1468 If you\*(Aqre debugging a script that uses #!, and normally relies on the
1469 shell\*(Aqs \f(CW$PATH\fR search, the \-S option causes perl to do that search, so
1470 you don\*(Aqt have to type the path or \f(CW\`which $scriptname\`\fR.
1471 .IP "Can\*(Aqt read CRTL environ" 4
1472 .IX Item "Can't read CRTL environ"
1473 (S) A warning peculiar to VMS. Perl tried to read an element of \f(CW%ENV\fR
1474 from the CRTL\*(Aqs internal environment array and discovered the array was
1475 missing. You need to figure out where your CRTL misplaced its environ
1476 or define \fIPERL_ENV_TABLES\fR (see perlvms) so that environ is not
1477 searched.
1478 .IP "Can\*(Aqt redeclare ""%s"" in ""%s""" 4
1479 .IX Item "Can't redeclare ""%s"" in ""%s"""
1480 (F) A "my", "our" or "state" declaration was found within another declaration,
1481 such as \f(CW\*(C`my ($x, my($y), $z)\*(C'\fR or \f(CW\*(C`our (my $x)\*(C'\fR.
1482 .IP "Can\*(Aqt ""redo"" outside a loop block" 4
1483 .IX Item "Can't ""redo"" outside a loop block"
1484 (F) A "redo" statement was executed to restart the current block, but
1485 there isn\*(Aqt a current block. Note that an "if" or "else" block doesn\*(Aqt
1486 count as a "loopish" block, as doesn\*(Aqt a block given to \fBsort()\fR, \fBmap()\fR
1487 or \fBgrep()\fR. You can usually double the curlies to get the same effect
1488 though, because the inner curlies will be considered a block that
1489 loops once. See "redo" in perlfunc.
1490 .ie n .IP "Can\*(Aqt remove %s: %s, skipping file" 4
1491 .el .IP "Can\*(Aqt remove \f(CW%s:\fR \f(CW%s\fR, skipping file" 4
1492 .IX Item "Can't remove %s: %s, skipping file"
1493 (S inplace) You requested an inplace edit without creating a backup
1494 file. Perl was unable to remove the original file to replace it with
1495 the modified file. The file was left unmodified.
1496 .ie n .IP "Can\*(Aqt rename in\-place work file \*(Aq%s\*(Aq to \*(Aq%s\*(Aq: %s" 4
1497 .el .IP "Can\*(Aqt rename in\-place work file \*(Aq%s\*(Aq to \*(Aq%s\*(Aq: \f(CW%s\fR" 4
1498 .IX Item "Can't rename in-place work file '%s' to '%s': %s"
1499 (F) When closed implicitly, the temporary file for in\-place editing
1500 couldn\*(Aqt be renamed to the original filename.
1501 .ie n .IP "Can\*(Aqt rename %s to %s: %s, skipping file" 4
1502 .el .IP "Can\*(Aqt rename \f(CW%s\fR to \f(CW%s:\fR \f(CW%s\fR, skipping file" 4
1503 .IX Item "Can't rename %s to %s: %s, skipping file"
1504 (F) The rename done by the \fB\-i\fR switch failed for some reason,
1505 probably because you don\*(Aqt have write permission to the directory.
1506 .ie n .IP "Can\*(Aqt reopen input pipe (name: %s) in binary mode" 4
1507 .el .IP "Can\*(Aqt reopen input pipe (name: \f(CW%s\fR) in binary mode" 4
1508 .IX Item "Can't reopen input pipe (name: %s) in binary mode"
1509 (P) An error peculiar to VMS. Perl thought stdin was a pipe, and tried
1510 to reopen it to accept binary data. Alas, it failed.
1511 .IP "Can\*(Aqt represent character for Ox%X on this platform" 4
1512 .IX Item "Can't represent character for Ox%X on this platform"
1513 (F) There is a hard limit to how big a character code point can be due
1514 to the fundamental properties of UTF\-8, especially on EBCDIC
1515 platforms. The given code point exceeds that. The only work\-around is
1516 to not use such a large code point.
1517 .ie n .IP "Can\*(Aqt reset %ENV on this system" 4
1518 .el .IP "Can\*(Aqt reset \f(CW%ENV\fR on this system" 4
1519 .IX Item "Can't reset %ENV on this system"
1520 (F) You called \f(CWreset(\*(AqE\*(Aq)\fR or similar, which tried to reset
1521 all variables in the current package beginning with "E". In
1522 the main package, that includes \f(CW%ENV\fR. Resetting \f(CW%ENV\fR is not
1523 supported on some systems, notably VMS.
1524 .IP "Can\*(Aqt resolve method ""%s"" overloading ""%s"" in package ""%s""" 4
1525 .IX Item "Can't resolve method ""%s"" overloading ""%s"" in package ""%s"""
1526 (F)(P) Error resolving overloading specified by a method name (as
1527 opposed to a subroutine reference): no such method callable via the
1528 package. If the method name is \f(CW\*(C`???\*(C'\fR, this is an internal error.
1529 .ie n .IP "Can\*(Aqt return %s from lvalue subroutine" 4
1530 .el .IP "Can\*(Aqt return \f(CW%s\fR from lvalue subroutine" 4
1531 .IX Item "Can't return %s from lvalue subroutine"
1532 (F) Perl detected an attempt to return illegal lvalues (such as
1533 temporary or readonly values) from a subroutine used as an lvalue. This
1534 is not allowed.
1535 .IP "Can\*(Aqt return outside a subroutine" 4
1536 .IX Item "Can't return outside a subroutine"
1537 (F) The return statement was executed in mainline code, that is, where
1538 there was no subroutine call to return out of. See perlsub.
1539 .ie n .IP "Can\*(Aqt return %s to lvalue scalar context" 4
1540 .el .IP "Can\*(Aqt return \f(CW%s\fR to lvalue scalar context" 4
1541 .IX Item "Can't return %s to lvalue scalar context"
1542 (F) You tried to return a complete array or hash from an lvalue
1543 subroutine, but you called the subroutine in a way that made Perl
1544 think you meant to return only one value. You probably meant to
1545 write parentheses around the call to the subroutine, which tell
1546 Perl that the call should be in list context.
1547 .ie n .IP "Can\*(Aqt take log of %g" 4
1548 .el .IP "Can\*(Aqt take log of \f(CW%g\fR" 4
1549 .IX Item "Can't take log of %g"
1550 (F) For ordinary real numbers, you can\*(Aqt take the logarithm of a
1551 negative number or zero. There\*(Aqs a Math::Complex package that comes
1552 standard with Perl, though, if you really want to do that for the
1553 negative numbers.
1554 .ie n .IP "Can\*(Aqt take sqrt of %g" 4
1555 .el .IP "Can\*(Aqt take sqrt of \f(CW%g\fR" 4
1556 .IX Item "Can't take sqrt of %g"
1557 (F) For ordinary real numbers, you can\*(Aqt take the square root of a
1558 negative number. There\*(Aqs a Math::Complex package that comes standard
1559 with Perl, though, if you really want to do that.
1560 .IP "Can\*(Aqt undef active subroutine" 4
1561 .IX Item "Can't undef active subroutine"
1562 (F) You can\*(Aqt undefine a routine that\*(Aqs currently running. You can,
1563 however, redefine it while it\*(Aqs running, and you can even undef the
1564 redefined subroutine while the old routine is running. Go figure.
1565 .IP "Can\*(Aqt unweaken a nonreference" 4
1566 .IX Item "Can't unweaken a nonreference"
1567 (F) You attempted to unweaken something that was not a reference. Only
1568 references can be unweakened.
1569 .ie n .IP "Can\*(Aqt upgrade %s (%d) to %d" 4
1570 .el .IP "Can\*(Aqt upgrade \f(CW%s\fR (%d) to \f(CW%d\fR" 4
1571 .IX Item "Can't upgrade %s (%d) to %d"
1572 (P) The internal sv_upgrade routine adds "members" to an SV, making it
1573 into a more specialized kind of SV. The top several SV types are so
1574 specialized, however, that they cannot be interconverted. This message
1575 indicates that such a conversion was attempted.
1576 .IP "Can\*(Aqt use \*(Aq%c\*(Aq after \-mname" 4
1577 .IX Item "Can't use '%c' after -mname"
1578 (F) You tried to call perl with the \fB\-m\fR switch, but you put something
1579 other than "=" after the module name.
1580 .IP "Can\*(Aqt use a hash as a reference" 4
1581 .IX Item "Can't use a hash as a reference"
1582 (F) You tried to use a hash as a reference, as in
1583 \&\f(CW\*(C`%foo\->{"bar"}\*(C'\fR or \f(CW\*(C`%$ref\->{"hello"}\*(C'\fR. Versions of perl
1584 <= 5.22.0 used to allow this syntax, but shouldn\*(Aqt
1585 have. This was deprecated in perl 5.6.1.
1586 .IP "Can\*(Aqt use an array as a reference" 4
1587 .IX Item "Can't use an array as a reference"
1588 (F) You tried to use an array as a reference, as in
1589 \&\f(CW\*(C`@foo\->[23]\*(C'\fR or \f(CW\*(C`@$ref\->[99]\*(C'\fR. Versions of perl <= 5.22.0
1590 used to allow this syntax, but shouldn\*(Aqt have. This
1591 was deprecated in perl 5.6.1.
1592 .IP "Can\*(Aqt use anonymous symbol table for method lookup" 4
1593 .IX Item "Can't use anonymous symbol table for method lookup"
1594 (F) The internal routine that does method lookup was handed a symbol
1595 table that doesn\*(Aqt have a name. Symbol tables can become anonymous
1596 for example by undefining stashes: \f(CW\*(C`undef %Some::Package::\*(C'\fR.
1597 .ie n .IP "Can\*(Aqt use an undefined value as %s reference" 4
1598 .el .IP "Can\*(Aqt use an undefined value as \f(CW%s\fR reference" 4
1599 .IX Item "Can't use an undefined value as %s reference"
1600 (F) A value used as either a hard reference or a symbolic reference must
1601 be a defined value. This helps to delurk some insidious errors.
1602 .ie n .IP "Can\*(Aqt use bareword (""%s"") as %s ref while ""strict refs"" in use" 4
1603 .el .IP "Can\*(Aqt use bareword (""%s"") as \f(CW%s\fR ref while ""strict refs"" in use" 4
1604 .IX Item "Can't use bareword (""%s"") as %s ref while ""strict refs"" in use"
1605 (F) Only hard references are allowed by "strict refs". Symbolic
1606 references are disallowed. See perlref.
1607 .IP "Can\*(Aqt use %! because Errno.pm is not available" 4
1608 .IX Item "Can't use %! because Errno.pm is not available"
1609 (F) The first time the \f(CW\*(C`%!\*(C'\fR hash is used, perl automatically loads the
1610 Errno.pm module. The Errno module is expected to tie the %! hash to
1611 provide symbolic names for \f(CW$!\fR errno values.
1612 .ie n .IP "Can\*(Aqt use both \*(Aq<\*(Aq and \*(Aq>\*(Aq after type \*(Aq%c\*(Aq in %s" 4
1613 .el .IP "Can\*(Aqt use both \*(Aq<\*(Aq and \*(Aq>\*(Aq after type \*(Aq%c\*(Aq in \f(CW%s\fR" 4
1614 .IX Item "Can't use both '<' and '>' after type '%c' in %s"
1615 (F) A type cannot be forced to have both big\-endian and little\-endian
1616 byte\-order at the same time, so this combination of modifiers is not
1617 allowed. See "pack" in perlfunc.
1618 .IP "Can\*(Aqt use \*(Aqdefined(@array)\*(Aq (Maybe you should just omit the \fBdefined()\fR?)" 4
1619 .IX Item "Can't use 'defined(@array)' (Maybe you should just omit the defined()?)"
1620 (F) \fBdefined()\fR is not useful on arrays because it
1621 checks for an undefined \fIscalar\fR value. If you want to see if the
1622 array is empty, just use \f(CW\*(C`if (@array) { # not empty }\*(C'\fR for example.
1623 .IP "Can\*(Aqt use \*(Aqdefined(%hash)\*(Aq (Maybe you should just omit the \fBdefined()\fR?)" 4
1624 .IX Item "Can't use 'defined(%hash)' (Maybe you should just omit the defined()?)"
1625 (F) \f(CWdefined()\fR is not usually right on hashes.
1626 .Sp
1627 Although \f(CW\*(C`defined %hash\*(C'\fR is false on a plain not\-yet\-used hash, it
1628 becomes true in several non\-obvious circumstances, including iterators,
1629 weak references, stash names, even remaining true after \f(CW\*(C`undef %hash\*(C'\fR.
1630 These things make \f(CW\*(C`defined %hash\*(C'\fR fairly useless in practice, so it now
1631 generates a fatal error.
1632 .Sp
1633 If a check for non\-empty is what you wanted then just put it in boolean
1634 context (see "Scalar values" in perldata):
1635 .Sp
1636 .Vb 3
1637 \& if (%hash) {
1638 \& # not empty
1639 \& }
1640 .Ve
1641 .Sp
1642 If you had \f(CW\*(C`defined %Foo::Bar::QUUX\*(C'\fR to check whether such a package
1643 variable exists then that\*(Aqs never really been reliable, and isn\*(Aqt
1644 a good way to enquire about the features of a package, or whether
1645 it\*(Aqs loaded, etc.
1646 .ie n .IP "Can\*(Aqt use %s for loop variable" 4
1647 .el .IP "Can\*(Aqt use \f(CW%s\fR for loop variable" 4
1648 .IX Item "Can't use %s for loop variable"
1649 (P) The parser got confused when trying to parse a \f(CW\*(C`foreach\*(C'\fR loop.
1650 .ie n .IP "Can\*(Aqt use global %s in %s" 4
1651 .el .IP "Can\*(Aqt use global \f(CW%s\fR in \f(CW%s\fR" 4
1652 .IX Item "Can't use global %s in %s"
1653 (F) You tried to declare a magical variable as a lexical variable. This
1654 is not allowed, because the magic can be tied to only one location
1655 (namely the global variable) and it would be incredibly confusing to
1656 have variables in your program that looked like magical variables but
1657 weren\*(Aqt.
1658 .ie n .IP "Can\*(Aqt use \*(Aq%c\*(Aq in a group with different byte\-order in %s" 4
1659 .el .IP "Can\*(Aqt use \*(Aq%c\*(Aq in a group with different byte\-order in \f(CW%s\fR" 4
1660 .IX Item "Can't use '%c' in a group with different byte-order in %s"
1661 (F) You attempted to force a different byte\-order on a type
1662 that is already inside a group with a byte\-order modifier.
1663 For example you cannot force little\-endianness on a type that
1664 is inside a big\-endian group.
1665 .ie n .IP "Can\*(Aqt use ""my %s"" in sort comparison" 4
1666 .el .IP "Can\*(Aqt use ""my \f(CW%s\fR"" in sort comparison" 4
1667 .IX Item "Can't use ""my %s"" in sort comparison"
1668 (F) The global variables \f(CW$a\fR and \f(CW$b\fR are reserved for sort comparisons.
1669 You mentioned \f(CW$a\fR or \f(CW$b\fR in the same line as the <=> or cmp operator,
1670 and the variable had earlier been declared as a lexical variable.
1671 Either qualify the sort variable with the package name, or rename the
1672 lexical variable.
1673 .ie n .IP "Can\*(Aqt use %s ref as %s ref" 4
1674 .el .IP "Can\*(Aqt use \f(CW%s\fR ref as \f(CW%s\fR ref" 4
1675 .IX Item "Can't use %s ref as %s ref"
1676 (F) You\*(Aqve mixed up your reference types. You have to dereference a
1677 reference of the type needed. You can use the \fBref()\fR function to
1678 test the type of the reference, if need be.
1679 .ie n .IP "Can\*(Aqt use string (""%s"") as %s ref while ""strict refs"" in use" 4
1680 .el .IP "Can\*(Aqt use string (""%s"") as \f(CW%s\fR ref while ""strict refs"" in use" 4
1681 .IX Item "Can't use string (""%s"") as %s ref while ""strict refs"" in use"
1682 .PD 0
1683 .ie n .IP "Can\*(Aqt use string (""%s""...) as %s ref while ""strict refs"" in use" 4
1684 .el .IP "Can\*(Aqt use string (""%s""...) as \f(CW%s\fR ref while ""strict refs"" in use" 4
1685 .IX Item "Can't use string (""%s""...) as %s ref while ""strict refs"" in use"
1686 .PD
1687 (F) You\*(Aqve told Perl to dereference a string, something which
1688 \&\f(CW\*(C`use strict\*(C'\fR blocks to prevent it happening accidentally. See
1689 "Symbolic references" in perlref. This can be triggered by an \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`$\*(C'\fR
1690 in a double\-quoted string immediately before interpolating a variable,
1691 for example in \f(CW"user @$twitter_id"\fR, which says to treat the contents
1692 of \f(CW$twitter_id\fR as an array reference; use a \f(CW\*(C`\e\*(C'\fR to have a literal \f(CW\*(C`@\*(C'\fR
1693 symbol followed by the contents of \f(CW$twitter_id\fR: \f(CW"user \e@$twitter_id"\fR.
1694 .ie n .IP "Can\*(Aqt use subscript on %s" 4
1695 .el .IP "Can\*(Aqt use subscript on \f(CW%s\fR" 4
1696 .IX Item "Can't use subscript on %s"
1697 (F) The compiler tried to interpret a bracketed expression as a
1698 subscript. But to the left of the brackets was an expression that
1699 didn\*(Aqt look like a hash or array reference, or anything else subscriptable.
1700 .IP "Can\*(Aqt use \e%c to mean $%c in expression" 4
1701 .IX Item "Can't use %c to mean $%c in expression"
1702 (W syntax) In an ordinary expression, backslash is a unary operator that
1703 creates a reference to its argument. The use of backslash to indicate a
1704 backreference to a matched substring is valid only as part of a regular
1705 expression pattern. Trying to do this in ordinary Perl code produces a
1706 value that prints out looking like \fBSCALAR\fR\|(0xdecaf). Use the \f(CW$1\fR form
1707 instead.
1708 .IP "Can\*(Aqt weaken a nonreference" 4
1709 .IX Item "Can't weaken a nonreference"
1710 (F) You attempted to weaken something that was not a reference. Only
1711 references can be weakened.
1712 .IP "Can\*(Aqt ""when"" outside a topicalizer" 4
1713 .IX Item "Can't ""when"" outside a topicalizer"
1714 (F) You have used a \fBwhen()\fR block that is neither inside a \f(CW\*(C`foreach\*(C'\fR
1715 loop nor a \f(CW\*(C`given\*(C'\fR block. (Note that this error is issued on exit
1716 from the \f(CW\*(C`when\*(C'\fR block, so you won\*(Aqt get the error if the match fails,
1717 or if you use an explicit \f(CW\*(C`continue\*(C'\fR.)
1718 .IP "Can\*(Aqt x= to read\-only value" 4
1719 .IX Item "Can't x= to read-only value"
1720 (F) You tried to repeat a constant value (often the undefined value)
1721 with an assignment operator, which implies modifying the value itself.
1722 Perhaps you need to copy the value to a temporary, and repeat that.
1723 .IP "catch block requires a (VAR)" 4
1724 .IX Item "catch block requires a (VAR)"
1725 (F) You tried to use the \f(CW\*(C`try\*(C'\fR and \f(CW\*(C`catch\*(C'\fR syntax of \f(CW\*(C`use feature \*(Aqtry\*(Aq\*(C'\fR
1726 but did not include the error variable in the \f(CW\*(C`catch\*(C'\fR block. The
1727 parenthesized variable name is not optional, unlike in some other forms of
1728 syntax you may be familiar with from CPAN modules or other languages.
1729 .Sp
1730 The required syntax is
1731 .Sp
1732 .Vb 2
1733 \& try { ... }
1734 \& catch ($var) { ... }
1735 .Ve
1736 .IP "Changing use VERSION while another use VERSION is in scope is now deprecated" 4
1737 .IX Item "Changing use VERSION while another use VERSION is in scope is now deprecated"
1738 (W deprecated) Once you have a \f(CW\*(C`use VERSION\*(C'\fR statement in scope, any
1739 \&\f(CW\*(C`use VERSION\*(C'\fR statement that requests a different version is now deprecated,
1740 due to the increasing complexity of swapping from one prevailing version to
1741 another.
1742 .Sp
1743 It is suggested that you do not try to mix multiple different version
1744 declarations within the same file as it leads to complex behaviours about the
1745 visibility of features and builtin functions, as well as confusing human
1746 readers.
1747 .Sp
1748 If it is essential to have different \f(CW\*(C`use VERSION\*(C'\fR declarations in different
1749 regions of the same file, you should surround each one by its own enclosing
1750 scope so the two do not mix.
1751 .Sp
1752 .Vb 8
1753 \& {
1754 \& use v5.20;
1755 \& ...
1756 \& }
1757 \& {
1758 \& use v5.36;
1759 \& ...
1760 \& }
1761 .Ve
1762 .IP "Character following ""\ec"" must be printable ASCII" 4
1763 .IX Item "Character following ""c"" must be printable ASCII"
1764 (F) In \f(CW\*(C`\ec\fR\f(CIX\fR\f(CW\*(C'\fR, \fIX\fR must be a printable (non\-control) ASCII character.
1765 .Sp
1766 Note that ASCII characters that don\*(Aqt map to control characters are
1767 discouraged, and will generate the warning (when enabled)
1768 ""\ec%c" is more clearly written simply as "%s"".
1769 .IP "Character following \e%c must be \*(Aq{\*(Aq or a single\-character Unicode property name in regex; marked by <\-\- HERE in m/%s/" 4
1770 .IX Item "Character following %c must be '{' or a single-character Unicode property name in regex; marked by <-- HERE in m/%s/"
1771 (F) (In the above the \f(CW%c\fR is replaced by either \f(CW\*(C`p\*(C'\fR or \f(CW\*(C`P\*(C'\fR.) You
1772 specified something that isn\*(Aqt a legal Unicode property name. Most
1773 Unicode properties are specified by \f(CW\*(C`\ep{...}\*(C'\fR. But if the name is a
1774 single character one, the braces may be omitted.
1775 .IP "Character in \*(AqC\*(Aq format wrapped in pack" 4
1776 .IX Item "Character in 'C' format wrapped in pack"
1777 (W pack) You said
1778 .Sp
1779 .Vb 1
1780 \& pack("C", $x)
1781 .Ve
1782 .Sp
1783 where \f(CW$x\fR is either less than 0 or more than 255; the \f(CW"C"\fR format is
1784 only for encoding native operating system characters (ASCII, EBCDIC,
1785 and so on) and not for Unicode characters, so Perl behaved as if you meant
1786 .Sp
1787 .Vb 1
1788 \& pack("C", $x & 255)
1789 .Ve
1790 .Sp
1791 If you actually want to pack Unicode codepoints, use the \f(CW"U"\fR format
1792 instead.
1793 .IP "Character in \*(Aqc\*(Aq format wrapped in pack" 4
1794 .IX Item "Character in 'c' format wrapped in pack"
1795 (W pack) You said
1796 .Sp
1797 .Vb 1
1798 \& pack("c", $x)
1799 .Ve
1800 .Sp
1801 where \f(CW$x\fR is either less than \-128 or more than 127; the \f(CW"c"\fR format
1802 is only for encoding native operating system characters (ASCII, EBCDIC,
1803 and so on) and not for Unicode characters, so Perl behaved as if you meant
1804 .Sp
1805 .Vb 1
1806 \& pack("c", $x & 255);
1807 .Ve
1808 .Sp
1809 If you actually want to pack Unicode codepoints, use the \f(CW"U"\fR format
1810 instead.
1811 .IP "Character in \*(Aq%c\*(Aq format wrapped in unpack" 4
1812 .IX Item "Character in '%c' format wrapped in unpack"
1813 (W unpack) You tried something like
1814 .Sp
1815 .Vb 1
1816 \& unpack("H", "\ex{2a1}")
1817 .Ve
1818 .Sp
1819 where the format expects to process a byte (a character with a value
1820 below 256), but a higher value was provided instead. Perl uses the
1821 value modulus 256 instead, as if you had provided:
1822 .Sp
1823 .Vb 1
1824 \& unpack("H", "\ex{a1}")
1825 .Ve
1826 .IP "Character in \*(AqW\*(Aq format wrapped in pack" 4
1827 .IX Item "Character in 'W' format wrapped in pack"
1828 (W pack) You said
1829 .Sp
1830 .Vb 1
1831 \& pack("U0W", $x)
1832 .Ve
1833 .Sp
1834 where \f(CW$x\fR is either less than 0 or more than 255. However, \f(CW\*(C`U0\*(C'\fR\-mode
1835 expects all values to fall in the interval [0, 255], so Perl behaved
1836 as if you meant:
1837 .Sp
1838 .Vb 1
1839 \& pack("U0W", $x & 255)
1840 .Ve
1841 .IP "Character(s) in \*(Aq%c\*(Aq format wrapped in pack" 4
1842 .IX Item "Character(s) in '%c' format wrapped in pack"
1843 (W pack) You tried something like
1844 .Sp
1845 .Vb 1
1846 \& pack("u", "\ex{1f3}b")
1847 .Ve
1848 .Sp
1849 where the format expects to process a sequence of bytes (character with a
1850 value below 256), but some of the characters had a higher value. Perl
1851 uses the character values modulus 256 instead, as if you had provided:
1852 .Sp
1853 .Vb 1
1854 \& pack("u", "\ex{f3}b")
1855 .Ve
1856 .IP "Character(s) in \*(Aq%c\*(Aq format wrapped in unpack" 4
1857 .IX Item "Character(s) in '%c' format wrapped in unpack"
1858 (W unpack) You tried something like
1859 .Sp
1860 .Vb 1
1861 \& unpack("s", "\ex{1f3}b")
1862 .Ve
1863 .Sp
1864 where the format expects to process a sequence of bytes (character with a
1865 value below 256), but some of the characters had a higher value. Perl
1866 uses the character values modulus 256 instead, as if you had provided:
1867 .Sp
1868 .Vb 1
1869 \& unpack("s", "\ex{f3}b")
1870 .Ve
1871 .ie n .IP "charnames alias definitions may not contain a sequence of multiple spaces; marked by <\-\-\ HERE in %s" 4
1872 .el .IP "charnames alias definitions may not contain a sequence of multiple spaces; marked by <\-\-\ HERE in \f(CW%s\fR" 4
1873 .IX Item "charnames alias definitions may not contain a sequence of multiple spaces; marked by <-- HERE in %s"
1874 (F) You defined a character name which had multiple space characters
1875 in a row. Change them to single spaces. Usually these names are
1876 defined in the \f(CW\*(C`:alias\*(C'\fR import argument to \f(CW\*(C`use charnames\*(C'\fR, but they
1877 could be defined by a translator installed into \f(CW$^H{charnames}\fR. See
1878 "CUSTOM ALIASES" in charnames.
1879 .ie n .IP "\fBchdir()\fR on unopened filehandle %s" 4
1880 .el .IP "\fBchdir()\fR on unopened filehandle \f(CW%s\fR" 4
1881 .IX Item "chdir() on unopened filehandle %s"
1882 (W unopened) You tried \fBchdir()\fR on a filehandle that was never opened.
1883 .IP """\ec%c"" is more clearly written simply as ""%s""" 4
1884 .IX Item """c%c"" is more clearly written simply as ""%s"""
1885 (W syntax) The \f(CW\*(C`\ec\fR\f(CIX\fR\f(CW\*(C'\fR construct is intended to be a way to specify
1886 non\-printable characters. You used it for a printable one, which
1887 is better written as simply itself, perhaps preceded by a backslash
1888 for non\-word characters. Doing it the way you did is not portable
1889 between ASCII and EBCDIC platforms.
1890 .IP "Class already has a superclass, cannot add another" 4
1891 .IX Item "Class already has a superclass, cannot add another"
1892 (F) You attempted to specify a second superclass for a \f(CW\*(C`class\*(C'\fR by using
1893 the \f(CW\*(C`:isa\*(C'\fR attribute, when one is already specified. Unlike classes
1894 whose instances are created with \f(CW\*(C`bless\*(C'\fR, classes created via the
1895 \&\f(CW\*(C`class\*(C'\fR keyword cannot have more than one superclass.
1896 .ie n .IP "Class attribute %s requires a value" 4
1897 .el .IP "Class attribute \f(CW%s\fR requires a value" 4
1898 .IX Item "Class attribute %s requires a value"
1899 (F) You specified an attribute for a class that would require a value to
1900 be passed in parentheses, but did not provide one. Remember that
1901 whitespace is \fBnot\fR permitted between the attribute name and its value;
1902 you must write this as
1903 .Sp
1904 .Vb 1
1905 \& class Example::Class :attr(VALUE) ...
1906 .Ve
1907 .IP "class is experimental" 4
1908 .IX Item "class is experimental"
1909 (S experimental::class) This warning is emitted if you use the \f(CW\*(C`class\*(C'\fR
1910 keyword of \f(CW\*(C`use feature \*(Aqclass\*(Aq\*(C'\fR. This keyword is currently
1911 experimental and its behaviour may change in future releases of Perl.
1912 .IP "Class :isa attribute requires a class but ""%s"" is not one" 4
1913 .IX Item "Class :isa attribute requires a class but ""%s"" is not one"
1914 (F) When creating a subclass using the \f(CW\*(C`class\*(C'\fR \f(CW\*(C`:isa\*(C'\fR attribute, the
1915 named superclass must also be a real class created using the \f(CW\*(C`class\*(C'\fR
1916 keyword.
1917 .IP "Cloning substitution context is unimplemented" 4
1918 .IX Item "Cloning substitution context is unimplemented"
1919 (F) Creating a new thread inside the \f(CW\*(C`s///\*(C'\fR operator is not supported.
1920 .ie n .IP "\fBclose()\fR on unopened filehandle %s" 4
1921 .el .IP "\fBclose()\fR on unopened filehandle \f(CW%s\fR" 4
1922 .IX Item "close() on unopened filehandle %s"
1923 (W unopened) You tried to close a filehandle that was never opened.
1924 .IP "Closure prototype called" 4
1925 .IX Item "Closure prototype called"
1926 (F) If a closure has attributes, the subroutine passed to an attribute
1927 handler is the prototype that is cloned when a new closure is created.
1928 This subroutine cannot be called.
1929 .IP "\eC no longer supported in regex; marked by <\-\-\ HERE in m/%s/" 4
1930 .IX Item "C no longer supported in regex; marked by <-- HERE in m/%s/"
1931 (F) The \eC character class used to allow a match of single byte
1932 within a multi\-byte utf\-8 character, but was removed in v5.24 as
1933 it broke encapsulation and its implementation was extremely buggy.
1934 If you really need to process the individual bytes, you probably
1935 want to convert your string to one where each underlying byte is
1936 stored as a character, with \fButf8::encode()\fR.
1937 .IP "Code missing after \*(Aq/\*(Aq" 4
1938 .IX Item "Code missing after '/'"
1939 (F) You had a (sub\-)template that ends with a \*(Aq/\*(Aq. There must be
1940 another template code following the slash. See "pack" in perlfunc.
1941 .IP "Code point 0x%X is not Unicode, and not portable" 4
1942 .IX Item "Code point 0x%X is not Unicode, and not portable"
1943 (S non_unicode portable) You had a code point that has never been in any
1944 standard, so it is likely that languages other than Perl will NOT
1945 understand it. This code point also will not fit in a 32\-bit word on
1946 ASCII platforms and therefore is non\-portable between systems.
1947 .Sp
1948 At one time, it was legal in some standards to have code points up to
1949 0x7FFF_FFFF, but not higher, and this code point is higher.
1950 .Sp
1951 Acceptance of these code points is a Perl extension, and you should
1952 expect that nothing other than Perl can handle them; Perl itself on
1953 EBCDIC platforms before v5.24 does not handle them.
1954 .Sp
1955 Perl also makes no guarantees that the representation of these code
1956 points won\*(Aqt change at some point in the future, say when machines
1957 become available that have larger than a 64\-bit word. At that time,
1958 files containing any of these, written by an older Perl might require
1959 conversion before being readable by a newer Perl.
1960 .IP "Code point 0x%X is not Unicode, may not be portable" 4
1961 .IX Item "Code point 0x%X is not Unicode, may not be portable"
1962 (S non_unicode) You had a code point above the Unicode maximum
1963 of U+10FFFF.
1964 .Sp
1965 Perl allows strings to contain a superset of Unicode code points, but
1966 these may not be accepted by other languages/systems. Further, even if
1967 these languages/systems accept these large code points, they may have
1968 chosen a different representation for them than the UTF\-8\-like one that
1969 Perl has, which would mean files are not exchangeable between them and
1970 Perl.
1971 .Sp
1972 On EBCDIC platforms, code points above 0x3FFF_FFFF have a different
1973 representation in Perl v5.24 than before, so any file containing these
1974 that was written before that version will require conversion before
1975 being readable by a later Perl.
1976 .ie n .IP "%s: Command not found" 4
1977 .el .IP "\f(CW%s:\fR Command not found" 4
1978 .IX Item "%s: Command not found"
1979 (A) You\*(Aqve accidentally run your script through \fBcsh\fR or another shell
1980 instead of Perl. Check the #! line, or manually feed your script into
1981 Perl yourself. The #! line at the top of your file could look like
1982 .Sp
1983 .Vb 1
1984 \& #!/usr/bin/perl
1985 .Ve
1986 .ie n .IP "%s: command not found" 4
1987 .el .IP "\f(CW%s:\fR command not found" 4
1988 .IX Item "%s: command not found"
1989 (A) You\*(Aqve accidentally run your script through \fBbash\fR or another shell
1990 instead of Perl. Check the #! line, or manually feed your script into
1991 Perl yourself. The #! line at the top of your file could look like
1992 .Sp
1993 .Vb 1
1994 \& #!/usr/bin/perl
1995 .Ve
1996 .ie n .IP "%s: command not found: %s" 4
1997 .el .IP "\f(CW%s:\fR command not found: \f(CW%s\fR" 4
1998 .IX Item "%s: command not found: %s"
1999 (A) You\*(Aqve accidentally run your script through \fBzsh\fR or another shell
2000 instead of Perl. Check the #! line, or manually feed your script into
2001 Perl yourself. The #! line at the top of your file could look like
2002 .Sp
2003 .Vb 1
2004 \& #!/usr/bin/perl
2005 .Ve
2006 .IP "Compilation failed in require" 4
2007 .IX Item "Compilation failed in require"
2008 (F) Perl could not compile a file specified in a \f(CW\*(C`require\*(C'\fR statement.
2009 Perl uses this generic message when none of the errors that it
2010 encountered were severe enough to halt compilation immediately.
2011 .ie n .IP "\fBconnect()\fR on closed socket %s" 4
2012 .el .IP "\fBconnect()\fR on closed socket \f(CW%s\fR" 4
2013 .IX Item "connect() on closed socket %s"
2014 (W closed) You tried to do a connect on a closed socket. Did you forget
2015 to check the return value of your \fBsocket()\fR call? See
2016 "connect" in perlfunc.
2017 .IP "Constant(%s): Call to &{$^H{%s}} did not return a defined value" 4
2018 .IX Item "Constant(%s): Call to &{$^H{%s}} did not return a defined value"
2019 (F) The subroutine registered to handle constant overloading
2020 (see overload) or a custom charnames handler (see
2021 "CUSTOM TRANSLATORS" in charnames) returned an undefined value.
2022 .IP "Constant(%s): $^H{%s} is not defined" 4
2023 .IX Item "Constant(%s): $^H{%s} is not defined"
2024 (F) The parser found inconsistencies while attempting to define an
2025 overloaded constant. Perhaps you forgot to load the corresponding
2026 overload pragma?
2027 .ie n .IP "Constant is not %s reference" 4
2028 .el .IP "Constant is not \f(CW%s\fR reference" 4
2029 .IX Item "Constant is not %s reference"
2030 (F) A constant value (perhaps declared using the \f(CW\*(C`use constant\*(C'\fR pragma)
2031 is being dereferenced, but it amounts to the wrong type of reference.
2032 The message indicates the type of reference that was expected. This
2033 usually indicates a syntax error in dereferencing the constant value.
2034 See "Constant Functions" in perlsub and constant.
2035 .IP "Constants from lexical variables potentially modified elsewhere are no longer permitted" 4
2036 .IX Item "Constants from lexical variables potentially modified elsewhere are no longer permitted"
2037 (F) You wrote something like
2038 .Sp
2039 .Vb 2
2040 \& my $var;
2041 \& $sub = sub () { $var };
2042 .Ve
2043 .Sp
2044 but \f(CW$var\fR is referenced elsewhere and could be modified after the \f(CW\*(C`sub\*(C'\fR
2045 expression is evaluated. Either it is explicitly modified elsewhere
2046 (\f(CW\*(C`$var = 3\*(C'\fR) or it is passed to a subroutine or to an operator like
2047 \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`map\*(C'\fR, which may or may not modify the variable.
2048 .Sp
2049 Traditionally, Perl has captured the value of the variable at that
2050 point and turned the subroutine into a constant eligible for inlining.
2051 In those cases where the variable can be modified elsewhere, this
2052 breaks the behavior of closures, in which the subroutine captures
2053 the variable itself, rather than its value, so future changes to the
2054 variable are reflected in the subroutine\*(Aqs return value.
2055 .Sp
2056 This usage was deprecated, and as of Perl 5.32 is no longer allowed,
2057 making it possible to change the behavior in the future.
2058 .Sp
2059 If you intended for the subroutine to be eligible for inlining, then
2060 make sure the variable is not referenced elsewhere, possibly by
2061 copying it:
2062 .Sp
2063 .Vb 2
2064 \& my $var2 = $var;
2065 \& $sub = sub () { $var2 };
2066 .Ve
2067 .Sp
2068 If you do want this subroutine to be a closure that reflects future
2069 changes to the variable that it closes over, add an explicit \f(CW\*(C`return\*(C'\fR:
2070 .Sp
2071 .Vb 2
2072 \& my $var;
2073 \& $sub = sub () { return $var };
2074 .Ve
2075 .ie n .IP "Constant subroutine %s redefined" 4
2076 .el .IP "Constant subroutine \f(CW%s\fR redefined" 4
2077 .IX Item "Constant subroutine %s redefined"
2078 (W redefine)(S) You redefined a subroutine which had previously
2079 been eligible for inlining. See "Constant Functions" in perlsub
2080 for commentary and workarounds.
2081 .ie n .IP "Constant subroutine %s undefined" 4
2082 .el .IP "Constant subroutine \f(CW%s\fR undefined" 4
2083 .IX Item "Constant subroutine %s undefined"
2084 (W misc) You undefined a subroutine which had previously been eligible
2085 for inlining. See "Constant Functions" in perlsub for commentary and
2086 workarounds.
2087 .IP "Constant(%s) unknown" 4
2088 .IX Item "Constant(%s) unknown"
2089 (F) The parser found inconsistencies either while attempting
2090 to define an overloaded constant, or when trying to find the
2091 character name specified in the \f(CW\*(C`\eN{...}\*(C'\fR escape. Perhaps you
2092 forgot to load the corresponding overload pragma?
2093 .IP ":const is not permitted on named subroutines" 4
2094 .IX Item ":const is not permitted on named subroutines"
2095 (F) The "const" attribute causes an anonymous subroutine to be run and
2096 its value captured at the time that it is cloned. Named subroutines are
2097 not cloned like this, so the attribute does not make sense on them.
2098 .IP "Copy method did not return a reference" 4
2099 .IX Item "Copy method did not return a reference"
2100 (F) The method which overloads "=" is buggy. See
2101 "Copy Constructor" in overload.
2102 .IP "&CORE::%s cannot be called directly" 4
2103 .IX Item "&CORE::%s cannot be called directly"
2104 (F) You tried to call a subroutine in the \f(CW\*(C`CORE::\*(C'\fR namespace
2105 with \f(CW&foo\fR syntax or through a reference. Some subroutines
2106 in this package cannot yet be called that way, but must be
2107 called as barewords. Something like this will work:
2108 .Sp
2109 .Vb 2
2110 \& BEGIN { *shove = \e&CORE::push; }
2111 \& shove @array, 1,2,3; # pushes on to @array
2112 .Ve
2113 .IP "CORE::%s is not a keyword" 4
2114 .IX Item "CORE::%s is not a keyword"
2115 (F) The CORE:: namespace is reserved for Perl keywords.
2116 .ie n .IP "Corrupted regexp opcode %d > %d" 4
2117 .el .IP "Corrupted regexp opcode \f(CW%d\fR > \f(CW%d\fR" 4
2118 .IX Item "Corrupted regexp opcode %d > %d"
2119 (P) This is either an error in Perl, or, if you\*(Aqre using
2120 one, your custom regular expression engine. If not the
2121 latter, report the problem to <https://github.com/Perl/perl5/issues/new/choose>.
2122 .IP "corrupted regexp pointers" 4
2123 .IX Item "corrupted regexp pointers"
2124 (P) The regular expression engine got confused by what the regular
2125 expression compiler gave it.
2126 .IP "corrupted regexp program" 4
2127 .IX Item "corrupted regexp program"
2128 (P) The regular expression engine got passed a regexp program without a
2129 valid magic number.
2130 .IP "Corrupt malloc ptr 0x%x at 0x%x" 4
2131 .IX Item "Corrupt malloc ptr 0x%x at 0x%x"
2132 (P) The malloc package that comes with Perl had an internal failure.
2133 .IP "Count after length/code in unpack" 4
2134 .IX Item "Count after length/code in unpack"
2135 (F) You had an unpack template indicating a counted\-length string, but
2136 you have also specified an explicit size for the string. See
2137 "pack" in perlfunc.
2138 .IP "Declaring references is experimental" 4
2139 .IX Item "Declaring references is experimental"
2140 (S experimental::declared_refs) This warning is emitted if you use
2141 a reference constructor on the right\-hand side of \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`our\*(C'\fR, or
2142 \&\f(CW\*(C`local\*(C'\fR. Simply suppress the warning if you want to use the feature, but
2143 know that in doing so you are taking the risk of using an experimental
2144 feature which may change or be removed in a future Perl version:
2145 .Sp
2146 .Vb 3
2147 \& no warnings "experimental::declared_refs";
2148 \& use feature "declared_refs";
2149 \& $fooref = my \e$foo;
2150 .Ve
2151 .IP "Deep recursion on anonymous subroutine" 4
2152 .IX Item "Deep recursion on anonymous subroutine"
2153 .PD 0
2154 .IP "Deep recursion on subroutine ""%s""" 4
2155 .IX Item "Deep recursion on subroutine ""%s"""
2156 .PD
2157 (W recursion) This subroutine has called itself (directly or indirectly)
2158 100 times more than it has returned. This probably indicates an
2159 infinite recursion, unless you\*(Aqre writing strange benchmark programs, in
2160 which case it indicates something else.
2161 .Sp
2162 This threshold can be changed from 100, by recompiling the \fIperl\fR binary,
2163 setting the C pre\-processor macro \f(CW\*(C`PERL_SUB_DEPTH_WARN\*(C'\fR to the desired value.
2164 .IP "(?(DEFINE)....) does not allow branches in regex; marked by <\-\-\ HERE in m/%s/" 4
2165 .IX Item "(?(DEFINE)....) does not allow branches in regex; marked by <-- HERE in m/%s/"
2166 (F) You used something like \f(CW\*(C`(?(DEFINE)...|..)\*(C'\fR which is illegal. The
2167 most likely cause of this error is that you left out a parenthesis inside
2168 of the \f(CW\*(C`....\*(C'\fR part.
2169 .Sp
2170 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
2171 discovered.
2172 .ie n .IP "%s defines neither package nor VERSION\-\-version check failed" 4
2173 .el .IP "\f(CW%s\fR defines neither package nor VERSION\-\-version check failed" 4
2174 .IX Item "%s defines neither package nor VERSION--version check failed"
2175 (F) You said something like "use Module 42" but in the Module file
2176 there are neither package declarations nor a \f(CW$VERSION\fR.
2177 .IP "delete argument is not a HASH or ARRAY element or slice" 4
2178 .IX Item "delete argument is not a HASH or ARRAY element or slice"
2179 (F) The argument to \f(CW\*(C`delete\*(C'\fR must be either a hash or array element,
2180 such as:
2181 .Sp
2182 .Vb 2
2183 \& $foo{$bar}
2184 \& $ref\->{"susie"}[12]
2185 .Ve
2186 .Sp
2187 or a hash or array slice, such as:
2188 .Sp
2189 .Vb 2
2190 \& @foo[$bar, $baz, $xyzzy]
2191 \& $ref\->[12]\->@{"susie", "queue"}
2192 .Ve
2193 .Sp
2194 or a hash key/value or array index/value slice, such as:
2195 .Sp
2196 .Vb 2
2197 \& %foo[$bar, $baz, $xyzzy]
2198 \& $ref\->[12]\->%{"susie", "queue"}
2199 .Ve
2200 .IP "Delimiter for here document is too long" 4
2201 .IX Item "Delimiter for here document is too long"
2202 (F) In a here document construct like \f(CW\*(C`<<FOO\*(C'\fR, the label \f(CW\*(C`FOO\*(C'\fR is too
2203 long for Perl to handle. You have to be seriously twisted to write code
2204 that triggers this error.
2205 .IP "DESTROY created new reference to dead object \*(Aq%s\*(Aq" 4
2206 .IX Item "DESTROY created new reference to dead object '%s'"
2207 (F) A \fBDESTROY()\fR method created a new reference to the object which is
2208 just being DESTROYed. Perl is confused, and prefers to abort rather
2209 than to create a dangling reference.
2210 .IP "Did not produce a valid header" 4
2211 .IX Item "Did not produce a valid header"
2212 See "500 Server error".
2213 .ie n .IP "%s did not return a true value" 4
2214 .el .IP "\f(CW%s\fR did not return a true value" 4
2215 .IX Item "%s did not return a true value"
2216 (F) A required (or used) file must return a true value to indicate that
2217 it compiled correctly and ran its initialization code correctly. It\*(Aqs
2218 traditional to end such a file with a "1;", though any true value would
2219 do. See "require" in perlfunc.
2220 .IP "(Did you mean &%s instead?)" 4
2221 .IX Item "(Did you mean &%s instead?)"
2222 (W misc) You probably referred to an imported subroutine &FOO as \f(CW$FOO\fR or
2223 some such.
2224 .IP "(Did you mean ""local"" instead of ""our""?)" 4
2225 .IX Item "(Did you mean ""local"" instead of ""our""?)"
2226 (W shadow) Remember that "our" does not localize the declared global
2227 variable. You have declared it again in the same lexical scope, which
2228 seems superfluous.
2229 .IP "(Did you mean $ or @ instead of %?)" 4
2230 .IX Item "(Did you mean $ or @ instead of %?)"
2231 (W) You probably said \f(CW%hash\fR{$key} when you meant \f(CW$hash\fR{$key} or
2232 \&\f(CW@hash\fR{@keys}. On the other hand, maybe you just meant \f(CW%hash\fR and got
2233 carried away.
2234 .IP Died 4
2235 .IX Item "Died"
2236 (F) You passed \fBdie()\fR an empty string (the equivalent of \f(CW\*(C`die ""\*(C'\fR) or
2237 you called it with no args and \f(CW$@\fR was empty.
2238 .IP "Document contains no data" 4
2239 .IX Item "Document contains no data"
2240 See "500 Server error".
2241 .ie n .IP "%s does not define %s::VERSION\-\-version check failed" 4
2242 .el .IP "\f(CW%s\fR does not define \f(CW%s::VERSION\fR\-\-version check failed" 4
2243 .IX Item "%s does not define %s::VERSION--version check failed"
2244 (F) You said something like "use Module 42" but the Module did not
2245 define a \f(CW$VERSION\fR.
2246 .ie n .IP "\*(Aq/\*(Aq does not take a repeat count in %s" 4
2247 .el .IP "\*(Aq/\*(Aq does not take a repeat count in \f(CW%s\fR" 4
2248 .IX Item "'/' does not take a repeat count in %s"
2249 (F) You cannot put a repeat count of any kind right after the \*(Aq/\*(Aq code.
2250 See "pack" in perlfunc.
2251 .ie n .IP "do ""%s"" failed, \*(Aq.\*(Aq is no longer in @INC; did you mean do ""./%s""?" 4
2252 .el .IP "do ""%s"" failed, \*(Aq.\*(Aq is no longer in \f(CW@INC\fR; did you mean do ""./%s""?" 4
2253 .IX Item "do ""%s"" failed, '.' is no longer in @INC; did you mean do ""./%s""?"
2254 (D deprecated::dot_in_inc) Previously \f(CW\*(C` do "somefile"; \*(C'\fR would search
2255 the current directory for the specified file. Since perl v5.26.0, \fI.\fR
2256 has been removed from \f(CW@INC\fR by default, so this is no longer true. To
2257 search the current directory (and only the current directory) you can
2258 write \f(CW\*(C` do "./somefile"; \*(C'\fR.
2259 .IP "\*(Aq%s\*(Aq does not appear to be an imported builtin function" 4
2260 .IX Item "'%s' does not appear to be an imported builtin function"
2261 (F) An attempt was made to remove a previously\-imported lexical from
2262 builtin by using the \f(CW\*(C`unimport\*(C'\fR method (likely via \f(CW\*(C`no builtin ...\*(C'\fR
2263 syntax), but the requested function has not been imported into the current
2264 scope.
2265 .IP "Don\*(Aqt know how to get file name" 4
2266 .IX Item "Don't know how to get file name"
2267 (P) \f(CW\*(C`PerlIO_getname\*(C'\fR, a perl internal I/O function specific to VMS, was
2268 somehow called on another platform. This should not happen.
2269 .IP "Don\*(Aqt know how to handle magic of type \e%o" 4
2270 .IX Item "Don't know how to handle magic of type %o"
2271 (P) The internal handling of magical variables has been cursed.
2272 .IP "Downgrading a use VERSION declaration to below v5.11 is not permitted" 4
2273 .IX Item "Downgrading a use VERSION declaration to below v5.11 is not permitted"
2274 (F) A \f(CW\*(C`use VERSION\*(C'\fR statement that requests a version below v5.11
2275 (when the effects of \f(CW\*(C`use strict\*(C'\fR would be disabled) has been found
2276 after a previous declaration of one having a larger number (which would
2277 have enabled these effects). Because of a change to the way that
2278 \&\f(CW\*(C`use VERSION\*(C'\fR interacts with the strictness flags, this is no longer
2279 supported.
2280 .ie n .IP "(Do you need to predeclare %s?)" 4
2281 .el .IP "(Do you need to predeclare \f(CW%s\fR?)" 4
2282 .IX Item "(Do you need to predeclare %s?)"
2283 (S syntax) This is an educated guess made in conjunction with the message
2284 "%s found where operator expected". It often means a subroutine or module
2285 name is being referenced that hasn\*(Aqt been declared yet. This may be
2286 because of ordering problems in your file, or because of a missing
2287 "sub", "package", "require", or "use" statement. If you\*(Aqre referencing
2288 something that isn\*(Aqt defined yet, you don\*(Aqt actually have to define the
2289 subroutine or package before the current location. You can use an empty
2290 "sub foo;" or "package FOO;" to enter a "forward" declaration.
2291 .IP "\fBdump()\fR must be written as \fBCORE::dump()\fR as of Perl 5.30" 4
2292 .IX Item "dump() must be written as CORE::dump() as of Perl 5.30"
2293 (F) You used the obsolete \f(CWdump()\fR built\-in function. That was deprecated in
2294 Perl 5.8.0. As of Perl 5.30 it must be written in fully qualified format:
2295 \&\f(CWCORE::dump()\fR.
2296 .Sp
2297 See "dump" in perlfunc.
2298 .IP "dump is not supported" 4
2299 .IX Item "dump is not supported"
2300 (F) Your machine doesn\*(Aqt support dump/undump.
2301 .IP "Duplicate \fBfree()\fR ignored" 4
2302 .IX Item "Duplicate free() ignored"
2303 (S malloc) An internal routine called \fBfree()\fR on something that had
2304 already been freed.
2305 .ie n .IP "Duplicate modifier \*(Aq%c\*(Aq after \*(Aq%c\*(Aq in %s" 4
2306 .el .IP "Duplicate modifier \*(Aq%c\*(Aq after \*(Aq%c\*(Aq in \f(CW%s\fR" 4
2307 .IX Item "Duplicate modifier '%c' after '%c' in %s"
2308 (W unpack) You have applied the same modifier more than once after a
2309 type in a pack template. See "pack" in perlfunc.
2310 .ie n .IP "each on anonymous %s will always start from the beginning" 4
2311 .el .IP "each on anonymous \f(CW%s\fR will always start from the beginning" 4
2312 .IX Item "each on anonymous %s will always start from the beginning"
2313 (W syntax) You called each on an anonymous hash or
2314 array. Since a new hash or array is created each time, \fBeach()\fR will
2315 restart iterating over your hash or array every time.
2316 .IP "elseif should be elsif" 4
2317 .IX Item "elseif should be elsif"
2318 (S syntax) There is no keyword "elseif" in Perl because Larry thinks
2319 it\*(Aqs ugly. Your code will be interpreted as an attempt to call a method
2320 named "elseif" for the class returned by the following block. This is
2321 unlikely to be what you want.
2322 .IP "Empty \e%c in regex; marked by <\-\-\ HERE in m/%s/" 4
2323 .IX Item "Empty %c in regex; marked by <-- HERE in m/%s/"
2324 .PD 0
2325 .IP "Empty \e%c{}" 4
2326 .IX Item "Empty %c{}"
2327 .IP "Empty \e%c{} in regex; marked by <\-\-\ HERE in m/%s/" 4
2328 .IX Item "Empty %c{} in regex; marked by <-- HERE in m/%s/"
2329 .PD
2330 (F) You used something like \f(CW\*(C`\eb{}\*(C'\fR, \f(CW\*(C`\eB{}\*(C'\fR, \f(CW\*(C`\eo{}\*(C'\fR, \f(CW\*(C`\ep\*(C'\fR, \f(CW\*(C`\eP\*(C'\fR, or
2331 \&\f(CW\*(C`\ex\*(C'\fR without specifying anything for it to operate on.
2332 .Sp
2333 Unfortunately, for backwards compatibility reasons, an empty \f(CW\*(C`\ex\*(C'\fR is
2334 legal outside \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR and expands to a NUL character.
2335 .IP "Empty (?) without any modifiers in regex; marked by <\-\- HERE in m/%s/" 4
2336 .IX Item "Empty (?) without any modifiers in regex; marked by <-- HERE in m/%s/"
2337 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR)
2338 \&\f(CW\*(C`(?)\*(C'\fR does nothing, so perhaps this is a typo.
2339 .IP "${^ENCODING} is no longer supported" 4
2340 .IX Item "${^ENCODING} is no longer supported"
2341 (F) The special variable \f(CW\*(C`${^ENCODING}\*(C'\fR, formerly used to implement
2342 the \f(CW\*(C`encoding\*(C'\fR pragma, is no longer supported as of Perl 5.26.0.
2343 .Sp
2344 Setting it to anything other than \f(CW\*(C`undef\*(C'\fR is a fatal error as of Perl
2345 5.28.
2346 .IP "${^HOOK}{%s} may only be a CODE reference or undef" 4
2347 .IX Item "${^HOOK}{%s} may only be a CODE reference or undef"
2348 (F) You attempted to assign something other than undef or a CODE ref to
2349 \&\f(CW\*(C`%{^HOOK}\*(C'\fR. Hooks may only be CODE refs. See "%{^HOOK}" in perlvar for
2350 details.
2351 .IP "Attempt to set unknown hook \*(Aq%s\*(Aq in %{^HOOK}" 4
2352 .IX Item "Attempt to set unknown hook '%s' in %{^HOOK}"
2353 (F) You attempted to assign something other than undef or a CODE ref to
2354 \&\f(CW\*(C`%{^HOOK}\*(C'\fR. Hooks may only be CODE refs. See "%{^HOOK}" in perlvar for
2355 details.
2356 .ie n .IP "entering effective %s failed" 4
2357 .el .IP "entering effective \f(CW%s\fR failed" 4
2358 .IX Item "entering effective %s failed"
2359 (F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, switching the real and
2360 effective uids or gids failed.
2361 .ie n .IP "%ENV is aliased to %s" 4
2362 .el .IP "\f(CW%ENV\fR is aliased to \f(CW%s\fR" 4
2363 .IX Item "%ENV is aliased to %s"
2364 (F) You\*(Aqre running under taint mode, and the \f(CW%ENV\fR variable has been
2365 aliased to another hash, so it doesn\*(Aqt reflect anymore the state of the
2366 program\*(Aqs environment. This is potentially insecure.
2367 .ie n .IP "Error converting file specification %s" 4
2368 .el .IP "Error converting file specification \f(CW%s\fR" 4
2369 .IX Item "Error converting file specification %s"
2370 (F) An error peculiar to VMS. Because Perl may have to deal with file
2371 specifications in either VMS or Unix syntax, it converts them to a
2372 single form when it must operate on them directly. Either you\*(Aqve passed
2373 an invalid file specification to Perl, or you\*(Aqve found a case the
2374 conversion routines don\*(Aqt handle. Drat.
2375 .IP "error creating/fetching widecharmap entry for 0x%X" 4
2376 .IX Item "error creating/fetching widecharmap entry for 0x%X"
2377 (P) A failure happened when folding a character for a regex trie.
2378 .ie n .IP "Error %s in expansion of %s" 4
2379 .el .IP "Error \f(CW%s\fR in expansion of \f(CW%s\fR" 4
2380 .IX Item "Error %s in expansion of %s"
2381 (F) An error was encountered in handling a user\-defined property
2382 ("User\-Defined Character Properties" in perlunicode). These are
2383 programmer written subroutines, hence subject to errors that may
2384 prevent them from compiling or running. The calls to these subs are
2385 \&\f(CW\*(C`eval\*(C'\fR\*(Aqd, and if there is a failure, this message is raised, using the
2386 contents of \f(CW$@\fR from the failed \f(CW\*(C`eval\*(C'\fR.
2387 .Sp
2388 Another possibility is that tainted data was encountered somewhere in
2389 the chain of expanding the property. If so, the message wording will
2390 indicate that this is the problem. See "Insecure user\-defined
2391 property \f(CW%s\fR".
2392 .IP "Eval\-group in insecure regular expression" 4
2393 .IX Item "Eval-group in insecure regular expression"
2394 (F) Perl detected tainted data when trying to compile a regular
2395 expression that contains the \f(CW\*(C`(?{ ... })\*(C'\fR zero\-width assertion, which
2396 is unsafe. See "(?{ code })" in perlre, and perlsec.
2397 .IP "Eval\-group not allowed at runtime, use re \*(Aqeval\*(Aq in regex m/%s/" 4
2398 .IX Item "Eval-group not allowed at runtime, use re 'eval' in regex m/%s/"
2399 (F) Perl tried to compile a regular expression containing the
2400 \&\f(CW\*(C`(?{ ... })\*(C'\fR zero\-width assertion at run time, as it would when the
2401 pattern contains interpolated values. Since that is a security risk,
2402 it is not allowed. If you insist, you may still do this by using the
2403 \&\f(CW\*(C`re \*(Aqeval\*(Aq\*(C'\fR pragma or by explicitly building the pattern from an
2404 interpolated string at run time and using that in an \fBeval()\fR. See
2405 "(?{ code })" in perlre.
2406 .IP "Eval\-group not allowed, use re \*(Aqeval\*(Aq in regex m/%s/" 4
2407 .IX Item "Eval-group not allowed, use re 'eval' in regex m/%s/"
2408 (F) A regular expression contained the \f(CW\*(C`(?{ ... })\*(C'\fR zero\-width
2409 assertion, but that construct is only allowed when the \f(CW\*(C`use re \*(Aqeval\*(Aq\*(C'\fR
2410 pragma is in effect. See "(?{ code })" in perlre.
2411 .IP "EVAL without pos change exceeded limit in regex; marked by <\-\-\ HERE in m/%s/" 4
2412 .IX Item "EVAL without pos change exceeded limit in regex; marked by <-- HERE in m/%s/"
2413 (F) You used a pattern that nested too many EVAL calls without consuming
2414 any text. Restructure the pattern so that text is consumed.
2415 .Sp
2416 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
2417 discovered.
2418 .IP "Excessively long <> operator" 4
2419 .IX Item "Excessively long <> operator"
2420 (F) The contents of a <> operator may not exceed the maximum size of a
2421 Perl identifier. If you\*(Aqre just trying to glob a long list of
2422 filenames, try using the \fBglob()\fR operator, or put the filenames into a
2423 variable and glob that.
2424 .IP "exec? I\*(Aqm not *that* kind of operating system" 4
2425 .IX Item "exec? I'm not *that* kind of operating system"
2426 (F) The \f(CW\*(C`exec\*(C'\fR function is not implemented on some systems, e.g.
2427 Catamount. See perlport.
2428 .ie n .IP "%sExecution of %s aborted due to compilation errors." 4
2429 .el .IP "\f(CW%sExecution\fR of \f(CW%s\fR aborted due to compilation errors." 4
2430 .IX Item "%sExecution of %s aborted due to compilation errors."
2431 (F) The final summary message when a Perl compilation fails.
2432 .ie n .IP "Execution of %s aborted due to compilation errors." 4
2433 .el .IP "Execution of \f(CW%s\fR aborted due to compilation errors." 4
2434 .IX Item "Execution of %s aborted due to compilation errors."
2435 (F) The final summary message when a Perl compilation fails.
2436 .IP "exists argument is not a HASH or ARRAY element or a subroutine" 4
2437 .IX Item "exists argument is not a HASH or ARRAY element or a subroutine"
2438 (F) The argument to \f(CW\*(C`exists\*(C'\fR must be a hash or array element or a
2439 subroutine with an ampersand, such as:
2440 .Sp
2441 .Vb 3
2442 \& $foo{$bar}
2443 \& $ref\->{"susie"}[12]
2444 \& &do_something
2445 .Ve
2446 .IP "exists argument is not a subroutine name" 4
2447 .IX Item "exists argument is not a subroutine name"
2448 (F) The argument to \f(CW\*(C`exists\*(C'\fR for \f(CW\*(C`exists &sub\*(C'\fR must be a subroutine name,
2449 and not a subroutine call. \f(CW\*(C`exists &sub()\*(C'\fR will generate this error.
2450 .ie n .IP "Exiting eval via %s" 4
2451 .el .IP "Exiting eval via \f(CW%s\fR" 4
2452 .IX Item "Exiting eval via %s"
2453 (W exiting) You are exiting an eval by unconventional means, such as a
2454 goto, or a loop control statement.
2455 .ie n .IP "Exiting format via %s" 4
2456 .el .IP "Exiting format via \f(CW%s\fR" 4
2457 .IX Item "Exiting format via %s"
2458 (W exiting) You are exiting a format by unconventional means, such as a
2459 goto, or a loop control statement.
2460 .ie n .IP "Exiting pseudo\-block via %s" 4
2461 .el .IP "Exiting pseudo\-block via \f(CW%s\fR" 4
2462 .IX Item "Exiting pseudo-block via %s"
2463 (W exiting) You are exiting a rather special block construct (like a
2464 sort block or subroutine) by unconventional means, such as a goto, or a
2465 loop control statement. See "sort" in perlfunc.
2466 .ie n .IP "Exiting subroutine via %s" 4
2467 .el .IP "Exiting subroutine via \f(CW%s\fR" 4
2468 .IX Item "Exiting subroutine via %s"
2469 (W exiting) You are exiting a subroutine by unconventional means, such
2470 as a goto, or a loop control statement.
2471 .ie n .IP "Exiting substitution via %s" 4
2472 .el .IP "Exiting substitution via \f(CW%s\fR" 4
2473 .IX Item "Exiting substitution via %s"
2474 (W exiting) You are exiting a substitution by unconventional means, such
2475 as a return, a goto, or a loop control statement.
2476 .ie n .IP "Expected %s reference in export_lexically" 4
2477 .el .IP "Expected \f(CW%s\fR reference in export_lexically" 4
2478 .IX Item "Expected %s reference in export_lexically"
2479 (F) The type of a reference given to "export_lexically" in builtin did not
2480 match the sigil of the preceding name, or the value was not a reference at
2481 all.
2482 .IP "Expecting close bracket in regex; marked by <\-\-\ HERE in m/%s/" 4
2483 .IX Item "Expecting close bracket in regex; marked by <-- HERE in m/%s/"
2484 (F) You wrote something like
2485 .Sp
2486 .Vb 1
2487 \& (?13
2488 .Ve
2489 .Sp
2490 to denote a capturing group of the form
2491 \&\f(CW\*(C`(?\fR\f(CIPARNO\fR\f(CW)\*(C'\fR,
2492 but omitted the \f(CW")"\fR.
2493 .IP "Expecting interpolated extended charclass in regex; marked by <\-\- HERE in m/%s/" 4
2494 .IX Item "Expecting interpolated extended charclass in regex; marked by <-- HERE in m/%s/"
2495 (F) It looked like you were attempting to interpolate an
2496 already\-compiled extended character class, like so:
2497 .Sp
2498 .Vb 3
2499 \& my $thai_or_lao = qr/(?[ \ep{Thai} + \ep{Lao} ])/;
2500 \& ...
2501 \& qr/(?[ \ep{Digit} & $thai_or_lao ])/;
2502 .Ve
2503 .Sp
2504 But the marked code isn\*(Aqt syntactically correct to be such an
2505 interpolated class.
2506 .IP "Experimental aliasing via reference not enabled" 4
2507 .IX Item "Experimental aliasing via reference not enabled"
2508 (F) To do aliasing via references, you must first enable the feature:
2509 .Sp
2510 .Vb 3
2511 \& no warnings "experimental::refaliasing";
2512 \& use feature "refaliasing";
2513 \& \e$x = \e$y;
2514 .Ve
2515 .ie n .IP "Experimental %s on scalar is now forbidden" 4
2516 .el .IP "Experimental \f(CW%s\fR on scalar is now forbidden" 4
2517 .IX Item "Experimental %s on scalar is now forbidden"
2518 (F) An experimental feature added in Perl 5.14 allowed \f(CW\*(C`each\*(C'\fR, \f(CW\*(C`keys\*(C'\fR,
2519 \&\f(CW\*(C`push\*(C'\fR, \f(CW\*(C`pop\*(C'\fR, \f(CW\*(C`shift\*(C'\fR, \f(CW\*(C`splice\*(C'\fR, \f(CW\*(C`unshift\*(C'\fR, and \f(CW\*(C`values\*(C'\fR to be called with a
2520 scalar argument. This experiment is considered unsuccessful, and
2521 has been removed. The \f(CW\*(C`postderef\*(C'\fR feature may meet your needs better.
2522 .IP "Experimental subroutine signatures not enabled" 4
2523 .IX Item "Experimental subroutine signatures not enabled"
2524 (F) To use subroutine signatures, you must first enable them:
2525 .Sp
2526 .Vb 2
2527 \& use feature "signatures";
2528 \& sub foo ($left, $right) { ... }
2529 .Ve
2530 .IP "Explicit blessing to \*(Aq\*(Aq (assuming package main)" 4
2531 .IX Item "Explicit blessing to '' (assuming package main)"
2532 (W misc) You are blessing a reference to a zero length string. This has
2533 the effect of blessing the reference into the package main. This is
2534 usually not what you want. Consider providing a default target package,
2535 e.g. bless($ref, \f(CW$p\fR || \*(AqMyPackage\*(Aq);
2536 .IP "export_lexically can only be called at compile time" 4
2537 .IX Item "export_lexically can only be called at compile time"
2538 (F) "export_lexically" in builtin was called at runtime. Because it creates
2539 new names in the lexical scope currently being compiled, it can only be
2540 called from code inside \f(CW\*(C`BEGIN\*(C'\fR block in that scope.
2541 .ie n .IP "%s: Expression syntax" 4
2542 .el .IP "\f(CW%s:\fR Expression syntax" 4
2543 .IX Item "%s: Expression syntax"
2544 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead of Perl.
2545 Check the #! line, or manually feed your script into Perl yourself.
2546 .ie n .IP "%s failed\-\-call queue aborted" 4
2547 .el .IP "\f(CW%s\fR failed\-\-call queue aborted" 4
2548 .IX Item "%s failed--call queue aborted"
2549 (F) An untrapped exception was raised while executing a UNITCHECK,
2550 CHECK, INIT, or END subroutine. Processing of the remainder of the
2551 queue of such routines has been prematurely ended.
2552 .ie n .IP "Failed to close in\-place work file %s: %s" 4
2553 .el .IP "Failed to close in\-place work file \f(CW%s:\fR \f(CW%s\fR" 4
2554 .IX Item "Failed to close in-place work file %s: %s"
2555 (F) Closing an output file from in\-place editing, as with the \f(CW\*(C`\-i\*(C'\fR
2556 command\-line switch, failed.
2557 .IP "Failed to create a fake bit bucket" 4
2558 .IX Item "Failed to create a fake bit bucket"
2559 (F) You tried to call perl with the \fB\-e\fR switch, but you\*(Aqre on a Cray system
2560 and perl\*(Aqs \fI/dev/null\fR emulation was unable to create an empty temporary file.
2561 .IP "False [] range ""%s"" in regex; marked by <\-\-\ HERE in m/%s/" 4
2562 .IX Item "False [] range ""%s"" in regex; marked by <-- HERE in m/%s/"
2563 (W regexp)(F) A character class range must start and end at a literal
2564 character, not another character class like \f(CW\*(C`\ed\*(C'\fR or \f(CW\*(C`[:alpha:]\*(C'\fR. The "\-"
2565 in your false range is interpreted as a literal "\-". In a \f(CW\*(C`(?[...])\*(C'\fR
2566 construct, this is an error, rather than a warning. Consider escaping
2567 the "\-" as "\e\-". The <\-\-\ HERE shows whereabouts in the regular expression
2568 the problem was discovered. See perlre.
2569 .ie n .IP "Fatal VMS error (status=%d) at %s, line %d" 4
2570 .el .IP "Fatal VMS error (status=%d) at \f(CW%s\fR, line \f(CW%d\fR" 4
2571 .IX Item "Fatal VMS error (status=%d) at %s, line %d"
2572 (P) An error peculiar to VMS. Something untoward happened in a VMS
2573 system service or RTL routine; Perl\*(Aqs exit status should provide more
2574 details. The filename in "at \f(CW%s\fR" and the line number in "line \f(CW%d\fR" tell
2575 you which section of the Perl source code is distressed.
2576 .IP "fcntl is not implemented" 4
2577 .IX Item "fcntl is not implemented"
2578 (F) Your machine apparently doesn\*(Aqt implement \fBfcntl()\fR. What is this, a
2579 PDP\-11 or something?
2580 .IP "FETCHSIZE returned a negative value" 4
2581 .IX Item "FETCHSIZE returned a negative value"
2582 (F) A tied array claimed to have a negative number of elements, which
2583 is not possible.
2584 .IP "Field already has a parameter name, cannot add another" 4
2585 .IX Item "Field already has a parameter name, cannot add another"
2586 (F) A field may have at most one application of the \f(CW\*(C`:param\*(C'\fR attribute to
2587 assign a parameter name to it; once applied a second one is not allowed.
2588 .ie n .IP "Field attribute %s requires a value" 4
2589 .el .IP "Field attribute \f(CW%s\fR requires a value" 4
2590 .IX Item "Field attribute %s requires a value"
2591 (F) You specified an attribute for a field that would require a value to
2592 be passed in parentheses, but did not provide one. Remember that
2593 whitespace is \fBnot\fR permitted between the attribute name and its value;
2594 you must write this as
2595 .Sp
2596 .Vb 1
2597 \& field $var :attr(VALUE) ...
2598 .Ve
2599 .IP "field is experimental" 4
2600 .IX Item "field is experimental"
2601 (S experimental::class) This warning is emitted if you use the \f(CW\*(C`field\*(C'\fR
2602 keyword of \f(CW\*(C`use feature \*(Aqclass\*(Aq\*(C'\fR. This keyword is currently
2603 experimental and its behaviour may change in future releases of Perl.
2604 .ie n .IP "Field %s is not accessible outside a method" 4
2605 .el .IP "Field \f(CW%s\fR is not accessible outside a method" 4
2606 .IX Item "Field %s is not accessible outside a method"
2607 (F) An attempt was made to access a field variable of a class from code
2608 that does not appear inside the body of a \f(CW\*(C`method\*(C'\fR subroutine. This is not
2609 permitted, as only methods will have access to the fields of an instance.
2610 .ie n .IP "Field %s of ""%s"" is not accessible in a method of ""%s""" 4
2611 .el .IP "Field \f(CW%s\fR of ""%s"" is not accessible in a method of ""%s""" 4
2612 .IX Item "Field %s of ""%s"" is not accessible in a method of ""%s"""
2613 (F) An attempt was made to access a field variable of a class, from a
2614 method of another class nested inside the one that actually defined it.
2615 This is not permitted, as only methods defined by a given class are
2616 permitted to access fields of that class.
2617 .IP "Field too wide in \*(Aqu\*(Aq format in pack" 4
2618 .IX Item "Field too wide in 'u' format in pack"
2619 (W pack) Each line in an uuencoded string starts with a length indicator
2620 which can\*(Aqt encode values above 63. So there is no point in asking for
2621 a line length bigger than that. Perl will behave as if you specified
2622 \&\f(CW\*(C`u63\*(C'\fR as the format.
2623 .ie n .IP "Filehandle %s opened only for input" 4
2624 .el .IP "Filehandle \f(CW%s\fR opened only for input" 4
2625 .IX Item "Filehandle %s opened only for input"
2626 (W io) You tried to write on a read\-only filehandle. If you intended
2627 it to be a read\-write filehandle, you needed to open it with "+<" or
2628 "+>" or "+>>" instead of with "<" or nothing. If you intended only to
2629 write the file, use ">" or ">>". See "open" in perlfunc.
2630 .ie n .IP "Filehandle %s opened only for output" 4
2631 .el .IP "Filehandle \f(CW%s\fR opened only for output" 4
2632 .IX Item "Filehandle %s opened only for output"
2633 (W io) You tried to read from a filehandle opened only for writing, If
2634 you intended it to be a read/write filehandle, you needed to open it
2635 with "+<" or "+>" or "+>>" instead of with ">". If you intended only to
2636 read from the file, use "<". See "open" in perlfunc. Another possibility
2637 is that you attempted to open filedescriptor 0 (also known as STDIN) for
2638 output (maybe you closed STDIN earlier?).
2639 .ie n .IP "Filehandle %s reopened as %s only for input" 4
2640 .el .IP "Filehandle \f(CW%s\fR reopened as \f(CW%s\fR only for input" 4
2641 .IX Item "Filehandle %s reopened as %s only for input"
2642 (W io) You opened for reading a filehandle that got the same filehandle id
2643 as STDOUT or STDERR. This occurred because you closed STDOUT or STDERR
2644 previously.
2645 .ie n .IP "Filehandle STDIN reopened as %s only for output" 4
2646 .el .IP "Filehandle STDIN reopened as \f(CW%s\fR only for output" 4
2647 .IX Item "Filehandle STDIN reopened as %s only for output"
2648 (W io) You opened for writing a filehandle that got the same filehandle id
2649 as STDIN. This occurred because you closed STDIN previously.
2650 .ie n .IP "Filehandle STD%s reopened as %s only for input" 4
2651 .el .IP "Filehandle STD%s reopened as \f(CW%s\fR only for input" 4
2652 .IX Item "Filehandle STD%s reopened as %s only for input"
2653 (W io) You opened for reading a filehandle that got the same filehandle id
2654 as STDOUT or STDERR. This occurred because you closed the handle previously.
2655 .ie n .IP "Final $ should be \e$ or $name" 4
2656 .el .IP "Final $ should be \e$ or \f(CW$name\fR" 4
2657 .IX Item "Final $ should be $ or $name"
2658 (F) You must now decide whether the final $ in a string was meant to be
2659 a literal dollar sign, or was meant to introduce a variable name that
2660 happens to be missing. So you have to put either the backslash or the
2661 name.
2662 .IP "defer is experimental" 4
2663 .IX Item "defer is experimental"
2664 (S experimental::defer) The \f(CW\*(C`defer\*(C'\fR block modifier is experimental. If you
2665 want to use the feature, disable the warning with
2666 \&\f(CW\*(C`no warnings \*(Aqexperimental::defer\*(Aq\*(C'\fR, but know that in doing so you are taking
2667 the risk that your code may break in a future Perl version.
2668 .ie n .IP "\fBflock()\fR on closed filehandle %s" 4
2669 .el .IP "\fBflock()\fR on closed filehandle \f(CW%s\fR" 4
2670 .IX Item "flock() on closed filehandle %s"
2671 (W closed) The filehandle you\*(Aqre attempting to \fBflock()\fR got itself closed
2672 some time before now. Check your control flow. \fBflock()\fR operates on
2673 filehandles. Are you attempting to call \fBflock()\fR on a dirhandle by the
2674 same name?
2675 .IP "Forked open \*(Aq%s\*(Aq not meaningful in <>" 4
2676 .IX Item "Forked open '%s' not meaningful in <>"
2677 (S inplace) You had \f(CW\*(C`|\-\*(C'\fR or \f(CW\*(C`\-|\*(C'\fR in \f(CW@ARGV\fR and tried to use \f(CW\*(C`<>\*(C'\fR to read from it.
2678 .Sp
2679 Previously this would fork and produce a confusing error message.
2680 .IP "Format not terminated" 4
2681 .IX Item "Format not terminated"
2682 (F) A format must be terminated by a line with a solitary dot. Perl got
2683 to the end of your file without finding such a line.
2684 .ie n .IP "Format %s redefined" 4
2685 .el .IP "Format \f(CW%s\fR redefined" 4
2686 .IX Item "Format %s redefined"
2687 (W redefine) You redefined a format. To suppress this warning, say
2688 .Sp
2689 .Vb 4
2690 \& {
2691 \& no warnings \*(Aqredefine\*(Aq;
2692 \& eval "format NAME =...";
2693 \& }
2694 .Ve
2695 .IP "Found = in conditional, should be ==" 4
2696 .IX Item "Found = in conditional, should be =="
2697 (W syntax) You said
2698 .Sp
2699 .Vb 1
2700 \& if ($foo = 123)
2701 .Ve
2702 .Sp
2703 when you meant
2704 .Sp
2705 .Vb 1
2706 \& if ($foo == 123)
2707 .Ve
2708 .Sp
2709 (or something like that).
2710 .ie n .IP "%s found where operator expected" 4
2711 .el .IP "\f(CW%s\fR found where operator expected" 4
2712 .IX Item "%s found where operator expected"
2713 (S syntax) The Perl lexer knows whether to expect a term or an operator.
2714 If it sees what it knows to be a term when it was expecting to see an
2715 operator, it gives you this warning. Usually it indicates that an
2716 operator or delimiter was omitted, such as a semicolon.
2717 .ie n .IP "gdbm store returned %d, errno %d, key ""%s""" 4
2718 .el .IP "gdbm store returned \f(CW%d\fR, errno \f(CW%d\fR, key ""%s""" 4
2719 .IX Item "gdbm store returned %d, errno %d, key ""%s"""
2720 (S) A warning from the GDBM_File extension that a store failed.
2721 .IP "gethostent not implemented" 4
2722 .IX Item "gethostent not implemented"
2723 (F) Your C library apparently doesn\*(Aqt implement \fBgethostent()\fR, probably
2724 because if it did, it\*(Aqd feel morally obligated to return every hostname
2725 on the Internet.
2726 .ie n .IP "get%\fBsname()\fR on closed socket %s" 4
2727 .el .IP "get%\fBsname()\fR on closed socket \f(CW%s\fR" 4
2728 .IX Item "get%sname() on closed socket %s"
2729 (W closed) You tried to get a socket or peer socket name on a closed
2730 socket. Did you forget to check the return value of your \fBsocket()\fR call?
2731 .IP "getpwnam returned invalid UIC %#o for user ""%s""" 4
2732 .IX Item "getpwnam returned invalid UIC %#o for user ""%s"""
2733 (S) A warning peculiar to VMS. The call to \f(CW\*(C`sys$getuai\*(C'\fR underlying the
2734 \&\f(CW\*(C`getpwnam\*(C'\fR operator returned an invalid UIC.
2735 .ie n .IP "\fBgetsockopt()\fR on closed socket %s" 4
2736 .el .IP "\fBgetsockopt()\fR on closed socket \f(CW%s\fR" 4
2737 .IX Item "getsockopt() on closed socket %s"
2738 (W closed) You tried to get a socket option on a closed socket. Did you
2739 forget to check the return value of your \fBsocket()\fR call? See
2740 "getsockopt" in perlfunc.
2741 .IP "get_layers: unknown argument \*(Aq%s\*(Aq" 4
2742 .IX Item "get_layers: unknown argument '%s'"
2743 (F) You called \fBPerlIO::get_layers()\fR with an unknown argument. Legal
2744 arguments are provided in key/value pairs, with the keys being one
2745 of \f(CW\*(C`input\*(C'\fR, \f(CW\*(C`output\*(C'\fR or \f(CW\*(C`detail\*(C'\fR, followed by a boolean.
2746 .ie n .IP "Global symbol ""%s"" requires explicit package name (did you forget to declare ""my %s""?)" 4
2747 .el .IP "Global symbol ""%s"" requires explicit package name (did you forget to declare ""my \f(CW%s\fR""?)" 4
2748 .IX Item "Global symbol ""%s"" requires explicit package name (did you forget to declare ""my %s""?)"
2749 (F) You\*(Aqve said "use strict" or "use strict vars", which indicates
2750 that all variables must either be lexically scoped (using "my" or "state"),
2751 declared beforehand using "our", or explicitly qualified to say
2752 which package the global variable is in (using "::").
2753 .IP "glob failed (%s)" 4
2754 .IX Item "glob failed (%s)"
2755 (S glob) Something went wrong with the external program(s) used
2756 for \f(CW\*(C`glob\*(C'\fR and \f(CW\*(C`<*.c>\*(C'\fR. Usually, this means that you supplied a \f(CW\*(C`glob\*(C'\fR
2757 pattern that caused the external program to fail and exit with a
2758 nonzero status. If the message indicates that the abnormal exit
2759 resulted in a coredump, this may also mean that your csh (C shell)
2760 is broken. If so, you should change all of the csh\-related variables
2761 in config.sh: If you have tcsh, make the variables refer to it as
2762 if it were csh (e.g. \f(CW\*(C`full_csh=\*(Aq/usr/bin/tcsh\*(Aq\*(C'\fR); otherwise, make them
2763 all empty (except that \f(CW\*(C`d_csh\*(C'\fR should be \f(CW\*(Aqundef\*(Aq\fR) so that Perl will
2764 think csh is missing. In either case, after editing config.sh, run
2765 \&\f(CW\*(C`./Configure \-S\*(C'\fR and rebuild Perl.
2766 .IP "Glob not terminated" 4
2767 .IX Item "Glob not terminated"
2768 (F) The lexer saw a left angle bracket in a place where it was expecting
2769 a term, so it\*(Aqs looking for the corresponding right angle bracket, and
2770 not finding it. Chances are you left some needed parentheses out
2771 earlier in the line, and you really meant a "less than".
2772 .IP "gmtime(%f) failed" 4
2773 .IX Item "gmtime(%f) failed"
2774 (W overflow) You called \f(CW\*(C`gmtime\*(C'\fR with a number that it could not handle:
2775 too large, too small, or NaN. The returned value is \f(CW\*(C`undef\*(C'\fR.
2776 .IP "gmtime(%f) too large" 4
2777 .IX Item "gmtime(%f) too large"
2778 (W overflow) You called \f(CW\*(C`gmtime\*(C'\fR with a number that was larger than
2779 it can reliably handle and \f(CW\*(C`gmtime\*(C'\fR probably returned the wrong
2780 date. This warning is also triggered with NaN (the special
2781 not\-a\-number value).
2782 .IP "gmtime(%f) too small" 4
2783 .IX Item "gmtime(%f) too small"
2784 (W overflow) You called \f(CW\*(C`gmtime\*(C'\fR with a number that was smaller than
2785 it can reliably handle and \f(CW\*(C`gmtime\*(C'\fR probably returned the wrong date.
2786 .IP "Got an error from DosAllocMem" 4
2787 .IX Item "Got an error from DosAllocMem"
2788 (P) An error peculiar to OS/2. Most probably you\*(Aqre using an obsolete
2789 version of Perl, and this should not happen anyway.
2790 .IP "goto must have label" 4
2791 .IX Item "goto must have label"
2792 (F) Unlike with "next" or "last", you\*(Aqre not allowed to goto an
2793 unspecified destination. See "goto" in perlfunc.
2794 .IP "Goto undefined subroutine%s" 4
2795 .IX Item "Goto undefined subroutine%s"
2796 (F) You tried to call a subroutine with \f(CW\*(C`goto &sub\*(C'\fR syntax, but
2797 the indicated subroutine hasn\*(Aqt been defined, or if it was, it
2798 has since been undefined.
2799 .IP "Group name must start with a non\-digit word character in regex; marked by <\-\-\ HERE in m/%s/" 4
2800 .IX Item "Group name must start with a non-digit word character in regex; marked by <-- HERE in m/%s/"
2801 (F) Group names must follow the rules for perl identifiers, meaning
2802 they must start with a non\-digit word character. A common cause of
2803 this error is using (?&0) instead of (?0). See perlre.
2804 .IP "()\-group starts with a count" 4
2805 .IX Item "()-group starts with a count"
2806 (F) A ()\-group started with a count. A count is supposed to follow
2807 something: a template character or a ()\-group. See "pack" in perlfunc.
2808 .ie n .IP "%s had compilation errors." 4
2809 .el .IP "\f(CW%s\fR had compilation errors." 4
2810 .IX Item "%s had compilation errors."
2811 (F) The final summary message when a \f(CW\*(C`perl \-c\*(C'\fR fails.
2812 .ie n .IP "Had to create %s unexpectedly" 4
2813 .el .IP "Had to create \f(CW%s\fR unexpectedly" 4
2814 .IX Item "Had to create %s unexpectedly"
2815 (S internal) A routine asked for a symbol from a symbol table that ought
2816 to have existed already, but for some reason it didn\*(Aqt, and had to be
2817 created on an emergency basis to prevent a core dump.
2818 .ie n .IP "%s has too many errors" 4
2819 .el .IP "\f(CW%s\fR has too many errors" 4
2820 .IX Item "%s has too many errors"
2821 (F) The parser has given up trying to parse the program after 10 errors.
2822 Further error messages would likely be uninformative.
2823 .IP "Hexadecimal float: exponent overflow" 4
2824 .IX Item "Hexadecimal float: exponent overflow"
2825 (W overflow) The hexadecimal floating point has a larger exponent
2826 than the floating point supports.
2827 .IP "Hexadecimal float: exponent underflow" 4
2828 .IX Item "Hexadecimal float: exponent underflow"
2829 (W overflow) The hexadecimal floating point has a smaller exponent
2830 than the floating point supports. With the IEEE 754 floating point,
2831 this may also mean that the subnormals (formerly known as denormals)
2832 are being used, which may or may not be an error.
2833 .IP "Hexadecimal float: internal error (%s)" 4
2834 .IX Item "Hexadecimal float: internal error (%s)"
2835 (F) Something went horribly bad in hexadecimal float handling.
2836 .IP "Hexadecimal float: mantissa overflow" 4
2837 .IX Item "Hexadecimal float: mantissa overflow"
2838 (W overflow) The hexadecimal floating point literal had more bits in
2839 the mantissa (the part between the 0x and the exponent, also known as
2840 the fraction or the significand) than the floating point supports.
2841 .IP "Hexadecimal float: precision loss" 4
2842 .IX Item "Hexadecimal float: precision loss"
2843 (W overflow) The hexadecimal floating point had internally more
2844 digits than could be output. This can be caused by unsupported
2845 long double formats, or by 64\-bit integers not being available
2846 (needed to retrieve the digits under some configurations).
2847 .IP "Hexadecimal float: unsupported long double format" 4
2848 .IX Item "Hexadecimal float: unsupported long double format"
2849 (F) You have configured Perl to use long doubles but
2850 the internals of the long double format are unknown;
2851 therefore the hexadecimal float output is impossible.
2852 .IP "Hexadecimal number > 0xffffffff non\-portable" 4
2853 .IX Item "Hexadecimal number > 0xffffffff non-portable"
2854 (W portable) The hexadecimal number you specified is larger than 2**32\-1
2855 (4294967295) and therefore non\-portable between systems. See
2856 perlport for more on portability concerns.
2857 .IP "Identifier too long" 4
2858 .IX Item "Identifier too long"
2859 (F) Perl limits identifiers (names for variables, functions, etc.) to
2860 about 250 characters for simple names, and somewhat more for compound
2861 names (like \f(CW$A::B\fR). You\*(Aqve exceeded Perl\*(Aqs limits. Future versions
2862 of Perl are likely to eliminate these arbitrary limitations.
2863 .IP "Ignoring zero length \eN{} in character class in regex; marked by <\-\-\ HERE in m/%s/" 4
2864 .IX Item "Ignoring zero length N{} in character class in regex; marked by <-- HERE in m/%s/"
2865 (W regexp) Named Unicode character escapes (\f(CW\*(C`\eN{...}\*(C'\fR) may return a
2866 zero\-length sequence. When such an escape is used in a character
2867 class its behavior is not well defined. Check that the correct
2868 escape has been used, and the correct charname handler is in scope.
2869 .ie n .IP "Illegal %s digit \*(Aq%c\*(Aq ignored" 4
2870 .el .IP "Illegal \f(CW%s\fR digit \*(Aq%c\*(Aq ignored" 4
2871 .IX Item "Illegal %s digit '%c' ignored"
2872 (W digit) Here \f(CW%s\fR is one of "binary", "octal", or "hex".
2873 You may have tried to use a digit other than one that is legal for the
2874 given type, such as only 0 and 1 for binary. For octals, this is raised
2875 only if the illegal character is an \*(Aq8\*(Aq or \*(Aq9\*(Aq. For hex, \*(AqA\*(Aq \- \*(AqF\*(Aq and
2876 \&\*(Aqa\*(Aq \- \*(Aqf\*(Aq are legal.
2877 Interpretation of the number stopped just before the offending digit or
2878 character.
2879 .IP "Illegal binary digit \*(Aq%c\*(Aq" 4
2880 .IX Item "Illegal binary digit '%c'"
2881 (F) You used a digit other than 0 or 1 in a binary number.
2882 .ie n .IP "Illegal character after \*(Aq_\*(Aq in prototype for %s : %s" 4
2883 .el .IP "Illegal character after \*(Aq_\*(Aq in prototype for \f(CW%s\fR : \f(CW%s\fR" 4
2884 .IX Item "Illegal character after '_' in prototype for %s : %s"
2885 (W illegalproto) An illegal character was found in a prototype
2886 declaration. The \*(Aq_\*(Aq in a prototype must be followed by a \*(Aq;\*(Aq,
2887 indicating the rest of the parameters are optional, or one of \*(Aq@\*(Aq
2888 or \*(Aq%\*(Aq, since those two will accept 0 or more final parameters.
2889 .IP "Illegal character following sigil in a subroutine signature" 4
2890 .IX Item "Illegal character following sigil in a subroutine signature"
2891 (F) A parameter in a subroutine signature contained an unexpected character
2892 following the \f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR sigil character. Normally the sigil
2893 should be followed by the variable name or \f(CW\*(C`=\*(C'\fR etc. Perhaps you are
2894 trying to use a prototype while in the scope of \f(CW\*(C`use feature \*(Aqsignatures\*(Aq\*(C'\fR?
2895 For example:
2896 .Sp
2897 .Vb 1
2898 \& sub foo ($$) {} # legal \- a prototype
2899 \&
2900 \& use feature \*(Aqsignatures;
2901 \& sub foo ($$) {} # illegal \- was expecting a signature
2902 \& sub foo ($x, $y)
2903 \& :prototype($$) {} # legal
2904 .Ve
2905 .ie n .IP "Illegal character in prototype for %s : %s" 4
2906 .el .IP "Illegal character in prototype for \f(CW%s\fR : \f(CW%s\fR" 4
2907 .IX Item "Illegal character in prototype for %s : %s"
2908 (W illegalproto) An illegal character was found in a prototype declaration.
2909 Legal characters in prototypes are $, @, %, *, ;, [, ], &, \e, and +.
2910 Perhaps you were trying to write a subroutine signature but didn\*(Aqt enable
2911 that feature first (\f(CW\*(C`use feature \*(Aqsignatures\*(Aq\*(C'\fR), so your signature was
2912 instead interpreted as a bad prototype.
2913 .IP "Illegal declaration of anonymous subroutine" 4
2914 .IX Item "Illegal declaration of anonymous subroutine"
2915 (F) When using the \f(CW\*(C`sub\*(C'\fR keyword to construct an anonymous subroutine,
2916 you must always specify a block of code. See perlsub.
2917 .ie n .IP "Illegal declaration of subroutine %s" 4
2918 .el .IP "Illegal declaration of subroutine \f(CW%s\fR" 4
2919 .IX Item "Illegal declaration of subroutine %s"
2920 (F) A subroutine was not declared correctly. See perlsub.
2921 .IP "Illegal division by zero" 4
2922 .IX Item "Illegal division by zero"
2923 (F) You tried to divide a number by 0. Either something was wrong in
2924 your logic, or you need to put a conditional in to guard against
2925 meaningless input.
2926 .IP "Illegal modulus zero" 4
2927 .IX Item "Illegal modulus zero"
2928 (F) You tried to divide a number by 0 to get the remainder. Most
2929 numbers don\*(Aqt take to this kindly.
2930 .IP "Illegal number of bits in vec" 4
2931 .IX Item "Illegal number of bits in vec"
2932 (F) The number of bits in \fBvec()\fR (the third argument) must be a power of
2933 two from 1 to 32 (or 64, if your platform supports that).
2934 .IP "Illegal octal digit \*(Aq%c\*(Aq" 4
2935 .IX Item "Illegal octal digit '%c'"
2936 (F) You used an 8 or 9 in an octal number.
2937 .IP "Illegal operator following parameter in a subroutine signature" 4
2938 .IX Item "Illegal operator following parameter in a subroutine signature"
2939 (F) A parameter in a subroutine signature, was followed by something
2940 other than \f(CW\*(C`=\*(C'\fR introducing a default, \f(CW\*(C`,\*(C'\fR or \f(CW\*(C`)\*(C'\fR.
2941 .Sp
2942 .Vb 5
2943 \& use feature \*(Aqsignatures\*(Aq;
2944 \& sub foo ($=1) {} # legal
2945 \& sub foo ($x = 1) {} # legal
2946 \& sub foo ($x += 1) {} # illegal
2947 \& sub foo ($x == 1) {} # illegal
2948 .Ve
2949 .IP "Illegal pattern in regex; marked by <\-\-\ HERE in m/%s/" 4
2950 .IX Item "Illegal pattern in regex; marked by <-- HERE in m/%s/"
2951 (F) You wrote something like
2952 .Sp
2953 .Vb 1
2954 \& (?+foo)
2955 .Ve
2956 .Sp
2957 The \f(CW"+"\fR is valid only when followed by digits, indicating a
2958 capturing group. See
2959 \&\f(CW\*(C`(?\fR\f(CIPARNO\fR\f(CW)\*(C'\fR.
2960 .IP "Illegal suidscript" 4
2961 .IX Item "Illegal suidscript"
2962 (F) The script run under suidperl was somehow illegal.
2963 .IP "Illegal switch in PERL5OPT: \-%c" 4
2964 .IX Item "Illegal switch in PERL5OPT: -%c"
2965 (X) The PERL5OPT environment variable may only be used to set the
2966 following switches: \fB\-[CDIMUdmtw]\fR.
2967 .IP "Illegal user\-defined property name" 4
2968 .IX Item "Illegal user-defined property name"
2969 (F) You specified a Unicode\-like property name in a regular expression
2970 pattern (using \f(CW\*(C`\ep{}\*(C'\fR or \f(CW\*(C`\eP{}\*(C'\fR) that Perl knows isn\*(Aqt an official
2971 Unicode property, and was likely meant to be a user\-defined property
2972 name, but it can\*(Aqt be one of those, as they must begin with either \f(CW\*(C`In\*(C'\fR
2973 or \f(CW\*(C`Is\*(C'\fR. Check the spelling. See also
2974 "Can\*(Aqt find Unicode property definition "%s"".
2975 .IP "Ill\-formed CRTL environ value ""%s""" 4
2976 .IX Item "Ill-formed CRTL environ value ""%s"""
2977 (W internal) A warning peculiar to VMS. Perl tried to read the CRTL\*(Aqs
2978 internal environ array, and encountered an element without the \f(CW\*(C`=\*(C'\fR
2979 delimiter used to separate keys from values. The element is ignored.
2980 .IP "Ill\-formed message in prime_env_iter: |%s|" 4
2981 .IX Item "Ill-formed message in prime_env_iter: |%s|"
2982 (W internal) A warning peculiar to VMS. Perl tried to read a logical
2983 name or CLI symbol definition when preparing to iterate over \f(CW%ENV\fR, and
2984 didn\*(Aqt see the expected delimiter between key and value, so the line was
2985 ignored.
2986 .ie n .IP "(in cleanup) %s" 4
2987 .el .IP "(in cleanup) \f(CW%s\fR" 4
2988 .IX Item "(in cleanup) %s"
2989 (W misc) This prefix usually indicates that a \fBDESTROY()\fR method raised
2990 the indicated exception. Since destructors are usually called by the
2991 system at arbitrary points during execution, and often a vast number of
2992 times, the warning is issued only once for any number of failures that
2993 would otherwise result in the same message being repeated.
2994 .Sp
2995 Failure of user callbacks dispatched using the \f(CW\*(C`G_KEEPERR\*(C'\fR flag could
2996 also result in this warning. See "G_KEEPERR" in perlcall.
2997 .ie n .IP "Implicit use of @_ in %s with signatured subroutine is experimental" 4
2998 .el .IP "Implicit use of \f(CW@_\fR in \f(CW%s\fR with signatured subroutine is experimental" 4
2999 .IX Item "Implicit use of @_ in %s with signatured subroutine is experimental"
3000 (S experimental::args_array_with_signatures) An expression that implicitly
3001 involves the \f(CW@_\fR arguments array was found in a subroutine that uses a
3002 signature. This is experimental because the interaction between the
3003 arguments array and parameter handling via signatures is not guaranteed
3004 to remain stable in any future version of Perl, and such code should be
3005 avoided.
3006 .IP "Incomplete expression within \*(Aq(?[ ])\*(Aq in regex; marked by <\-\-\ HERE in m/%s/" 4
3007 .IX Item "Incomplete expression within '(?[ ])' in regex; marked by <-- HERE in m/%s/"
3008 (F) There was a syntax error within the \f(CW\*(C`(?[ ])\*(C'\fR. This can happen if the
3009 expression inside the construct was completely empty, or if there are
3010 too many or few operands for the number of operators. Perl is not smart
3011 enough to give you a more precise indication as to what is wrong.
3012 .IP "Inconsistent hierarchy during C3 merge of class \*(Aq%s\*(Aq: merging failed on parent \*(Aq%s\*(Aq" 4
3013 .IX Item "Inconsistent hierarchy during C3 merge of class '%s': merging failed on parent '%s'"
3014 (F) The method resolution order (MRO) of the given class is not
3015 C3\-consistent, and you have enabled the C3 MRO for this class. See the C3
3016 documentation in mro for more information.
3017 .ie n .IP "Indentation on line %d of here\-doc doesn\*(Aqt match delimiter" 4
3018 .el .IP "Indentation on line \f(CW%d\fR of here\-doc doesn\*(Aqt match delimiter" 4
3019 .IX Item "Indentation on line %d of here-doc doesn't match delimiter"
3020 (F) You have an indented here\-document where one or more of its lines
3021 have whitespace at the beginning that does not match the closing
3022 delimiter.
3023 .Sp
3024 For example, line 2 below is wrong because it does not have at least
3025 2 spaces, but lines 1 and 3 are fine because they have at least 2:
3026 .Sp
3027 .Vb 7
3028 \& if ($something) {
3029 \& print <<~EOF;
3030 \& Line 1
3031 \& Line 2 not
3032 \& Line 3
3033 \& EOF
3034 \& }
3035 .Ve
3036 .Sp
3037 Note that tabs and spaces are compared strictly, meaning 1 tab will
3038 not match 8 spaces.
3039 .IP "Infinite recursion in regex" 4
3040 .IX Item "Infinite recursion in regex"
3041 (F) You used a pattern that references itself without consuming any input
3042 text. You should check the pattern to ensure that recursive patterns
3043 either consume text or fail.
3044 .IP "Infinite recursion in user\-defined property" 4
3045 .IX Item "Infinite recursion in user-defined property"
3046 (F) A user\-defined property ("User\-Defined Character
3047 Properties" in perlunicode) can depend on the definitions of other user\-defined
3048 properties. If the chain of dependencies leads back to this property,
3049 infinite recursion would occur, were it not for the check that raised
3050 this error.
3051 .Sp
3052 Restructure your property definitions to avoid this.
3053 .IP "Infinite recursion via empty pattern" 4
3054 .IX Item "Infinite recursion via empty pattern"
3055 (F) You tried to use the empty pattern inside of a regex code block,
3056 for instance \f(CW\*(C`/(?{ s!!! })/\*(C'\fR, which resulted in re\-executing
3057 the same pattern, which is an infinite loop which is broken by
3058 throwing an exception.
3059 .IP "Initialization of state variables in list currently forbidden" 4
3060 .IX Item "Initialization of state variables in list currently forbidden"
3061 (F) \f(CW\*(C`state\*(C'\fR only permits initializing a single variable, specified
3062 without parentheses. So \f(CW\*(C`state $x = 42\*(C'\fR and \f(CW\*(C`state @x = qw(a b c)\*(C'\fR are
3063 allowed, but not \f(CW\*(C`state ($x) = 42\*(C'\fR or \f(CW\*(C`(state $x) = 42\*(C'\fR. To initialize
3064 more than one \f(CW\*(C`state\*(C'\fR variable, initialize them one at a time.
3065 .IP "%%s[%s] in scalar context better written as $%s[%s]" 4
3066 .IX Item "%%s[%s] in scalar context better written as $%s[%s]"
3067 (W syntax) In scalar context, you\*(Aqve used an array index/value slice
3068 (indicated by %) to select a single element of an array. Generally
3069 it\*(Aqs better to ask for a scalar value (indicated by $). The difference
3070 is that \f(CW$foo[&bar]\fR always behaves like a scalar, both in the value it
3071 returns and when evaluating its argument, while \f(CW%foo[&bar]\fR provides
3072 a list context to its subscript, which can do weird things if you\*(Aqre
3073 expecting only one subscript. When called in list context, it also
3074 returns the index (what \f(CW&bar\fR returns) in addition to the value.
3075 .IP "%%s{%s} in scalar context better written as $%s{%s}" 4
3076 .IX Item "%%s{%s} in scalar context better written as $%s{%s}"
3077 (W syntax) In scalar context, you\*(Aqve used a hash key/value slice
3078 (indicated by %) to select a single element of a hash. Generally it\*(Aqs
3079 better to ask for a scalar value (indicated by $). The difference
3080 is that \f(CW$foo{&bar}\fR always behaves like a scalar, both in the value
3081 it returns and when evaluating its argument, while \f(CW@foo{&bar}\fR and
3082 provides a list context to its subscript, which can do weird things
3083 if you\*(Aqre expecting only one subscript. When called in list context,
3084 it also returns the key in addition to the value.
3085 .ie n .IP "Insecure dependency in %s" 4
3086 .el .IP "Insecure dependency in \f(CW%s\fR" 4
3087 .IX Item "Insecure dependency in %s"
3088 (F) You tried to do something that the tainting mechanism didn\*(Aqt like.
3089 The tainting mechanism is turned on when you\*(Aqre running setuid or
3090 setgid, or when you specify \fB\-T\fR to turn it on explicitly. The
3091 tainting mechanism labels all data that\*(Aqs derived directly or indirectly
3092 from the user, who is considered to be unworthy of your trust. If any
3093 such data is used in a "dangerous" operation, you get this error. See
3094 perlsec for more information.
3095 .ie n .IP "Insecure directory in %s" 4
3096 .el .IP "Insecure directory in \f(CW%s\fR" 4
3097 .IX Item "Insecure directory in %s"
3098 (F) You can\*(Aqt use \fBsystem()\fR, \fBexec()\fR, or a piped open in a setuid or
3099 setgid script if \f(CW$ENV{PATH}\fR contains a directory that is writable by
3100 the world. Also, the PATH must not contain any relative directory or
3101 empty component (so \f(CW\*(Aq\*(Aq\fR, \f(CW\*(Aq:\*(Aq\fR, and \f(CW\*(Aq/usr/bin::/usr/local/bin\*(Aq\fR
3102 would all trigger this error). See perlsec.
3103 .ie n .IP "Insecure $ENV{%s} while running %s" 4
3104 .el .IP "Insecure \f(CW$ENV\fR{%s} while running \f(CW%s\fR" 4
3105 .IX Item "Insecure $ENV{%s} while running %s"
3106 (F) You can\*(Aqt use \fBsystem()\fR, \fBexec()\fR, or a piped open in a setuid or
3107 setgid script if any of \f(CW$ENV{PATH}\fR, \f(CW$ENV{IFS}\fR, \f(CW$ENV{CDPATH}\fR,
3108 \&\f(CW$ENV{ENV}\fR, \f(CW$ENV{BASH_ENV}\fR or \f(CW$ENV{TERM}\fR are derived from data
3109 supplied (or potentially supplied) by the user. The script must set
3110 the path to a known value, using trustworthy data. See perlsec.
3111 .ie n .IP "Insecure user\-defined property %s" 4
3112 .el .IP "Insecure user\-defined property \f(CW%s\fR" 4
3113 .IX Item "Insecure user-defined property %s"
3114 (F) Perl detected tainted data when trying to compile a regular
3115 expression that contains a call to a user\-defined character property
3116 function, i.e. \f(CW\*(C`\ep{IsFoo}\*(C'\fR or \f(CW\*(C`\ep{InFoo}\*(C'\fR.
3117 See "User\-Defined Character Properties" in perlunicode and perlsec.
3118 .ie n .IP "Integer overflow in format string for %s" 4
3119 .el .IP "Integer overflow in format string for \f(CW%s\fR" 4
3120 .IX Item "Integer overflow in format string for %s"
3121 (F) The indexes and widths specified in the format string of \f(CWprintf()\fR
3122 or \f(CWsprintf()\fR are too large. The numbers must not overflow the size of
3123 integers for your architecture.
3124 .ie n .IP "Integer overflow in %s number" 4
3125 .el .IP "Integer overflow in \f(CW%s\fR number" 4
3126 .IX Item "Integer overflow in %s number"
3127 (S overflow) The hexadecimal, octal or binary number you have specified
3128 either as a literal or as an argument to \fBhex()\fR or \fBoct()\fR is too big for
3129 your architecture, and has been converted to a floating point number.
3130 On a 32\-bit architecture the largest hexadecimal, octal or binary number
3131 representable without overflow is 0xFFFFFFFF, 037777777777, or
3132 0b11111111111111111111111111111111 respectively. Note that Perl
3133 transparently promotes all numbers to a floating point representation
3134 internally\-\-subject to loss of precision errors in subsequent
3135 operations.
3136 .IP "Integer overflow in srand" 4
3137 .IX Item "Integer overflow in srand"
3138 (S overflow) The number you have passed to srand is too big to fit
3139 in your architecture\*(Aqs integer representation. The number has been
3140 replaced with the largest integer supported (0xFFFFFFFF on 32\-bit
3141 architectures). This means you may be getting less randomness than
3142 you expect, because different random seeds above the maximum will
3143 return the same sequence of random numbers.
3144 .IP "Integer overflow in version" 4
3145 .IX Item "Integer overflow in version"
3146 .PD 0
3147 .ie n .IP "Integer overflow in version %d" 4
3148 .el .IP "Integer overflow in version \f(CW%d\fR" 4
3149 .IX Item "Integer overflow in version %d"
3150 .PD
3151 (W overflow) Some portion of a version initialization is too large for
3152 the size of integers for your architecture. This is not a warning
3153 because there is no rational reason for a version to try and use an
3154 element larger than typically 2**32. This is usually caused by trying
3155 to use some odd mathematical operation as a version, like 100/9.
3156 .IP "Internal disaster in regex; marked by <\-\-\ HERE in m/%s/" 4
3157 .IX Item "Internal disaster in regex; marked by <-- HERE in m/%s/"
3158 (P) Something went badly wrong in the regular expression parser.
3159 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
3160 discovered.
3161 .IP "Internal inconsistency in tracking vforks" 4
3162 .IX Item "Internal inconsistency in tracking vforks"
3163 (S) A warning peculiar to VMS. Perl keeps track of the number of times
3164 you\*(Aqve called \f(CW\*(C`fork\*(C'\fR and \f(CW\*(C`exec\*(C'\fR, to determine whether the current call
3165 to \f(CW\*(C`exec\*(C'\fR should affect the current script or a subprocess (see
3166 "exec LIST" in perlvms). Somehow, this count has become scrambled, so
3167 Perl is making a guess and treating this \f(CW\*(C`exec\*(C'\fR as a request to
3168 terminate the Perl script and execute the specified command.
3169 .IP "internal %<num>p might conflict with future printf extensions" 4
3170 .IX Item "internal %<num>p might conflict with future printf extensions"
3171 (S internal) Perl\*(Aqs internal routine that handles \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`sprintf\*(C'\fR
3172 formatting follows a slightly different set of rules when called from
3173 C or XS code. Specifically, formats consisting of digits followed
3174 by "p" (e.g., "%7p") are reserved for future use. If you see this
3175 message, then an XS module tried to call that routine with one such
3176 reserved format.
3177 .IP "Internal urp in regex; marked by <\-\-\ HERE in m/%s/" 4
3178 .IX Item "Internal urp in regex; marked by <-- HERE in m/%s/"
3179 (P) Something went badly awry in the regular expression parser. The
3180 <\-\-\ HERE shows whereabouts in the regular expression the problem was
3181 discovered.
3182 .ie n .IP "%s (...) interpreted as function" 4
3183 .el .IP "\f(CW%s\fR (...) interpreted as function" 4
3184 .IX Item "%s (...) interpreted as function"
3185 (W syntax) You\*(Aqve run afoul of the rule that says that any list operator
3186 followed by parentheses turns into a function, with all the list
3187 operators arguments found inside the parentheses. See
3188 "Terms and List Operators (Leftward)" in perlop.
3189 .IP "In \*(Aq(?...)\*(Aq, the \*(Aq(\*(Aq and \*(Aq?\*(Aq must be adjacent in regex; marked by <\-\-\ HERE in m/%s/" 4
3190 .IX Item "In '(?...)', the '(' and '?' must be adjacent in regex; marked by <-- HERE in m/%s/"
3191 (F) The two\-character sequence \f(CW"(?"\fR in this context in a regular
3192 expression pattern should be an indivisible token, with nothing
3193 intervening between the \f(CW"("\fR and the \f(CW"?"\fR, but you separated them
3194 with whitespace.
3195 .IP "In \*(Aq(*...)\*(Aq, the \*(Aq(\*(Aq and \*(Aq*\*(Aq must be adjacent in regex; marked by <\-\-\ HERE in m/%s/" 4
3196 .IX Item "In '(*...)', the '(' and '*' must be adjacent in regex; marked by <-- HERE in m/%s/"
3197 (F) The two\-character sequence \f(CW"(*"\fR in this context in a regular
3198 expression pattern should be an indivisible token, with nothing
3199 intervening between the \f(CW"("\fR and the \f(CW"*"\fR, but you separated them.
3200 Fix the pattern and retry.
3201 .ie n .IP "Invalid %s attribute: %s" 4
3202 .el .IP "Invalid \f(CW%s\fR attribute: \f(CW%s\fR" 4
3203 .IX Item "Invalid %s attribute: %s"
3204 (F) The indicated attribute for a subroutine or variable was not recognized
3205 by Perl or by a user\-supplied handler. See attributes.
3206 .ie n .IP "Invalid %s attributes: %s" 4
3207 .el .IP "Invalid \f(CW%s\fR attributes: \f(CW%s\fR" 4
3208 .IX Item "Invalid %s attributes: %s"
3209 (F) The indicated attributes for a subroutine or variable were not
3210 recognized by Perl or by a user\-supplied handler. See attributes.
3211 .IP "Invalid character in charnames alias definition; marked by <\-\-\ HERE in \*(Aq%s" 4
3212 .IX Item "Invalid character in charnames alias definition; marked by <-- HERE in '%s"
3213 (F) You tried to create a custom alias for a character name, with
3214 the \f(CW\*(C`:alias\*(C'\fR option to \f(CW\*(C`use charnames\*(C'\fR and the specified character in
3215 the indicated name isn\*(Aqt valid. See "CUSTOM ALIASES" in charnames.
3216 .ie n .IP "Invalid \e0 character in %s for %s: %s\e0%s" 4
3217 .el .IP "Invalid \e0 character in \f(CW%s\fR for \f(CW%s:\fR \f(CW%s\fR\e0%s" 4
3218 .IX Item "Invalid 0 character in %s for %s: %s0%s"
3219 (W syscalls) Embedded \e0 characters in pathnames or other system call
3220 arguments produce a warning as of 5.20. The parts after the \e0 were
3221 formerly ignored by system calls.
3222 .IP "Invalid character in \eN{...}; marked by <\-\-\ HERE in \eN{%s}" 4
3223 .IX Item "Invalid character in N{...}; marked by <-- HERE in N{%s}"
3224 (F) Only certain characters are valid for character names. The
3225 indicated one isn\*(Aqt. See "CUSTOM ALIASES" in charnames.
3226 .ie n .IP "Invalid conversion in %s: ""%s""" 4
3227 .el .IP "Invalid conversion in \f(CW%s:\fR ""%s""" 4
3228 .IX Item "Invalid conversion in %s: ""%s"""
3229 (W printf) Perl does not understand the given format conversion. See
3230 "sprintf" in perlfunc.
3231 .IP "Invalid escape in the specified encoding in regex; marked by <\-\-\ HERE in m/%s/" 4
3232 .IX Item "Invalid escape in the specified encoding in regex; marked by <-- HERE in m/%s/"
3233 (W regexp)(F) The numeric escape (for example \f(CW\*(C`\exHH\*(C'\fR) of value < 256
3234 didn\*(Aqt correspond to a single character through the conversion
3235 from the encoding specified by the encoding pragma.
3236 The escape was replaced with REPLACEMENT CHARACTER (U+FFFD)
3237 instead, except within \f(CW\*(C`(?[\ \ \ ])\*(C'\fR, where it is a fatal error.
3238 The <\-\-\ HERE shows whereabouts in the regular expression the
3239 escape was discovered.
3240 .IP "Invalid hexadecimal number in \eN{U+...}" 4
3241 .IX Item "Invalid hexadecimal number in N{U+...}"
3242 .PD 0
3243 .IP "Invalid hexadecimal number in \eN{U+...} in regex; marked by <\-\-\ HERE in m/%s/" 4
3244 .IX Item "Invalid hexadecimal number in N{U+...} in regex; marked by <-- HERE in m/%s/"
3245 .PD
3246 (F) The character constant represented by \f(CW\*(C`...\*(C'\fR is not a valid hexadecimal
3247 number. Either it is empty, or you tried to use a character other than
3248 0 \- 9 or A \- F, a \- f in a hexadecimal number.
3249 .ie n .IP "Invalid module name %s with \-%c option: contains single \*(Aq:\*(Aq" 4
3250 .el .IP "Invalid module name \f(CW%s\fR with \-%c option: contains single \*(Aq:\*(Aq" 4
3251 .IX Item "Invalid module name %s with -%c option: contains single ':'"
3252 (F) The module argument to perl\*(Aqs \fB\-m\fR and \fB\-M\fR command\-line options
3253 cannot contain single colons in the module name, but only in the
3254 arguments after "=". In other words, \fB\-MFoo::Bar=:baz\fR is ok, but
3255 \&\fB\-MFoo:Bar=baz\fR is not.
3256 .IP "Invalid mro name: \*(Aq%s\*(Aq" 4
3257 .IX Item "Invalid mro name: '%s'"
3258 (F) You tried to \f(CW\*(C`mro::set_mro("classname", "foo")\*(C'\fR or \f(CW\*(C`use mro \*(Aqfoo\*(Aq\*(C'\fR,
3259 where \f(CW\*(C`foo\*(C'\fR is not a valid method resolution order (MRO). Currently,
3260 the only valid ones supported are \f(CW\*(C`dfs\*(C'\fR and \f(CW\*(C`c3\*(C'\fR, unless you have loaded
3261 a module that is a MRO plugin. See mro and perlmroapi.
3262 .IP "Invalid negative number (%s) in chr" 4
3263 .IX Item "Invalid negative number (%s) in chr"
3264 (W utf8) You passed a negative number to \f(CW\*(C`chr\*(C'\fR. Negative numbers are
3265 not valid character numbers, so it returns the Unicode replacement
3266 character (U+FFFD).
3267 .IP "Invalid number \*(Aq%s\*(Aq for \-C option." 4
3268 .IX Item "Invalid number '%s' for -C option."
3269 (F) You supplied a number to the \-C option that either has extra leading
3270 zeroes or overflows perl\*(Aqs unsigned integer representation.
3271 .IP "invalid option \-D%c, use \-D\*(Aq\*(Aq to see choices" 4
3272 .IX Item "invalid option -D%c, use -D'' to see choices"
3273 (S debugging) Perl was called with invalid debugger flags. Call perl
3274 with the \fB\-D\fR option with no flags to see the list of acceptable values.
3275 See also "\-Dletters" in perlrun.
3276 .IP "Invalid quantifier in {,} in regex; marked by <\-\-\ HERE in m/%s/" 4
3277 .IX Item "Invalid quantifier in {,} in regex; marked by <-- HERE in m/%s/"
3278 (F) The pattern looks like a {min,max} quantifier, but the min or max
3279 could not be parsed as a valid number \- either it has leading zeroes,
3280 or it represents too big a number to cope with. The <\-\-\ HERE shows
3281 where in the regular expression the problem was discovered. See perlre.
3282 .IP "Invalid [] range ""%s"" in regex; marked by <\-\-\ HERE in m/%s/" 4
3283 .IX Item "Invalid [] range ""%s"" in regex; marked by <-- HERE in m/%s/"
3284 (F) The range specified in a character class had a minimum character
3285 greater than the maximum character. One possibility is that you forgot the
3286 \&\f(CW\*(C`{}\*(C'\fR from your ending \f(CW\*(C`\ex{}\*(C'\fR \- \f(CW\*(C`\ex\*(C'\fR without the curly braces can go only
3287 up to \f(CW\*(C`ff\*(C'\fR. The <\-\-\ HERE shows whereabouts in the regular expression the
3288 problem was discovered. See perlre.
3289 .IP "Invalid range ""%s"" in transliteration operator" 4
3290 .IX Item "Invalid range ""%s"" in transliteration operator"
3291 (F) The range specified in the tr/// or y/// operator had a minimum
3292 character greater than the maximum character. See perlop.
3293 .IP "Invalid reference to group in regex; marked by <\-\-\ HERE in m/%s/" 4
3294 .IX Item "Invalid reference to group in regex; marked by <-- HERE in m/%s/"
3295 (F) The capture group you specified can\*(Aqt possibly exist because the
3296 number you used is not within the legal range of possible values for
3297 this machine.
3298 .ie n .IP "Invalid separator character %s in attribute list" 4
3299 .el .IP "Invalid separator character \f(CW%s\fR in attribute list" 4
3300 .IX Item "Invalid separator character %s in attribute list"
3301 (F) Something other than a colon or whitespace was seen between the
3302 elements of an attribute list. If the previous attribute had a
3303 parenthesised parameter list, perhaps that list was terminated too soon.
3304 See attributes.
3305 .ie n .IP "Invalid separator character %s in PerlIO layer specification %s" 4
3306 .el .IP "Invalid separator character \f(CW%s\fR in PerlIO layer specification \f(CW%s\fR" 4
3307 .IX Item "Invalid separator character %s in PerlIO layer specification %s"
3308 (W layer) When pushing layers onto the Perl I/O system, something other
3309 than a colon or whitespace was seen between the elements of a layer list.
3310 If the previous attribute had a parenthesised parameter list, perhaps that
3311 list was terminated too soon.
3312 .IP "Invalid strict version format (%s)" 4
3313 .IX Item "Invalid strict version format (%s)"
3314 (F) A version number did not meet the "strict" criteria for versions.
3315 A "strict" version number is a positive decimal number (integer or
3316 decimal\-fraction) without exponentiation or else a dotted\-decimal
3317 v\-string with a leading \*(Aqv\*(Aq character and at least three components.
3318 The parenthesized text indicates which criteria were not met.
3319 See the version module for more details on allowed version formats.
3320 .ie n .IP "Invalid type \*(Aq%s\*(Aq in %s" 4
3321 .el .IP "Invalid type \*(Aq%s\*(Aq in \f(CW%s\fR" 4
3322 .IX Item "Invalid type '%s' in %s"
3323 (F) The given character is not a valid pack or unpack type.
3324 See "pack" in perlfunc.
3325 .Sp
3326 (W) The given character is not a valid pack or unpack type but used to be
3327 silently ignored.
3328 .IP "Invalid version bundle ""%s""" 4
3329 .IX Item "Invalid version bundle ""%s"""
3330 (F) A version number that is used to specify an import bundle during a
3331 \&\f(CW\*(C`use builtin ...\*(C'\fR statement must be formatted as \f(CW\*(C`:MAJOR.MINOR\*(C'\fR with an
3332 optional third component, which is ignored. Each component must be a number
3333 of 1 to 3 digits. No other characters are permitted. The value that was
3334 specified does not conform to these rules.
3335 .IP "Invalid version format (%s)" 4
3336 .IX Item "Invalid version format (%s)"
3337 (F) A version number did not meet the "lax" criteria for versions.
3338 A "lax" version number is a positive decimal number (integer or
3339 decimal\-fraction) without exponentiation or else a dotted\-decimal
3340 v\-string. If the v\-string has fewer than three components, it
3341 must have a leading \*(Aqv\*(Aq character. Otherwise, the leading \*(Aqv\*(Aq is
3342 optional. Both decimal and dotted\-decimal versions may have a
3343 trailing "alpha" component separated by an underscore character
3344 after a fractional or dotted\-decimal component. The parenthesized
3345 text indicates which criteria were not met. See the version module
3346 for more details on allowed version formats.
3347 .IP "Invalid version object" 4
3348 .IX Item "Invalid version object"
3349 (F) The internal structure of the version object was invalid.
3350 Perhaps the internals were modified directly in some way or
3351 an arbitrary reference was blessed into the "version" class.
3352 .IP "In \*(Aq(*VERB...)\*(Aq, the \*(Aq(\*(Aq and \*(Aq*\*(Aq must be adjacent in regex; marked by <\-\-\ HERE in m/%s/" 4
3353 .IX Item "In '(*VERB...)', the '(' and '*' must be adjacent in regex; marked by <-- HERE in m/%s/"
3354 .PD 0
3355 .IP "Inverting a character class which contains a multi\-character sequence is illegal in regex; marked by <\-\- HERE in m/%s/" 4
3356 .IX Item "Inverting a character class which contains a multi-character sequence is illegal in regex; marked by <-- HERE in m/%s/"
3357 .PD
3358 (F) You wrote something like
3359 .Sp
3360 .Vb 2
3361 \& qr/\eP{name=KATAKANA LETTER AINU P}/
3362 \& qr/[^\ep{name=KATAKANA LETTER AINU P}]/
3363 .Ve
3364 .Sp
3365 This name actually evaluates to a sequence of two Katakana characters,
3366 not just a single one, and it is illegal to try to take the complement
3367 of a sequence. (Mathematically it would mean any sequence of characters
3368 from 0 to infinity in length that weren\*(Aqt these two in a row, and that
3369 is likely not of any real use.)
3370 .Sp
3371 (F) The two\-character sequence \f(CW"(*"\fR in this context in a regular
3372 expression pattern should be an indivisible token, with nothing
3373 intervening between the \f(CW"("\fR and the \f(CW"*"\fR, but you separated them.
3374 .IP "ioctl is not implemented" 4
3375 .IX Item "ioctl is not implemented"
3376 (F) Your machine apparently doesn\*(Aqt implement \fBioctl()\fR, which is pretty
3377 strange for a machine that supports C.
3378 .ie n .IP "\fBioctl()\fR on unopened %s" 4
3379 .el .IP "\fBioctl()\fR on unopened \f(CW%s\fR" 4
3380 .IX Item "ioctl() on unopened %s"
3381 (W unopened) You tried \fBioctl()\fR on a filehandle that was never opened.
3382 Check your control flow and number of arguments.
3383 .IP "IO layers (like \*(Aq%s\*(Aq) unavailable" 4
3384 .IX Item "IO layers (like '%s') unavailable"
3385 (F) Your Perl has not been configured to have PerlIO, and therefore
3386 you cannot use IO layers. To have PerlIO, Perl must be configured
3387 with \*(Aquseperlio\*(Aq.
3388 .IP "IO::Socket::atmark not implemented on this architecture" 4
3389 .IX Item "IO::Socket::atmark not implemented on this architecture"
3390 (F) Your machine doesn\*(Aqt implement the \fBsockatmark()\fR functionality,
3391 neither as a system call nor an ioctl call (SIOCATMARK).
3392 .IP "\*(Aq%s\*(Aq is an unknown bound type in regex; marked by <\-\-\ HERE in m/%s/" 4
3393 .IX Item "'%s' is an unknown bound type in regex; marked by <-- HERE in m/%s/"
3394 (F) You used \f(CW\*(C`\eb{...}\*(C'\fR or \f(CW\*(C`\eB{...}\*(C'\fR and the \f(CW\*(C`...\*(C'\fR is not known to
3395 Perl. The current valid ones are given in
3396 "\eb{}, \eb, \eB{}, \eB" in perlrebackslash.
3397 .IP "%s() isn\*(Aqt allowed on :utf8 handles" 4
3398 .IX Item "%s() isn't allowed on :utf8 handles"
3399 (F) The \fBsysread()\fR, \fBrecv()\fR, \fBsyswrite()\fR and \fBsend()\fR operators are
3400 not allowed on handles that have the \f(CW\*(C`:utf8\*(C'\fR layer, either explicitly, or
3401 implicitly, eg., with the \f(CW:encoding(UTF\-16LE)\fR layer.
3402 .Sp
3403 Previously \fBsysread()\fR and \fBrecv()\fR currently use only the \f(CW\*(C`:utf8\*(C'\fR flag for the stream,
3404 ignoring the actual layers. Since \fBsysread()\fR and \fBrecv()\fR did no UTF\-8
3405 validation they can end up creating invalidly encoded scalars.
3406 .Sp
3407 Similarly, \fBsyswrite()\fR and \fBsend()\fR used only the \f(CW\*(C`:utf8\*(C'\fR flag, otherwise ignoring
3408 any layers. If the flag is set, both wrote the value UTF\-8 encoded, even if
3409 the layer is some different encoding, such as the example above.
3410 .Sp
3411 Ideally, all of these operators would completely ignore the \f(CW\*(C`:utf8\*(C'\fR state,
3412 working only with bytes, but this would result in silently breaking existing
3413 code.
3414 .IP """%s"" is more clearly written simply as ""%s"" in regex; marked by <\-\-\ HERE in m/%s/" 4
3415 .IX Item """%s"" is more clearly written simply as ""%s"" in regex; marked by <-- HERE in m/%s/"
3416 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR or within \f(CW\*(C`(?[...])\*(C'\fR)
3417 .Sp
3418 You specified a character that has the given plainer way of writing it, and
3419 which is also portable to platforms running with different character sets.
3420 .IP "$* is no longer supported as of Perl 5.30" 4
3421 .IX Item "$* is no longer supported as of Perl 5.30"
3422 (F) The special variable \f(CW$*\fR, deprecated in older perls, was removed in
3423 5.10.0, is no longer supported and is a fatal error as of Perl 5.30. In
3424 previous versions of perl the use of \f(CW$*\fR enabled or disabled multi\-line
3425 matching within a string.
3426 .Sp
3427 Instead of using \f(CW$*\fR you should use the \f(CW\*(C`/m\*(C'\fR (and maybe \f(CW\*(C`/s\*(C'\fR) regexp
3428 modifiers. You can enable \f(CW\*(C`/m\*(C'\fR for a lexical scope (even a whole file)
3429 with \f(CW\*(C`use re \*(Aq/m\*(Aq\*(C'\fR. (In older versions: when \f(CW$*\fR was set to a true value
3430 then all regular expressions behaved as if they were written using \f(CW\*(C`/m\*(C'\fR.)
3431 .Sp
3432 Use of this variable will be a fatal error in Perl 5.30.
3433 .IP "$# is no longer supported as of Perl 5.30" 4
3434 .IX Item "$# is no longer supported as of Perl 5.30"
3435 (F) The special variable \f(CW$#\fR, deprecated in older perls, was removed as of
3436 5.10.0, is no longer supported and is a fatal error as of Perl 5.30. You
3437 should use the printf/sprintf functions instead.
3438 .IP "\*(Aq%s\*(Aq is not a code reference" 4
3439 .IX Item "'%s' is not a code reference"
3440 (W overload) The second (fourth, sixth, ...) argument of
3441 overload::constant needs to be a code reference. Either
3442 an anonymous subroutine, or a reference to a subroutine.
3443 .IP """%s"" is not a valid name for a generated method" 4
3444 .IX Item """%s"" is not a valid name for a generated method"
3445 (F) A custom method name was passed to an attribute on a field, such as
3446 \&\f(CW\*(C`:reader\*(C'\fR, which creates a new method. These generated methods must have
3447 valid names, but the value given to the attribute would result in an
3448 invalid name.
3449 .IP "\*(Aq%s\*(Aq is not an overloadable type" 4
3450 .IX Item "'%s' is not an overloadable type"
3451 (W overload) You tried to overload a constant type the overload package is
3452 unaware of.
3453 .IP "\*(Aq%s\*(Aq is not recognised as a builtin function" 4
3454 .IX Item "'%s' is not recognised as a builtin function"
3455 (F) An attempt was made to \f(CW\*(C`use\*(C'\fR the builtin pragma module to create
3456 a lexical alias for an unknown function name.
3457 .IP "\-i used with no filenames on the command line, reading from STDIN" 4
3458 .IX Item "-i used with no filenames on the command line, reading from STDIN"
3459 (S inplace) The \f(CW\*(C`\-i\*(C'\fR option was passed on the command line, indicating
3460 that the script is intended to edit files in place, but no files were
3461 given. This is usually a mistake, since editing STDIN in place doesn\*(Aqt
3462 make sense, and can be confusing because it can make perl look like
3463 it is hanging when it is really just trying to read from STDIN. You
3464 should either pass a filename to edit, or remove \f(CW\*(C`\-i\*(C'\fR from the command
3465 line. See perlrun for more details.
3466 .IP "Junk on end of regexp in regex m/%s/" 4
3467 .IX Item "Junk on end of regexp in regex m/%s/"
3468 (P) The regular expression parser is confused.
3469 .IP "\eK not permitted in lookahead/lookbehind in regex; marked by <\-\- HERE in m/%s/" 4
3470 .IX Item "K not permitted in lookahead/lookbehind in regex; marked by <-- HERE in m/%s/"
3471 (F) Your regular expression used \f(CW\*(C`\eK\*(C'\fR in a lookahead or lookbehind
3472 assertion, which currently isn\*(Aqt permitted.
3473 .Sp
3474 This may change in the future, see Support \eK in
3475 lookarounds <https://github.com/Perl/perl5/issues/18134>.
3476 .ie n .IP "Label not found for ""last %s""" 4
3477 .el .IP "Label not found for ""last \f(CW%s\fR""" 4
3478 .IX Item "Label not found for ""last %s"""
3479 (F) You named a loop to break out of, but you\*(Aqre not currently in a loop
3480 of that name, not even if you count where you were called from. See
3481 "last" in perlfunc.
3482 .ie n .IP "Label not found for ""next %s""" 4
3483 .el .IP "Label not found for ""next \f(CW%s\fR""" 4
3484 .IX Item "Label not found for ""next %s"""
3485 (F) You named a loop to continue, but you\*(Aqre not currently in a loop of
3486 that name, not even if you count where you were called from. See
3487 "last" in perlfunc.
3488 .ie n .IP "Label not found for ""redo %s""" 4
3489 .el .IP "Label not found for ""redo \f(CW%s\fR""" 4
3490 .IX Item "Label not found for ""redo %s"""
3491 (F) You named a loop to restart, but you\*(Aqre not currently in a loop of
3492 that name, not even if you count where you were called from. See
3493 "last" in perlfunc.
3494 .ie n .IP "leaving effective %s failed" 4
3495 .el .IP "leaving effective \f(CW%s\fR failed" 4
3496 .IX Item "leaving effective %s failed"
3497 (F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, switching the real and
3498 effective uids or gids failed.
3499 .IP "length/code after end of string in unpack" 4
3500 .IX Item "length/code after end of string in unpack"
3501 (F) While unpacking, the string buffer was already used up when an unpack
3502 length/code combination tried to obtain more data. This results in
3503 an undefined value for the length. See "pack" in perlfunc.
3504 .ie n .IP "\fBlength()\fR used on %s (did you mean ""scalar(%s)""?)" 4
3505 .el .IP "\fBlength()\fR used on \f(CW%s\fR (did you mean ""scalar(%s)""?)" 4
3506 .IX Item "length() used on %s (did you mean ""scalar(%s)""?)"
3507 (W syntax) You used \fBlength()\fR on either an array or a hash when you
3508 probably wanted a count of the items.
3509 .Sp
3510 Array size can be obtained by doing:
3511 .Sp
3512 .Vb 1
3513 \& scalar(@array);
3514 .Ve
3515 .Sp
3516 The number of items in a hash can be obtained by doing:
3517 .Sp
3518 .Vb 1
3519 \& scalar(keys %hash);
3520 .Ve
3521 .IP "Lexing code attempted to stuff non\-Latin\-1 character into Latin\-1 input" 4
3522 .IX Item "Lexing code attempted to stuff non-Latin-1 character into Latin-1 input"
3523 (F) An extension is attempting to insert text into the current parse
3524 (using lex_stuff_pvn or similar), but tried to insert a character that
3525 couldn\*(Aqt be part of the current input. This is an inherent pitfall
3526 of the stuffing mechanism, and one of the reasons to avoid it. Where
3527 it is necessary to stuff, stuffing only plain ASCII is recommended.
3528 .IP "Lexing code internal error (%s)" 4
3529 .IX Item "Lexing code internal error (%s)"
3530 (F) Lexing code supplied by an extension violated the lexer\*(Aqs API in a
3531 detectable way.
3532 .ie n .IP "\fBlisten()\fR on closed socket %s" 4
3533 .el .IP "\fBlisten()\fR on closed socket \f(CW%s\fR" 4
3534 .IX Item "listen() on closed socket %s"
3535 (W closed) You tried to do a listen on a closed socket. Did you forget
3536 to check the return value of your \fBsocket()\fR call? See
3537 "listen" in perlfunc.
3538 .IP "List form of piped open not implemented" 4
3539 .IX Item "List form of piped open not implemented"
3540 (F) On some platforms, notably Windows, the three\-or\-more\-arguments
3541 form of \f(CW\*(C`open\*(C'\fR does not support pipes, such as \f(CW\*(C`open($pipe, \*(Aq|\-\*(Aq, @args)\*(C'\fR.
3542 Use the two\-argument \f(CW\*(C`open($pipe, \*(Aq|prog arg1 arg2...\*(Aq)\*(C'\fR form instead.
3543 .IP "Literal vertical space in [] is illegal except under /x in regex; marked by <\-\-\ HERE in m/%s/" 4
3544 .IX Item "Literal vertical space in [] is illegal except under /x in regex; marked by <-- HERE in m/%s/"
3545 (F) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR or within \f(CW\*(C`(?[...])\*(C'\fR)
3546 .Sp
3547 Likely you forgot the \f(CW\*(C`/x\*(C'\fR modifier or there was a typo in the pattern.
3548 For example, did you really mean to match a form\-feed? If so, all the
3549 ASCII vertical space control characters are representable by escape
3550 sequences which won\*(Aqt present such a jarring appearance as your pattern
3551 does when displayed.
3552 .Sp
3553 .Vb 4
3554 \& \er carriage return
3555 \& \ef form feed
3556 \& \en line feed
3557 \& \ecK vertical tab
3558 .Ve
3559 .ie n .IP "%s: loadable library and perl binaries are mismatched (got %s handshake key %p, needed %p)" 4
3560 .el .IP "\f(CW%s:\fR loadable library and perl binaries are mismatched (got \f(CW%s\fR handshake key \f(CW%p\fR, needed \f(CW%p\fR)" 4
3561 .IX Item "%s: loadable library and perl binaries are mismatched (got %s handshake key %p, needed %p)"
3562 (P) A dynamic loading library \f(CW\*(C`.so\*(C'\fR or \f(CW\*(C`.dll\*(C'\fR was being loaded into the
3563 process that was built against a different build of perl than the
3564 said library was compiled against. Reinstalling the XS module will
3565 likely fix this error. This error is a less commonly seen subset of
3566 "Perl API version \f(CW%s\fR of \f(CW%s\fR does not match \f(CW%s\fR"
3567 error.
3568 .ie n .IP "Locale \*(Aq%s\*(Aq contains (at least) the following characters which have unexpected meanings: %s The Perl program will use the expected meanings" 4
3569 .el .IP "Locale \*(Aq%s\*(Aq contains (at least) the following characters which have unexpected meanings: \f(CW%s\fR The Perl program will use the expected meanings" 4
3570 .IX Item "Locale '%s' contains (at least) the following characters which have unexpected meanings: %s The Perl program will use the expected meanings"
3571 (W locale) You are using the named UTF\-8 locale. UTF\-8 locales are
3572 expected to have very particular behavior, which most do. This message
3573 arises when perl found some departures from the expectations, and is
3574 notifying you that the expected behavior overrides these differences.
3575 In some cases the differences are caused by the locale definition being
3576 defective, but the most common causes of this warning are when there are
3577 ambiguities and conflicts in following the Standard, and the locale has
3578 chosen an approach that differs from Perl\*(Aqs.
3579 .Sp
3580 One of these is because that, contrary to the claims, Unicode is not
3581 completely locale insensitive. Turkish and some related languages
3582 have two types of \f(CW"I"\fR characters. One is dotted in both upper\- and
3583 lowercase, and the other is dotless in both cases. Unicode allows a
3584 locale to use either the Turkish rules, or the rules used in all other
3585 instances, where there is only one type of \f(CW"I"\fR, which is dotless in
3586 the uppercase, and dotted in the lower. The perl core does not (yet)
3587 handle the Turkish case, and this message warns you of that. Instead,
3588 the Unicode::Casing module allows you to mostly implement the Turkish
3589 casing rules.
3590 .Sp
3591 The other common cause is for the characters
3592 .Sp
3593 .Vb 1
3594 \& $ + < = > ^ \` | ~
3595 .Ve
3596 .Sp
3597 These are problematic. The C standard says that these should be
3598 considered punctuation in the C locale (and the POSIX standard defers to
3599 the C standard), and Unicode is generally considered a superset of
3600 the C locale. But Unicode has added an extra category, "Symbol", and
3601 classifies these particular characters as being symbols. Most UTF\-8
3602 locales have them treated as punctuation, so that \fBispunct\fR\|(3) returns
3603 non\-zero for them. But a few locales have it return 0. Perl takes
3604 the first approach, not using \f(CWispunct()\fR at all (see Note [5] in
3605 perlrecharclass), and this message is raised to notify you that you
3606 are getting Perl\*(Aqs approach, not the locale\*(Aqs.
3607 .IP "Locale \*(Aq%s\*(Aq is unsupported, and may crash the interpreter" 4
3608 .IX Item "Locale '%s' is unsupported, and may crash the interpreter"
3609 (S locale) The named locale is not supported by Perl, and using it leads
3610 to undefined behavior, including potentially crashing the computer.
3611 .Sp
3612 Currently the only locales that generate this severe warning are
3613 non\-UTF\-8 ones which have characters that require more than one byte to
3614 represent (common in older East Asian language locales). See
3615 perllocale.
3616 .IP "Locale \*(Aq%s\*(Aq may not work well.%s" 4
3617 .IX Item "Locale '%s' may not work well.%s"
3618 (W locale) You are using the named locale, which is a non\-UTF\-8 one, and
3619 which perl has determined is not fully compatible with what it can
3620 handle. The second \f(CW%s\fR gives a reason.
3621 .Sp
3622 By far the most common reason is that the locale has characters in it
3623 that are represented by more than one byte. The only such locales that
3624 Perl can handle are the UTF\-8 locales. Most likely the specified locale
3625 is a non\-UTF\-8 one for an East Asian language such as Chinese or
3626 Japanese. If the locale is a superset of ASCII, the ASCII portion of it
3627 may work in Perl.
3628 .Sp
3629 Some essentially obsolete locales that aren\*(Aqt supersets of ASCII, mainly
3630 those in ISO 646 or other 7\-bit locales, such as ASMO 449, can also have
3631 problems, depending on what portions of the ASCII character set get
3632 changed by the locale and are also used by the program.
3633 The warning message lists the determinable conflicting characters.
3634 .Sp
3635 Note that not all incompatibilities are found.
3636 .Sp
3637 If this happens to you, there\*(Aqs not much you can do except switch to use a
3638 different locale or use Encode to translate from the locale into
3639 UTF\-8; if that\*(Aqs impracticable, you have been warned that some things
3640 may break.
3641 .Sp
3642 This message is output once each time a bad locale is switched into
3643 within the scope of \f(CW\*(C`use\ locale\*(C'\fR, or on the first possibly\-affected
3644 operation if the \f(CW\*(C`use\ locale\*(C'\fR inherits a bad one. It is not raised
3645 for any operations from the POSIX module.
3646 .IP "localtime(%f) failed" 4
3647 .IX Item "localtime(%f) failed"
3648 (W overflow) You called \f(CW\*(C`localtime\*(C'\fR with a number that it could not handle:
3649 too large, too small, or NaN. The returned value is \f(CW\*(C`undef\*(C'\fR.
3650 .IP "localtime(%f) too large" 4
3651 .IX Item "localtime(%f) too large"
3652 (W overflow) You called \f(CW\*(C`localtime\*(C'\fR with a number that was larger
3653 than it can reliably handle and \f(CW\*(C`localtime\*(C'\fR probably returned the
3654 wrong date. This warning is also triggered with NaN (the special
3655 not\-a\-number value).
3656 .IP "localtime(%f) too small" 4
3657 .IX Item "localtime(%f) too small"
3658 (W overflow) You called \f(CW\*(C`localtime\*(C'\fR with a number that was smaller
3659 than it can reliably handle and \f(CW\*(C`localtime\*(C'\fR probably returned the
3660 wrong date.
3661 .ie n .IP "Lookbehind longer than %d not implemented in regex m/%s/" 4
3662 .el .IP "Lookbehind longer than \f(CW%d\fR not implemented in regex m/%s/" 4
3663 .IX Item "Lookbehind longer than %d not implemented in regex m/%s/"
3664 (F) There is currently a limit on the length of string which lookbehind can
3665 handle. This restriction may be eased in a future release.
3666 .ie n .IP "Lost precision when %s %f by 1" 4
3667 .el .IP "Lost precision when \f(CW%s\fR \f(CW%f\fR by 1" 4
3668 .IX Item "Lost precision when %s %f by 1"
3669 (W imprecision) You attempted to increment or decrement a value by one,
3670 but the result is too large for the underlying floating point
3671 representation to store accurately. Hence, the target of \f(CW\*(C`++\*(C'\fR or \f(CW\*(C`\-\-\*(C'\fR
3672 is increased or decreased by quite different value than one, such as
3673 zero (\fIi.e.\fR the target is unchanged) or two, due to rounding.
3674 Perl issues this
3675 warning because it has already switched from integers to floating point
3676 when values are too large for integers, and now even floating point is
3677 insufficient. You may wish to switch to using Math::BigInt explicitly.
3678 .IP "\fBlstat()\fR on filehandle%s" 4
3679 .IX Item "lstat() on filehandle%s"
3680 (W io) You tried to do an lstat on a filehandle. What did you mean
3681 by that? \fBlstat()\fR makes sense only on filenames. (Perl did a \fBfstat()\fR
3682 instead on the filehandle.)
3683 .ie n .IP "lvalue attribute %s already\-defined subroutine" 4
3684 .el .IP "lvalue attribute \f(CW%s\fR already\-defined subroutine" 4
3685 .IX Item "lvalue attribute %s already-defined subroutine"
3686 (W misc) Although attributes.pm allows this, turning the lvalue
3687 attribute on or off on a Perl subroutine that is already defined
3688 does not always work properly. It may or may not do what you
3689 want, depending on what code is inside the subroutine, with exact
3690 details subject to change between Perl versions. Only do this
3691 if you really know what you are doing.
3692 .IP "lvalue attribute ignored after the subroutine has been defined" 4
3693 .IX Item "lvalue attribute ignored after the subroutine has been defined"
3694 (W misc) Using the \f(CW\*(C`:lvalue\*(C'\fR declarative syntax to make a Perl
3695 subroutine an lvalue subroutine after it has been defined is
3696 not permitted. To make the subroutine an lvalue subroutine,
3697 add the lvalue attribute to the definition, or put the \f(CW\*(C`sub
3698 foo :lvalue;\*(C'\fR declaration before the definition.
3699 .Sp
3700 See also attributes.pm.
3701 .IP "Magical list constants are not supported" 4
3702 .IX Item "Magical list constants are not supported"
3703 (F) You assigned a magical array to a stash element, and then tried
3704 to use the subroutine from the same slot. You are asking Perl to do
3705 something it cannot do, details subject to change between Perl versions.
3706 .IP "Malformed integer in [] in pack" 4
3707 .IX Item "Malformed integer in [] in pack"
3708 (F) Between the brackets enclosing a numeric repeat count only digits
3709 are permitted. See "pack" in perlfunc.
3710 .IP "Malformed integer in [] in unpack" 4
3711 .IX Item "Malformed integer in [] in unpack"
3712 (F) Between the brackets enclosing a numeric repeat count only digits
3713 are permitted. See "pack" in perlfunc.
3714 .IP "Malformed PERLLIB_PREFIX" 4
3715 .IX Item "Malformed PERLLIB_PREFIX"
3716 (F) An error peculiar to OS/2. PERLLIB_PREFIX should be of the form
3717 .Sp
3718 .Vb 1
3719 \& prefix1;prefix2
3720 .Ve
3721 .Sp
3722 or
3723 prefix1 prefix2
3724 .Sp
3725 with nonempty prefix1 and prefix2. If \f(CW\*(C`prefix1\*(C'\fR is indeed a prefix of
3726 a builtin library search path, prefix2 is substituted. The error may
3727 appear if components are not found, or are too long. See
3728 "PERLLIB_PREFIX" in perlos2.
3729 .ie n .IP "Malformed prototype for %s: %s" 4
3730 .el .IP "Malformed prototype for \f(CW%s:\fR \f(CW%s\fR" 4
3731 .IX Item "Malformed prototype for %s: %s"
3732 (F) You tried to use a function with a malformed prototype. The
3733 syntax of function prototypes is given a brief compile\-time check for
3734 obvious errors like invalid characters. A more rigorous check is run
3735 when the function is called.
3736 Perhaps the function\*(Aqs author was trying to write a subroutine signature
3737 but didn\*(Aqt enable that feature first (\f(CW\*(C`use feature \*(Aqsignatures\*(Aq\*(C'\fR),
3738 so the signature was instead interpreted as a bad prototype.
3739 .IP "Malformed UTF\-8 character%s" 4
3740 .IX Item "Malformed UTF-8 character%s"
3741 (S utf8)(F) Perl detected a string that should be UTF\-8, but didn\*(Aqt
3742 comply with UTF\-8 encoding rules, or represents a code point whose
3743 ordinal integer value doesn\*(Aqt fit into the word size of the current
3744 platform (overflows). Details as to the exact malformation are given in
3745 the variable, \f(CW%s\fR, part of the message.
3746 .Sp
3747 One possible cause is that you set the UTF8 flag yourself for data that
3748 you thought to be in UTF\-8 but it wasn\*(Aqt (it was for example legacy 8\-bit
3749 data). To guard against this, you can use \f(CW\*(C`Encode::decode(\*(AqUTF\-8\*(Aq, ...)\*(C'\fR.
3750 .Sp
3751 If you use the \f(CW:encoding(UTF\-8)\fR PerlIO layer for input, invalid byte
3752 sequences are handled gracefully, but if you use \f(CW\*(C`:utf8\*(C'\fR, the flag is set
3753 without validating the data, possibly resulting in this error message.
3754 .Sp
3755 See also "Handling Malformed Data" in Encode.
3756 .IP "Malformed UTF\-8 returned by \eN{%s} immediately after \*(Aq%s\*(Aq" 4
3757 .IX Item "Malformed UTF-8 returned by N{%s} immediately after '%s'"
3758 (F) The charnames handler returned malformed UTF\-8.
3759 .IP "Malformed UTF\-8 string in ""%s""" 4
3760 .IX Item "Malformed UTF-8 string in ""%s"""
3761 (F) This message indicates a bug either in the Perl core or in XS
3762 code. Such code was trying to find out if a character, allegedly
3763 stored internally encoded as UTF\-8, was of a given type, such as
3764 being punctuation or a digit. But the character was not encoded
3765 in legal UTF\-8. The \f(CW%s\fR is replaced by a string that can be used
3766 by knowledgeable people to determine what the type being checked
3767 against was.
3768 .Sp
3769 Passing malformed strings was deprecated in Perl 5.18, and
3770 became fatal in Perl 5.26.
3771 .IP "Malformed UTF\-8 string in \*(Aq%c\*(Aq format in unpack" 4
3772 .IX Item "Malformed UTF-8 string in '%c' format in unpack"
3773 (F) You tried to unpack something that didn\*(Aqt comply with UTF\-8 encoding
3774 rules and perl was unable to guess how to make more progress.
3775 .IP "Malformed UTF\-8 string in pack" 4
3776 .IX Item "Malformed UTF-8 string in pack"
3777 (F) You tried to pack something that didn\*(Aqt comply with UTF\-8 encoding
3778 rules and perl was unable to guess how to make more progress.
3779 .IP "Malformed UTF\-8 string in unpack" 4
3780 .IX Item "Malformed UTF-8 string in unpack"
3781 (F) You tried to unpack something that didn\*(Aqt comply with UTF\-8 encoding
3782 rules and perl was unable to guess how to make more progress.
3783 .IP "Malformed UTF\-16 surrogate" 4
3784 .IX Item "Malformed UTF-16 surrogate"
3785 (F) Perl thought it was reading UTF\-16 encoded character data but while
3786 doing it Perl met a malformed Unicode surrogate.
3787 .IP "Mandatory parameter follows optional parameter" 4
3788 .IX Item "Mandatory parameter follows optional parameter"
3789 (F) In a subroutine signature, you wrote something like "$x = undef,
3790 \&\f(CW$y\fR", making an earlier parameter optional and a later one mandatory.
3791 Parameters are filled from left to right, so it\*(Aqs impossible for the
3792 caller to omit an earlier one and pass a later one. If you want to act
3793 as if the parameters are filled from right to left, declare the rightmost
3794 optional and then shuffle the parameters around in the subroutine\*(Aqs body.
3795 .IP "Matched non\-Unicode code point 0x%X against Unicode property; may not be portable" 4
3796 .IX Item "Matched non-Unicode code point 0x%X against Unicode property; may not be portable"
3797 (S non_unicode) Perl allows strings to contain a superset of
3798 Unicode code points; each code point may be as large as what is storable
3799 in a signed integer on your system, but these may not be accepted by
3800 other languages/systems. This message occurs when you matched a string
3801 containing such a code point against a regular expression pattern, and
3802 the code point was matched against a Unicode property, \f(CW\*(C`\ep{...}\*(C'\fR or
3803 \&\f(CW\*(C`\eP{...}\*(C'\fR. Unicode properties are only defined on Unicode code points,
3804 so the result of this match is undefined by Unicode, but Perl (starting
3805 in v5.20) treats non\-Unicode code points as if they were typical
3806 unassigned Unicode ones, and matched this one accordingly. Whether a
3807 given property matches these code points or not is specified in
3808 "Properties accessible through \ep{} and \eP{}" in perluniprops.
3809 .Sp
3810 This message is suppressed (unless it has been made fatal) if it is
3811 immaterial to the results of the match if the code point is Unicode or
3812 not. For example, the property \f(CW\*(C`\ep{ASCII_Hex_Digit}\*(C'\fR only can match
3813 the 22 characters \f(CW\*(C`[0\-9A\-Fa\-f]\*(C'\fR, so obviously all other code points,
3814 Unicode or not, won\*(Aqt match it. (And \f(CW\*(C`\eP{ASCII_Hex_Digit}\*(C'\fR will match
3815 every code point except these 22.)
3816 .Sp
3817 Getting this message indicates that the outcome of the match arguably
3818 should have been the opposite of what actually happened. If you think
3819 that is the case, you may wish to make the \f(CW\*(C`non_unicode\*(C'\fR warnings
3820 category fatal; if you agree with Perl\*(Aqs decision, you may wish to turn
3821 off this category.
3822 .Sp
3823 See "Beyond Unicode code points" in perlunicode for more information.
3824 .ie n .IP "%s matches null string many times in regex; marked by <\-\-\ HERE in m/%s/" 4
3825 .el .IP "\f(CW%s\fR matches null string many times in regex; marked by <\-\-\ HERE in m/%s/" 4
3826 .IX Item "%s matches null string many times in regex; marked by <-- HERE in m/%s/"
3827 (W regexp) The pattern you\*(Aqve specified would be an infinite loop if the
3828 regular expression engine didn\*(Aqt specifically check for that. The <\-\-\ HERE
3829 shows whereabouts in the regular expression the problem was discovered.
3830 See perlre.
3831 .IP "Maximal count of pending signals (%u) exceeded" 4
3832 .IX Item "Maximal count of pending signals (%u) exceeded"
3833 (F) Perl aborted due to too high a number of signals pending. This
3834 usually indicates that your operating system tried to deliver signals
3835 too fast (with a very high priority), starving the perl process from
3836 resources it would need to reach a point where it can process signals
3837 safely. (See "Deferred Signals (Safe Signals)" in perlipc.)
3838 .IP """%s"" may clash with future reserved word" 4
3839 .IX Item """%s"" may clash with future reserved word"
3840 (W) This warning may be due to running a perl5 script through a perl4
3841 interpreter, especially if the word that is being warned about is
3842 "use" or "my".
3843 .IP "\*(Aq%\*(Aq may not be used in pack" 4
3844 .IX Item "'%' may not be used in pack"
3845 (F) You can\*(Aqt pack a string by supplying a checksum, because the
3846 checksumming process loses information, and you can\*(Aqt go the other way.
3847 See "unpack" in perlfunc.
3848 .ie n .IP "Method for operation %s not found in package %s during blessing" 4
3849 .el .IP "Method for operation \f(CW%s\fR not found in package \f(CW%s\fR during blessing" 4
3850 .IX Item "Method for operation %s not found in package %s during blessing"
3851 (F) An attempt was made to specify an entry in an overloading table that
3852 doesn\*(Aqt resolve to a valid subroutine. See overload.
3853 .IP "method is experimental" 4
3854 .IX Item "method is experimental"
3855 (S experimental::class) This warning is emitted if you use the \f(CW\*(C`method\*(C'\fR
3856 keyword of \f(CW\*(C`use feature \*(Aqclass\*(Aq\*(C'\fR. This keyword is currently
3857 experimental and its behaviour may change in future releases of Perl.
3858 .ie n .IP "Method %s not permitted" 4
3859 .el .IP "Method \f(CW%s\fR not permitted" 4
3860 .IX Item "Method %s not permitted"
3861 See "500 Server error".
3862 .ie n .IP "Method %s redefined" 4
3863 .el .IP "Method \f(CW%s\fR redefined" 4
3864 .IX Item "Method %s redefined"
3865 (W redefine) You redefined a method. To suppress this warning, say
3866 .Sp
3867 .Vb 4
3868 \& {
3869 \& no warnings \*(Aqredefine\*(Aq;
3870 \& *name = method { ... };
3871 \& }
3872 .Ve
3873 .ie n .IP "Might be a runaway multi\-line %s string starting on line %d" 4
3874 .el .IP "Might be a runaway multi\-line \f(CW%s\fR string starting on line \f(CW%d\fR" 4
3875 .IX Item "Might be a runaway multi-line %s string starting on line %d"
3876 (S) An advisory indicating that the previous error may have been caused
3877 by a missing delimiter on a string or pattern, because it eventually
3878 ended earlier on the current line.
3879 .IP "Mismatched brackets in template" 4
3880 .IX Item "Mismatched brackets in template"
3881 (F) A pack template could not be parsed because pairs of \f(CW\*(C`[...]\*(C'\fR or
3882 \&\f(CW\*(C`(...)\*(C'\fR could not be matched up. See "pack" in perlfunc.
3883 .IP "Misplaced _ in number" 4
3884 .IX Item "Misplaced _ in number"
3885 (W syntax) An underscore (underbar) in a numeric constant did not
3886 separate two digits.
3887 .ie n .IP "Missing argument for %n in %s" 4
3888 .el .IP "Missing argument for \f(CW%n\fR in \f(CW%s\fR" 4
3889 .IX Item "Missing argument for %n in %s"
3890 (F) A \f(CW%n\fR was used in a format string with no corresponding argument for
3891 perl to write the current string length to.
3892 .ie n .IP "Missing argument in %s" 4
3893 .el .IP "Missing argument in \f(CW%s\fR" 4
3894 .IX Item "Missing argument in %s"
3895 (W missing) You called a function with fewer arguments than other
3896 arguments you supplied indicated would be needed.
3897 .Sp
3898 Currently only emitted when a printf\-type format required more
3899 arguments than were supplied, but might be used in the future for
3900 other cases where we can statically determine that arguments to
3901 functions are missing, e.g. for the "pack" in perlfunc function.
3902 .IP "Missing argument to \-%c" 4
3903 .IX Item "Missing argument to -%c"
3904 (F) The argument to the indicated command line switch must follow
3905 immediately after the switch, without intervening spaces.
3906 .IP "Missing braces on \eN{}" 4
3907 .IX Item "Missing braces on N{}"
3908 .PD 0
3909 .IP "Missing braces on \eN{} in regex; marked by <\-\-\ HERE in m/%s/" 4
3910 .IX Item "Missing braces on N{} in regex; marked by <-- HERE in m/%s/"
3911 .PD
3912 (F) Wrong syntax of character name literal \f(CW\*(C`\eN{charname}\*(C'\fR within
3913 double\-quotish context. This can also happen when there is a space
3914 (or comment) between the \f(CW\*(C`\eN\*(C'\fR and the \f(CW\*(C`{\*(C'\fR in a regex with the \f(CW\*(C`/x\*(C'\fR modifier.
3915 This modifier does not change the requirement that the brace immediately
3916 follow the \f(CW\*(C`\eN\*(C'\fR.
3917 .IP "Missing braces on \eo{}" 4
3918 .IX Item "Missing braces on o{}"
3919 (F) A \f(CW\*(C`\eo\*(C'\fR must be followed immediately by a \f(CW\*(C`{\*(C'\fR in double\-quotish context.
3920 .ie n .IP "Missing comma after first argument to %s function" 4
3921 .el .IP "Missing comma after first argument to \f(CW%s\fR function" 4
3922 .IX Item "Missing comma after first argument to %s function"
3923 (F) While certain functions allow you to specify a filehandle or an
3924 "indirect object" before the argument list, this ain\*(Aqt one of them.
3925 .IP "Missing comma after first argument to return" 4
3926 .IX Item "Missing comma after first argument to return"
3927 (F) While certain operators allow you to specify a filehandle or an
3928 "indirect object" before the argument list, \f(CW\*(C`return\*(C'\fR isn\*(Aqt one of
3929 them.
3930 .IP "Missing command in piped open" 4
3931 .IX Item "Missing command in piped open"
3932 (W pipe) You used the \f(CW\*(C`open(FH, "| command")\*(C'\fR or
3933 \&\f(CW\*(C`open(FH, "command |")\*(C'\fR construction, but the command was missing or
3934 blank.
3935 .IP "Missing control char name in \ec" 4
3936 .IX Item "Missing control char name in c"
3937 (F) A double\-quoted string ended with "\ec", without the required control
3938 character name.
3939 .ie n .IP "Missing \*(Aq]\*(Aq in prototype for %s : %s" 4
3940 .el .IP "Missing \*(Aq]\*(Aq in prototype for \f(CW%s\fR : \f(CW%s\fR" 4
3941 .IX Item "Missing ']' in prototype for %s : %s"
3942 (W illegalproto) A grouping was started with \f(CW\*(C`[\*(C'\fR but never closed with \f(CW\*(C`]\*(C'\fR.
3943 .IP "Missing name in ""%s sub""" 4
3944 .IX Item "Missing name in ""%s sub"""
3945 (F) The syntax for lexically scoped subroutines requires that
3946 they have a name with which they can be found.
3947 .IP "Missing $ on loop variable" 4
3948 .IX Item "Missing $ on loop variable"
3949 (F) Apparently you\*(Aqve been programming in \fBcsh\fR too much. Variables
3950 are always mentioned with the $ in Perl, unlike in the shells, where it
3951 can vary from one line to the next.
3952 .ie n .IP "(Missing operator before %s?)" 4
3953 .el .IP "(Missing operator before \f(CW%s\fR?)" 4
3954 .IX Item "(Missing operator before %s?)"
3955 (S syntax) This is an educated guess made in conjunction with the message
3956 "%s found where operator expected". Often the missing operator is a comma.
3957 .ie n .IP "Missing or undefined argument to %s" 4
3958 .el .IP "Missing or undefined argument to \f(CW%s\fR" 4
3959 .IX Item "Missing or undefined argument to %s"
3960 (F) You tried to call \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR with no argument or with an
3961 undefined value as an argument. Require expects either a package name or
3962 a file\-specification as an argument; do expects a filename. See
3963 "require EXPR" in perlfunc and "do EXPR" in perlfunc.
3964 .ie n .IP "Missing or undefined argument to %s via %{^HOOK}{require_\|_before}" 4
3965 .el .IP "Missing or undefined argument to \f(CW%s\fR via %{^HOOK}{require_\|_before}" 4
3966 .IX Item "Missing or undefined argument to %s via %{^HOOK}{require__before}"
3967 (F) A \f(CW\*(C`%{^HOOK}{require_\|_before}\*(C'\fR hook rewrote the name of the file being
3968 compiled with \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR with an empty string an undefined value
3969 which is forbidden. See "%{^HOOK}" in perlvar and "require EXPR" in perlfunc.
3970 .IP "Missing right brace on \e%c{} in regex; marked by <\-\-\ HERE in m/%s/" 4
3971 .IX Item "Missing right brace on %c{} in regex; marked by <-- HERE in m/%s/"
3972 (F) Missing right brace in \f(CW\*(C`\ex{...}\*(C'\fR, \f(CW\*(C`\ep{...}\*(C'\fR, \f(CW\*(C`\eP{...}\*(C'\fR, or \f(CW\*(C`\eN{...}\*(C'\fR.
3973 .IP "Missing right brace on \eN{}" 4
3974 .IX Item "Missing right brace on N{}"
3975 .PD 0
3976 .IP "Missing right brace on \eN{} or unescaped left brace after \eN" 4
3977 .IX Item "Missing right brace on N{} or unescaped left brace after N"
3978 .PD
3979 (F) \f(CW\*(C`\eN\*(C'\fR has two meanings.
3980 .Sp
3981 The traditional one has it followed by a name enclosed in braces,
3982 meaning the character (or sequence of characters) given by that
3983 name. Thus \f(CW\*(C`\eN{ASTERISK}\*(C'\fR is another way of writing \f(CW\*(C`*\*(C'\fR, valid in both
3984 double\-quoted strings and regular expression patterns. In patterns,
3985 it doesn\*(Aqt have the meaning an unescaped \f(CW\*(C`*\*(C'\fR does.
3986 .Sp
3987 Starting in Perl 5.12.0, \f(CW\*(C`\eN\*(C'\fR also can have an additional meaning (only)
3988 in patterns, namely to match a non\-newline character. (This is short
3989 for \f(CW\*(C`[^\en]\*(C'\fR, and like \f(CW\*(C`.\*(C'\fR but is not affected by the \f(CW\*(C`/s\*(C'\fR regex modifier.)
3990 .Sp
3991 This can lead to some ambiguities. When \f(CW\*(C`\eN\*(C'\fR is not followed immediately
3992 by a left brace, Perl assumes the \f(CW\*(C`[^\en]\*(C'\fR meaning. Also, if the braces
3993 form a valid quantifier such as \f(CW\*(C`\eN{3}\*(C'\fR or \f(CW\*(C`\eN{5,}\*(C'\fR, Perl assumes that this
3994 means to match the given quantity of non\-newlines (in these examples,
3995 3; and 5 or more, respectively). In all other case, where there is a
3996 \&\f(CW\*(C`\eN{\*(C'\fR and a matching \f(CW\*(C`}\*(C'\fR, Perl assumes that a character name is desired.
3997 .Sp
3998 However, if there is no matching \f(CW\*(C`}\*(C'\fR, Perl doesn\*(Aqt know if it was
3999 mistakenly omitted, or if \f(CW\*(C`[^\en]{\*(C'\fR was desired, and raises this error.
4000 If you meant the former, add the right brace; if you meant the latter,
4001 escape the brace with a backslash, like so: \f(CW\*(C`\eN\e{\*(C'\fR
4002 .IP "Missing right curly or square bracket" 4
4003 .IX Item "Missing right curly or square bracket"
4004 (F) The lexer counted more opening curly or square brackets than closing
4005 ones. As a general rule, you\*(Aqll find it\*(Aqs missing near the place you
4006 were last editing.
4007 .IP "(Missing semicolon on previous line?)" 4
4008 .IX Item "(Missing semicolon on previous line?)"
4009 (S syntax) This is an educated guess made in conjunction with the message
4010 "%s found where operator expected". Don\*(Aqt automatically put a semicolon on
4011 the previous line just because you saw this message.
4012 .IP "Modification of a read\-only value attempted" 4
4013 .IX Item "Modification of a read-only value attempted"
4014 (F) You tried, directly or indirectly, to change the value of a
4015 constant. You didn\*(Aqt, of course, try "2 = 1", because the compiler
4016 catches that. But an easy way to do the same thing is:
4017 .Sp
4018 .Vb 2
4019 \& sub mod { $_[0] = 1 }
4020 \& mod(2);
4021 .Ve
4022 .Sp
4023 Another way is to assign to a \fBsubstr()\fR that\*(Aqs off the end of the string.
4024 .Sp
4025 Yet another way is to assign to a \f(CW\*(C`foreach\*(C'\fR loop \fIVAR\fR when \fIVAR\fR
4026 is aliased to a constant in the look \fILIST\fR:
4027 .Sp
4028 .Vb 4
4029 \& $x = 1;
4030 \& foreach my $n ($x, 2) {
4031 \& $n *= 2; # modifies the $x, but fails on attempt to
4032 \& } # modify the 2
4033 .Ve
4034 .Sp
4035 PerlIO::scalar will also produce this message as a warning if you
4036 attempt to open a read\-only scalar for writing.
4037 .ie n .IP "Modification of non\-creatable array value attempted, %s" 4
4038 .el .IP "Modification of non\-creatable array value attempted, \f(CW%s\fR" 4
4039 .IX Item "Modification of non-creatable array value attempted, %s"
4040 (F) You tried to make an array value spring into existence, and the
4041 subscript was probably negative, even counting from end of the array
4042 backwards.
4043 .ie n .IP "Modification of non\-creatable hash value attempted, %s" 4
4044 .el .IP "Modification of non\-creatable hash value attempted, \f(CW%s\fR" 4
4045 .IX Item "Modification of non-creatable hash value attempted, %s"
4046 (P) You tried to make a hash value spring into existence, and it
4047 couldn\*(Aqt be created for some peculiar reason.
4048 .IP "Module name must be constant" 4
4049 .IX Item "Module name must be constant"
4050 (F) Only a bare module name is allowed as the first argument to a "use".
4051 .IP "Module name required with \-%c option" 4
4052 .IX Item "Module name required with -%c option"
4053 (F) The \f(CW\*(C`\-M\*(C'\fR or \f(CW\*(C`\-m\*(C'\fR options say that Perl should load some module, but
4054 you omitted the name of the module. Consult
4055 perlrun for full details about \f(CW\*(C`\-M\*(C'\fR and \f(CW\*(C`\-m\*(C'\fR.
4056 .IP "More than one argument to \*(Aq%s\*(Aq open" 4
4057 .IX Item "More than one argument to '%s' open"
4058 (F) The \f(CW\*(C`open\*(C'\fR function has been asked to open multiple files. This
4059 can happen if you are trying to open a pipe to a command that takes a
4060 list of arguments, but have forgotten to specify a piped open mode.
4061 See "open" in perlfunc for details.
4062 .ie n .IP "mprotect for COW string %p %u failed with %d" 4
4063 .el .IP "mprotect for COW string \f(CW%p\fR \f(CW%u\fR failed with \f(CW%d\fR" 4
4064 .IX Item "mprotect for COW string %p %u failed with %d"
4065 (S) You compiled perl with \fB\-D\fRPERL_DEBUG_READONLY_COW (see
4066 "Copy on Write" in perlguts), but a shared string buffer
4067 could not be made read\-only.
4068 .ie n .IP "mprotect for %p %u failed with %d" 4
4069 .el .IP "mprotect for \f(CW%p\fR \f(CW%u\fR failed with \f(CW%d\fR" 4
4070 .IX Item "mprotect for %p %u failed with %d"
4071 (S) You compiled perl with \fB\-D\fRPERL_DEBUG_READONLY_OPS (see perlhacktips),
4072 but an op tree could not be made read\-only.
4073 .ie n .IP "mprotect RW for COW string %p %u failed with %d" 4
4074 .el .IP "mprotect RW for COW string \f(CW%p\fR \f(CW%u\fR failed with \f(CW%d\fR" 4
4075 .IX Item "mprotect RW for COW string %p %u failed with %d"
4076 (S) You compiled perl with \fB\-D\fRPERL_DEBUG_READONLY_COW (see
4077 "Copy on Write" in perlguts), but a read\-only shared string
4078 buffer could not be made mutable.
4079 .ie n .IP "mprotect RW for %p %u failed with %d" 4
4080 .el .IP "mprotect RW for \f(CW%p\fR \f(CW%u\fR failed with \f(CW%d\fR" 4
4081 .IX Item "mprotect RW for %p %u failed with %d"
4082 (S) You compiled perl with \fB\-D\fRPERL_DEBUG_READONLY_OPS (see
4083 perlhacktips), but a read\-only op tree could not be made
4084 mutable before freeing the ops.
4085 .IP "msg%s not implemented" 4
4086 .IX Item "msg%s not implemented"
4087 (F) You don\*(Aqt have System V message IPC on your system.
4088 .IP "Multidimensional hash lookup is disabled" 4
4089 .IX Item "Multidimensional hash lookup is disabled"
4090 (F) You supplied a list of subscripts to a hash lookup under
4091 \&\f(CW\*(C`no feature "multidimensional";\*(C'\fR, eg:
4092 .Sp
4093 .Vb 1
4094 \& $z = $foo{$x, $y};
4095 .Ve
4096 .Sp
4097 which by default acts like:
4098 .Sp
4099 .Vb 1
4100 \& $z = $foo{join($;, $x, $y)};
4101 .Ve
4102 .ie n .IP "Multidimensional syntax %s not supported" 4
4103 .el .IP "Multidimensional syntax \f(CW%s\fR not supported" 4
4104 .IX Item "Multidimensional syntax %s not supported"
4105 (W syntax) Multidimensional arrays aren\*(Aqt written like \f(CW$foo[1,2,3]\fR.
4106 They\*(Aqre written like \f(CW\*(C`$foo[1][2][3]\*(C'\fR, as in C.
4107 .IP "Multiple slurpy parameters not allowed" 4
4108 .IX Item "Multiple slurpy parameters not allowed"
4109 (F) In subroutine signatures, a slurpy parameter (\f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR) must be
4110 the last parameter, and there must not be more than one of them; for
4111 example:
4112 .Sp
4113 .Vb 2
4114 \& sub foo ($x, @y) {} # legal
4115 \& sub foo ($x, @y, %) {} # invalid
4116 .Ve
4117 .IP "\*(Aq/\*(Aq must follow a numeric type in unpack" 4
4118 .IX Item "'/' must follow a numeric type in unpack"
4119 (F) You had an unpack template that contained a \*(Aq/\*(Aq, but this did not
4120 follow some unpack specification producing a numeric value.
4121 See "pack" in perlfunc.
4122 .ie n .IP "%s must not be a named sequence in transliteration operator" 4
4123 .el .IP "\f(CW%s\fR must not be a named sequence in transliteration operator" 4
4124 .IX Item "%s must not be a named sequence in transliteration operator"
4125 (F) Transliteration (\f(CW\*(C`tr///\*(C'\fR and \f(CW\*(C`y///\*(C'\fR) transliterates individual
4126 characters. But a named sequence by definition is more than an
4127 individual character, and hence doing this operation on it doesn\*(Aqt make
4128 sense.
4129 .IP """my sub"" not yet implemented" 4
4130 .IX Item """my sub"" not yet implemented"
4131 (F) Lexically scoped subroutines are not yet implemented. Don\*(Aqt try
4132 that yet.
4133 .ie n .IP """my"" subroutine %s can\*(Aqt be in a package" 4
4134 .el .IP """my"" subroutine \f(CW%s\fR can\*(Aqt be in a package" 4
4135 .IX Item """my"" subroutine %s can't be in a package"
4136 (F) Lexically scoped subroutines aren\*(Aqt in a package, so it doesn\*(Aqt make
4137 sense to try to declare one with a package qualifier on the front.
4138 .ie n .IP """my %s"" used in sort comparison" 4
4139 .el .IP """my \f(CW%s\fR"" used in sort comparison" 4
4140 .IX Item """my %s"" used in sort comparison"
4141 (W syntax) The package variables \f(CW$a\fR and \f(CW$b\fR are used for sort comparisons.
4142 You used \f(CW$a\fR or \f(CW$b\fR in as an operand to the \f(CW\*(C`<=>\*(C'\fR or \f(CW\*(C`cmp\*(C'\fR operator inside a
4143 sort comparison block, and the variable had earlier been declared as a
4144 lexical variable. Either qualify the sort variable with the package
4145 name, or rename the lexical variable.
4146 .ie n .IP """my"" variable %s can\*(Aqt be in a package" 4
4147 .el .IP """my"" variable \f(CW%s\fR can\*(Aqt be in a package" 4
4148 .IX Item """my"" variable %s can't be in a package"
4149 (F) Lexically scoped variables aren\*(Aqt in a package, so it doesn\*(Aqt make
4150 sense to try to declare one with a package qualifier on the front. Use
4151 \&\fBlocal()\fR if you want to localize a package variable.
4152 .IP "Name ""%s::%s"" used only once: possible typo" 4
4153 .IX Item "Name ""%s::%s"" used only once: possible typo"
4154 (W once) Typographical errors often show up as unique variable
4155 names. If you had a good reason for having a unique name, then
4156 just mention it again somehow to suppress the message. The \f(CW\*(C`our\*(C'\fR
4157 declaration is also provided for this purpose.
4158 .Sp
4159 NOTE: This warning detects package symbols that have been used
4160 only once. This means lexical variables will never trigger this
4161 warning. It also means that all of the package variables \f(CW$c\fR, \f(CW@c\fR,
4162 \&\f(CW%c\fR, as well as *c, &c, sub c{}, c(), and c (the filehandle or
4163 format) are considered the same; if a program uses \f(CW$c\fR only once
4164 but also uses any of the others it will not trigger this warning.
4165 Symbols beginning with an underscore and symbols using special
4166 identifiers (q.v. perldata) are exempt from this warning.
4167 .IP "Need exactly 3 octal digits in regex; marked by <\-\-\ HERE in m/%s/" 4
4168 .IX Item "Need exactly 3 octal digits in regex; marked by <-- HERE in m/%s/"
4169 (F) Within \f(CW\*(C`(?[\ \ \ ])\*(C'\fR, all constants interpreted as octal need to be
4170 exactly 3 digits long. This helps catch some ambiguities. If your
4171 constant is too short, add leading zeros, like
4172 .Sp
4173 .Vb 3
4174 \& (?[ [ \e078 ] ]) # Syntax error!
4175 \& (?[ [ \e0078 ] ]) # Works
4176 \& (?[ [ \e007 8 ] ]) # Clearer
4177 .Ve
4178 .Sp
4179 The maximum number this construct can express is \f(CW\*(C`\e777\*(C'\fR. If you
4180 need a larger one, you need to use \eo{} instead. If you meant
4181 two separate things, you need to separate them:
4182 .Sp
4183 .Vb 4
4184 \& (?[ [ \e7776 ] ]) # Syntax error!
4185 \& (?[ [ \eo{7776} ] ]) # One meaning
4186 \& (?[ [ \e777 6 ] ]) # Another meaning
4187 \& (?[ [ \e777 \e006 ] ]) # Still another
4188 .Ve
4189 .IP "Negative \*(Aq/\*(Aq count in unpack" 4
4190 .IX Item "Negative '/' count in unpack"
4191 (F) The length count obtained from a length/code unpack operation was
4192 negative. See "pack" in perlfunc.
4193 .IP "Negative length" 4
4194 .IX Item "Negative length"
4195 (F) You tried to do a read/write/send/recv operation with a buffer
4196 length that is less than 0. This is difficult to imagine.
4197 .IP "Negative offset to vec in lvalue context" 4
4198 .IX Item "Negative offset to vec in lvalue context"
4199 (F) When \f(CW\*(C`vec\*(C'\fR is called in an lvalue context, the second argument must be
4200 greater than or equal to zero.
4201 .IP "Negative repeat count does nothing" 4
4202 .IX Item "Negative repeat count does nothing"
4203 (W numeric) You tried to execute the
4204 \&\f(CW\*(C`x\*(C'\fR repetition operator fewer than 0
4205 times, which doesn\*(Aqt make sense.
4206 .IP "Nested quantifiers in regex; marked by <\-\-\ HERE in m/%s/" 4
4207 .IX Item "Nested quantifiers in regex; marked by <-- HERE in m/%s/"
4208 (F) You can\*(Aqt quantify a quantifier without intervening parentheses.
4209 So things like ** or +* or ?* are illegal. The <\-\-\ HERE shows
4210 whereabouts in the regular expression the problem was discovered.
4211 .Sp
4212 Note that the minimal matching quantifiers, \f(CW\*(C`*?\*(C'\fR, \f(CW\*(C`+?\*(C'\fR, and
4213 \&\f(CW\*(C`??\*(C'\fR appear to be nested quantifiers, but aren\*(Aqt. See perlre.
4214 .ie n .IP "%s never introduced" 4
4215 .el .IP "\f(CW%s\fR never introduced" 4
4216 .IX Item "%s never introduced"
4217 (S internal) The symbol in question was declared but somehow went out of
4218 scope before it could possibly have been used.
4219 .IP "next::method/next::can/maybe::next::method cannot find enclosing method" 4
4220 .IX Item "next::method/next::can/maybe::next::method cannot find enclosing method"
4221 (F) \f(CW\*(C`next::method\*(C'\fR needs to be called within the context of a
4222 real method in a real package, and it could not find such a context.
4223 See mro.
4224 .IP "\eN in a character class must be a named character: \eN{...} in regex; marked by <\-\-\ HERE in m/%s/" 4
4225 .IX Item "N in a character class must be a named character: N{...} in regex; marked by <-- HERE in m/%s/"
4226 (F) The new (as of Perl 5.12) meaning of \f(CW\*(C`\eN\*(C'\fR as \f(CW\*(C`[^\en]\*(C'\fR is not valid in a
4227 bracketed character class, for the same reason that \f(CW\*(C`.\*(C'\fR in a character
4228 class loses its specialness: it matches almost everything, which is
4229 probably not what you want.
4230 .IP "\eN{} here is restricted to one character in regex; marked by <\-\- HERE in m/%s/" 4
4231 .IX Item "N{} here is restricted to one character in regex; marked by <-- HERE in m/%s/"
4232 (F) Named Unicode character escapes (\f(CW\*(C`\eN{...}\*(C'\fR) may return a
4233 multi\-character sequence. Even though a character class is
4234 supposed to match just one character of input, perl will match the
4235 whole thing correctly, except under certain conditions. These currently
4236 are
4237 .RS 4
4238 .ie n .IP "When the class is inverted (""[^...]"")" 4
4239 .el .IP "When the class is inverted (\f(CW[^...]\fR)" 4
4240 .IX Item "When the class is inverted ([^...])"
4241 The mathematically logical behavior for what matches when inverting
4242 is very different from what people expect, so we have decided to
4243 forbid it.
4244 .IP "The escape is the beginning or final end point of a range" 4
4245 .IX Item "The escape is the beginning or final end point of a range"
4246 Similarly unclear is what should be generated when the
4247 \&\f(CW\*(C`\eN{...}\*(C'\fR is used as one of the end points of the range, such as in
4248 .Sp
4249 .Vb 1
4250 \& [\ex{41}\-\eN{ARABIC SEQUENCE YEH WITH HAMZA ABOVE WITH AE}]
4251 .Ve
4252 .Sp
4253 What is meant here is unclear, as the \f(CW\*(C`\eN{...}\*(C'\fR escape is a sequence
4254 of code points, so this is made an error.
4255 .IP "In a regex set" 4
4256 .IX Item "In a regex set"
4257 The syntax \f(CW\*(C`(?[\ \ \ ])\*(C'\fR in a regular expression yields a list of
4258 single code points, none can be a sequence.
4259 .RE
4260 .RS 4
4261 .RE
4262 .ie n .IP "No %s allowed while running setuid" 4
4263 .el .IP "No \f(CW%s\fR allowed while running setuid" 4
4264 .IX Item "No %s allowed while running setuid"
4265 (F) Certain operations are deemed to be too insecure for a setuid or
4266 setgid script to even be allowed to attempt. Generally speaking there
4267 will be another way to do what you want that is, if not secure, at least
4268 securable. See perlsec.
4269 .IP "No code specified for \-%c" 4
4270 .IX Item "No code specified for -%c"
4271 (F) Perl\*(Aqs \fB\-e\fR and \fB\-E\fR command\-line options require an argument. If
4272 you want to run an empty program, pass the empty string as a separate
4273 argument or run a program consisting of a single 0 or 1:
4274 .Sp
4275 .Vb 3
4276 \& perl \-e ""
4277 \& perl \-e0
4278 \& perl \-e1
4279 .Ve
4280 .ie n .IP "No comma allowed after %s" 4
4281 .el .IP "No comma allowed after \f(CW%s\fR" 4
4282 .IX Item "No comma allowed after %s"
4283 (F) A list operator that has a filehandle or "indirect object" is
4284 not allowed to have a comma between that and the following arguments.
4285 Otherwise it\*(Aqd be just another one of the arguments.
4286 .Sp
4287 One possible cause for this is that you expected to have imported
4288 a constant to your name space with \fBuse\fR or \fBimport\fR while no such
4289 importing took place, it may for example be that your operating
4290 system does not support that particular constant. Hopefully you did
4291 use an explicit import list for the constants you expect to see;
4292 please see "use" in perlfunc and "import" in perlfunc. While an
4293 explicit import list would probably have caught this error earlier
4294 it naturally does not remedy the fact that your operating system
4295 still does not support that constant. Maybe you have a typo in
4296 the constants of the symbol import list of \fBuse\fR or \fBimport\fR or in the
4297 constant name at the line where this error was triggered?
4298 .IP "No command into which to pipe on command line" 4
4299 .IX Item "No command into which to pipe on command line"
4300 (F) An error peculiar to VMS. Perl handles its own command line
4301 redirection, and found a \*(Aq|\*(Aq at the end of the command line, so it
4302 doesn\*(Aqt know where you want to pipe the output from this command.
4303 .IP "No DB::DB routine defined" 4
4304 .IX Item "No DB::DB routine defined"
4305 (F) The currently executing code was compiled with the \fB\-d\fR switch, but
4306 for some reason the current debugger (e.g. \fIperl5db.pl\fR or a \f(CW\*(C`Devel::\*(C'\fR
4307 module) didn\*(Aqt define a routine to be called at the beginning of each
4308 statement.
4309 .IP "No dbm on this machine" 4
4310 .IX Item "No dbm on this machine"
4311 (P) This is counted as an internal error, because every machine should
4312 supply dbm nowadays, because Perl comes with SDBM. See SDBM_File.
4313 .IP "No DB::sub routine defined" 4
4314 .IX Item "No DB::sub routine defined"
4315 (F) The currently executing code was compiled with the \fB\-d\fR switch, but
4316 for some reason the current debugger (e.g. \fIperl5db.pl\fR or a \f(CW\*(C`Devel::\*(C'\fR
4317 module) didn\*(Aqt define a \f(CW\*(C`DB::sub\*(C'\fR routine to be called at the beginning
4318 of each ordinary subroutine call.
4319 .ie n .IP "No digits found for %s literal" 4
4320 .el .IP "No digits found for \f(CW%s\fR literal" 4
4321 .IX Item "No digits found for %s literal"
4322 (F) No hexadecimal digits were found following \f(CW\*(C`0x\*(C'\fR or no binary digits
4323 were found following \f(CW\*(C`0b\*(C'\fR.
4324 .IP "No directory specified for \-I" 4
4325 .IX Item "No directory specified for -I"
4326 (F) The \fB\-I\fR command\-line switch requires a directory name as part of the
4327 \&\fIsame\fR argument. Use \fB\-Ilib\fR, for instance. \fB\-I lib\fR won\*(Aqt work.
4328 .IP "No error file after 2> or 2>> on command line" 4
4329 .IX Item "No error file after 2> or 2>> on command line"
4330 (F) An error peculiar to VMS. Perl handles its own command line
4331 redirection, and found a \*(Aq2>\*(Aq or a \*(Aq2>>\*(Aq on the command line, but can\*(Aqt
4332 find the name of the file to which to write data destined for stderr.
4333 .IP "No group ending character \*(Aq%c\*(Aq found in template" 4
4334 .IX Item "No group ending character '%c' found in template"
4335 (F) A pack or unpack template has an opening \*(Aq(\*(Aq or \*(Aq[\*(Aq without its
4336 matching counterpart. See "pack" in perlfunc.
4337 .IP "No input file after < on command line" 4
4338 .IX Item "No input file after < on command line"
4339 (F) An error peculiar to VMS. Perl handles its own command line
4340 redirection, and found a \*(Aq<\*(Aq on the command line, but can\*(Aqt find the
4341 name of the file from which to read data for stdin.
4342 .ie n .IP "No next::method \*(Aq%s\*(Aq found for %s" 4
4343 .el .IP "No next::method \*(Aq%s\*(Aq found for \f(CW%s\fR" 4
4344 .IX Item "No next::method '%s' found for %s"
4345 (F) \f(CW\*(C`next::method\*(C'\fR found no further instances of this method name
4346 in the remaining packages of the MRO of this class. If you don\*(Aqt want
4347 it throwing an exception, use \f(CW\*(C`maybe::next::method\*(C'\fR
4348 or \f(CW\*(C`next::can\*(C'\fR. See mro.
4349 .IP "Non\-finite repeat count does nothing" 4
4350 .IX Item "Non-finite repeat count does nothing"
4351 (W numeric) You tried to execute the
4352 \&\f(CW\*(C`x\*(C'\fR repetition operator \f(CW\*(C`Inf\*(C'\fR (or
4353 \&\f(CW\*(C`\-Inf\*(C'\fR) or \f(CW\*(C`NaN\*(C'\fR times, which doesn\*(Aqt make sense.
4354 .IP "Non\-hex character in regex; marked by <\-\-\ HERE in m/%s/" 4
4355 .IX Item "Non-hex character in regex; marked by <-- HERE in m/%s/"
4356 (F) In a regular expression, there was a non\-hexadecimal character where
4357 a hex one was expected, like
4358 .Sp
4359 .Vb 2
4360 \& (?[ [ \exDG ] ])
4361 \& (?[ [ \ex{DEKA} ] ])
4362 .Ve
4363 .IP "Non\-hex character \*(Aq%c\*(Aq terminates \ex early. Resolved as ""%s""" 4
4364 .IX Item "Non-hex character '%c' terminates x early. Resolved as ""%s"""
4365 (W digit) In parsing a hexadecimal numeric constant, a character was
4366 unexpectedly encountered that isn\*(Aqt hexadecimal. The resulting value
4367 is as indicated.
4368 .Sp
4369 Note that, within braces, every character starting with the first
4370 non\-hexadecimal up to the ending brace is ignored.
4371 .IP "Non\-octal character in regex; marked by <\-\-\ HERE in m/%s/" 4
4372 .IX Item "Non-octal character in regex; marked by <-- HERE in m/%s/"
4373 (F) In a regular expression, there was a non\-octal character where
4374 an octal one was expected, like
4375 .Sp
4376 .Vb 1
4377 \& (?[ [ \eo{1278} ] ])
4378 .Ve
4379 .IP "Non\-octal character \*(Aq%c\*(Aq terminates \eo early. Resolved as ""%s""" 4
4380 .IX Item "Non-octal character '%c' terminates o early. Resolved as ""%s"""
4381 (W digit) In parsing an octal numeric constant, a character was
4382 unexpectedly encountered that isn\*(Aqt octal. The resulting value
4383 is as indicated.
4384 .Sp
4385 When not using \f(CW\*(C`\eo{...}\*(C'\fR, you wrote something like \f(CW\*(C`\e08\*(C'\fR, or \f(CW\*(C`\e179\*(C'\fR
4386 in a double\-quotish string. The resolution is as indicated, with all
4387 but the last digit treated as a single character, specified in octal.
4388 The last digit is the next character in the string. To tell Perl that
4389 this is indeed what you want, you can use the \f(CW\*(C`\eo{ }\*(C'\fR syntax, or use
4390 exactly three digits to specify the octal for the character.
4391 .Sp
4392 Note that, within braces, every character starting with the first
4393 non\-octal up to the ending brace is ignored.
4394 .IP """no"" not allowed in expression" 4
4395 .IX Item """no"" not allowed in expression"
4396 (F) The "no" keyword is recognized and executed at compile time, and
4397 returns no useful value. See perlmod.
4398 .IP "Non\-string passed as bitmask" 4
4399 .IX Item "Non-string passed as bitmask"
4400 (W misc) A number has been passed as a bitmask argument to \fBselect()\fR.
4401 Use the \fBvec()\fR function to construct the file descriptor bitmasks for
4402 select. See "select" in perlfunc.
4403 .IP "No output file after > on command line" 4
4404 .IX Item "No output file after > on command line"
4405 (F) An error peculiar to VMS. Perl handles its own command line
4406 redirection, and found a lone \*(Aq>\*(Aq at the end of the command line, so it
4407 doesn\*(Aqt know where you wanted to redirect stdout.
4408 .IP "No output file after > or >> on command line" 4
4409 .IX Item "No output file after > or >> on command line"
4410 (F) An error peculiar to VMS. Perl handles its own command line
4411 redirection, and found a \*(Aq>\*(Aq or a \*(Aq>>\*(Aq on the command line, but can\*(Aqt
4412 find the name of the file to which to write data destined for stdout.
4413 .ie n .IP "No package name allowed for subroutine %s in ""our""" 4
4414 .el .IP "No package name allowed for subroutine \f(CW%s\fR in ""our""" 4
4415 .IX Item "No package name allowed for subroutine %s in ""our"""
4416 .PD 0
4417 .ie n .IP "No package name allowed for variable %s in ""our""" 4
4418 .el .IP "No package name allowed for variable \f(CW%s\fR in ""our""" 4
4419 .IX Item "No package name allowed for variable %s in ""our"""
4420 .PD
4421 (F) Fully qualified subroutine and variable names are not allowed in "our"
4422 declarations, because that doesn\*(Aqt make much sense under existing rules.
4423 Such syntax is reserved for future extensions.
4424 .IP "No Perl script found in input" 4
4425 .IX Item "No Perl script found in input"
4426 (F) You called \f(CW\*(C`perl \-x\*(C'\fR, but no line was found in the file beginning
4427 with #! and containing the word "perl".
4428 .IP "No setregid available" 4
4429 .IX Item "No setregid available"
4430 (F) Configure didn\*(Aqt find anything resembling the \fBsetregid()\fR call for
4431 your system.
4432 .IP "No setreuid available" 4
4433 .IX Item "No setreuid available"
4434 (F) Configure didn\*(Aqt find anything resembling the \fBsetreuid()\fR call for
4435 your system.
4436 .ie n .IP "No such class %s" 4
4437 .el .IP "No such class \f(CW%s\fR" 4
4438 .IX Item "No such class %s"
4439 (F) You provided a class qualifier in a "my", "our" or "state"
4440 declaration, but this class doesn\*(Aqt exist at this point in your program.
4441 .ie n .IP "No such class field ""%s"" in variable %s of type %s" 4
4442 .el .IP "No such class field ""%s"" in variable \f(CW%s\fR of type \f(CW%s\fR" 4
4443 .IX Item "No such class field ""%s"" in variable %s of type %s"
4444 (F) You tried to access a key from a hash through the indicated typed
4445 variable but that key is not allowed by the package of the same type.
4446 The indicated package has restricted the set of allowed keys using the
4447 fields pragma.
4448 .ie n .IP "No such hook: %s" 4
4449 .el .IP "No such hook: \f(CW%s\fR" 4
4450 .IX Item "No such hook: %s"
4451 (F) You specified a signal hook that was not recognized by Perl.
4452 Currently, Perl accepts \f(CW\*(C`_\|_DIE_\|_\*(C'\fR and \f(CW\*(C`_\|_WARN_\|_\*(C'\fR as valid signal hooks.
4453 .IP "No such pipe open" 4
4454 .IX Item "No such pipe open"
4455 (P) An error peculiar to VMS. The internal routine \fBmy_pclose()\fR tried to
4456 close a pipe which hadn\*(Aqt been opened. This should have been caught
4457 earlier as an attempt to close an unopened filehandle.
4458 .IP "No such signal: SIG%s" 4
4459 .IX Item "No such signal: SIG%s"
4460 (W signal) You specified a signal name as a subscript to \f(CW%SIG\fR that was
4461 not recognized. Say \f(CW\*(C`kill \-l\*(C'\fR in your shell to see the valid signal
4462 names on your system.
4463 .IP "No Unicode property value wildcard matches:" 4
4464 .IX Item "No Unicode property value wildcard matches:"
4465 (W regexp) You specified a wildcard for a Unicode property value, but
4466 there is no property value in the current Unicode release that matches
4467 it. Check your spelling.
4468 .IP "Not a CODE reference" 4
4469 .IX Item "Not a CODE reference"
4470 (F) Perl was trying to evaluate a reference to a code value (that is, a
4471 subroutine), but found a reference to something else instead. You can
4472 use the \fBref()\fR function to find out what kind of ref it really was. See
4473 also perlref.
4474 .IP "Not a GLOB reference" 4
4475 .IX Item "Not a GLOB reference"
4476 (F) Perl was trying to evaluate a reference to a "typeglob" (that is, a
4477 symbol table entry that looks like \f(CW*foo\fR), but found a reference to
4478 something else instead. You can use the \fBref()\fR function to find out what
4479 kind of ref it really was. See perlref.
4480 .IP "Not a HASH reference" 4
4481 .IX Item "Not a HASH reference"
4482 (F) Perl was trying to evaluate a reference to a hash value, but found a
4483 reference to something else instead. You can use the \fBref()\fR function to
4484 find out what kind of ref it really was. See perlref.
4485 .IP "\*(Aq#\*(Aq not allowed immediately following a sigil in a subroutine signature" 4
4486 .IX Item "'#' not allowed immediately following a sigil in a subroutine signature"
4487 (F) In a subroutine signature definition, a comment following a sigil
4488 (\f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR or \f(CW\*(C`%\*(C'\fR), needs to be separated by whitespace or a comma etc., in
4489 particular to avoid confusion with the \f(CW$#\fR variable. For example:
4490 .Sp
4491 .Vb 6
4492 \& # bad
4493 \& sub f ($# ignore first arg
4494 \& , $y) {}
4495 \& # good
4496 \& sub f ($, # ignore first arg
4497 \& $y) {}
4498 .Ve
4499 .IP "Not an ARRAY reference" 4
4500 .IX Item "Not an ARRAY reference"
4501 (F) Perl was trying to evaluate a reference to an array value, but found
4502 a reference to something else instead. You can use the \fBref()\fR function
4503 to find out what kind of ref it really was. See perlref.
4504 .IP "Not a SCALAR reference" 4
4505 .IX Item "Not a SCALAR reference"
4506 (F) Perl was trying to evaluate a reference to a scalar value, but found
4507 a reference to something else instead. You can use the \fBref()\fR function
4508 to find out what kind of ref it really was. See perlref.
4509 .IP "Not a subroutine reference" 4
4510 .IX Item "Not a subroutine reference"
4511 (F) Perl was trying to evaluate a reference to a code value (that is, a
4512 subroutine), but found a reference to something else instead. You can
4513 use the \fBref()\fR function to find out what kind of ref it really was. See
4514 also perlref.
4515 .IP "Not a subroutine reference in overload table" 4
4516 .IX Item "Not a subroutine reference in overload table"
4517 (F) An attempt was made to specify an entry in an overloading table that
4518 doesn\*(Aqt somehow point to a valid subroutine. See overload.
4519 .ie n .IP "Not enough arguments for %s" 4
4520 .el .IP "Not enough arguments for \f(CW%s\fR" 4
4521 .IX Item "Not enough arguments for %s"
4522 (F) The function requires more arguments than you specified.
4523 .IP "Not enough format arguments" 4
4524 .IX Item "Not enough format arguments"
4525 (W syntax) A format specified more picture fields than the next line
4526 supplied. See perlform.
4527 .ie n .IP "%s: not found" 4
4528 .el .IP "\f(CW%s:\fR not found" 4
4529 .IX Item "%s: not found"
4530 (A) You\*(Aqve accidentally run your script through the Bourne shell instead
4531 of Perl. Check the #! line, or manually feed your script into Perl
4532 yourself.
4533 .IP "no UTC offset information; assuming local time is UTC" 4
4534 .IX Item "no UTC offset information; assuming local time is UTC"
4535 (S) A warning peculiar to VMS. Perl was unable to find the local
4536 timezone offset, so it\*(Aqs assuming that local system time is equivalent
4537 to UTC. If it\*(Aqs not, define the logical name
4538 \&\fISYS$TIMEZONE_DIFFERENTIAL\fR to translate to the number of seconds which
4539 need to be added to UTC to get local time.
4540 .IP "NULL OP IN RUN" 4
4541 .IX Item "NULL OP IN RUN"
4542 (S debugging) Some internal routine called \fBrun()\fR with a null opcode
4543 pointer.
4544 .IP "Null picture in formline" 4
4545 .IX Item "Null picture in formline"
4546 (F) The first argument to formline must be a valid format picture
4547 specification. It was found to be empty, which probably means you
4548 supplied it an uninitialized value. See perlform.
4549 .IP "NULL regexp parameter" 4
4550 .IX Item "NULL regexp parameter"
4551 (P) The internal pattern matching routines are out of their gourd.
4552 .IP "Number too long" 4
4553 .IX Item "Number too long"
4554 (F) Perl limits the representation of decimal numbers in programs to
4555 about 250 characters. You\*(Aqve exceeded that length. Future
4556 versions of Perl are likely to eliminate this arbitrary limitation. In
4557 the meantime, try using scientific notation (e.g. "1e6" instead of
4558 "1_000_000").
4559 .IP "Number with no digits" 4
4560 .IX Item "Number with no digits"
4561 (F) Perl was looking for a number but found nothing that looked like
4562 a number. This happens, for example with \f(CW\*(C`\eo{}\*(C'\fR, with no number between
4563 the braces.
4564 .IP "Numeric format result too large" 4
4565 .IX Item "Numeric format result too large"
4566 (F) The length of the result of a numeric format supplied to \fBsprintf()\fR
4567 or \fBprintf()\fR would have been too large for the underlying C function to
4568 report. This limit is typically 2GB.
4569 .IP "Numeric variables with more than one digit may not start with \*(Aq0\*(Aq" 4
4570 .IX Item "Numeric variables with more than one digit may not start with '0'"
4571 (F) The only numeric variable which is allowed to start with a 0 is \f(CW$0\fR,
4572 and you mentioned a variable that starts with 0 that has more than one
4573 digit. You probably want to remove the leading 0, or if the intent was
4574 to express a variable name in octal you should convert to decimal.
4575 .IP "Octal number > 037777777777 non\-portable" 4
4576 .IX Item "Octal number > 037777777777 non-portable"
4577 (W portable) The octal number you specified is larger than 2**32\-1
4578 (4294967295) and therefore non\-portable between systems. See
4579 perlport for more on portability concerns.
4580 .IP "Odd name/value argument for subroutine \*(Aq%s\*(Aq" 4
4581 .IX Item "Odd name/value argument for subroutine '%s'"
4582 (F) A subroutine using a slurpy hash parameter in its signature
4583 received an odd number of arguments to populate the hash. It requires
4584 the arguments to be paired, with the same number of keys as values.
4585 The caller of the subroutine is presumably at fault.
4586 .Sp
4587 The message attempts to include the name of the called subroutine. If the
4588 subroutine has been aliased, the subroutine\*(Aqs original name will be shown,
4589 regardless of what name the caller used.
4590 .IP "Odd number of arguments for overload::constant" 4
4591 .IX Item "Odd number of arguments for overload::constant"
4592 (W overload) The call to overload::constant contained an odd number of
4593 arguments. The arguments should come in pairs.
4594 .IP "Odd number of arguments passed to ""%s"" constructor" 4
4595 .IX Item "Odd number of arguments passed to ""%s"" constructor"
4596 (S) The constructor for the given class was called with an odd
4597 number of arguments.
4598 .Sp
4599 Class constructors accept named arguments as a list and expect pairs
4600 of name followed by value as if you were initialising a hash.
4601 .IP "Odd number of elements in anonymous hash" 4
4602 .IX Item "Odd number of elements in anonymous hash"
4603 (W misc) You specified an odd number of elements to initialize a hash,
4604 which is odd, because hashes come in key/value pairs.
4605 .IP "Odd number of elements in export_lexically" 4
4606 .IX Item "Odd number of elements in export_lexically"
4607 (F) A call to "export_lexically" in builtin contained an odd number of
4608 arguments. This is not permitted, because each name must be paired with a
4609 valid reference value.
4610 .IP "Odd number of elements in hash assignment" 4
4611 .IX Item "Odd number of elements in hash assignment"
4612 (W misc) You specified an odd number of elements to initialize a hash,
4613 which is odd, because hashes come in key/value pairs.
4614 .IP "Odd number of elements in hash field initialization" 4
4615 .IX Item "Odd number of elements in hash field initialization"
4616 (W misc) You specified an odd number of elements to initialise a hash
4617 field of an object. Hashes are initialised from a list of key/value
4618 pairs so there must be a corresponding value to every key. The final
4619 missing value will be filled in with undef instead.
4620 .IP "Offset outside string" 4
4621 .IX Item "Offset outside string"
4622 (W layer) You tried to do a read/write/send/recv/seek operation
4623 with an offset pointing outside the buffer. This is difficult to
4624 imagine. The sole exceptions to this are that zero padding will
4625 take place when going past the end of the string when either
4626 \&\f(CWsysread()\fRing a file, or when seeking past the end of a scalar opened
4627 for I/O (in anticipation of future reads and to imitate the behavior
4628 with real files).
4629 .IP "Only scalar fields can take a :param attribute" 4
4630 .IX Item "Only scalar fields can take a :param attribute"
4631 (F) You tried to apply the \f(CW\*(C`:param\*(C'\fR attribute to an array or hash field.
4632 Currently this is not permitted.
4633 .ie n .IP "%s() on unopened %s" 4
4634 .el .IP "%s() on unopened \f(CW%s\fR" 4
4635 .IX Item "%s() on unopened %s"
4636 (W unopened) An I/O operation was attempted on a filehandle that was
4637 never initialized. You need to do an \fBopen()\fR, a \fBsysopen()\fR, or a \fBsocket()\fR
4638 call, or call a constructor from the FileHandle package.
4639 .ie n .IP "\-%s on unopened filehandle %s" 4
4640 .el .IP "\-%s on unopened filehandle \f(CW%s\fR" 4
4641 .IX Item "-%s on unopened filehandle %s"
4642 (W unopened) You tried to invoke a file test operator on a filehandle
4643 that isn\*(Aqt open. Check your control flow. See also "\-X" in perlfunc.
4644 .IP "oops: oopsAV" 4
4645 .IX Item "oops: oopsAV"
4646 (S internal) An internal warning that the grammar is screwed up.
4647 .IP "oops: oopsHV" 4
4648 .IX Item "oops: oopsHV"
4649 (S internal) An internal warning that the grammar is screwed up.
4650 .IP "Operand with no preceding operator in regex; marked by <\-\-\ HERE in m/%s/" 4
4651 .IX Item "Operand with no preceding operator in regex; marked by <-- HERE in m/%s/"
4652 (F) You wrote something like
4653 .Sp
4654 .Vb 1
4655 \& (?[ \ep{Digit} \ep{Thai} ])
4656 .Ve
4657 .Sp
4658 There are two operands, but no operator giving how you want to combine
4659 them.
4660 .ie n .IP "Operation ""%s"": no method found, %s" 4
4661 .el .IP "Operation ""%s"": no method found, \f(CW%s\fR" 4
4662 .IX Item "Operation ""%s"": no method found, %s"
4663 (F) An attempt was made to perform an overloaded operation for which no
4664 handler was defined. While some handlers can be autogenerated in terms
4665 of other handlers, there is no default handler for any operation, unless
4666 the \f(CW\*(C`fallback\*(C'\fR overloading key is specified to be true. See overload.
4667 .IP "Operation ""%s"" returns its argument for non\-Unicode code point 0x%X" 4
4668 .IX Item "Operation ""%s"" returns its argument for non-Unicode code point 0x%X"
4669 (S non_unicode) You performed an operation requiring Unicode rules
4670 on a code point that is not in Unicode, so what it should do is not
4671 defined. Perl has chosen to have it do nothing, and warn you.
4672 .Sp
4673 If the operation shown is "ToFold", it means that case\-insensitive
4674 matching in a regular expression was done on the code point.
4675 .Sp
4676 If you know what you are doing you can turn off this warning by
4677 \&\f(CW\*(C`no warnings \*(Aqnon_unicode\*(Aq;\*(C'\fR.
4678 .IP "Operation ""%s"" returns its argument for UTF\-16 surrogate U+%X" 4
4679 .IX Item "Operation ""%s"" returns its argument for UTF-16 surrogate U+%X"
4680 (S surrogate) You performed an operation requiring Unicode
4681 rules on a Unicode surrogate. Unicode frowns upon the use
4682 of surrogates for anything but storing strings in UTF\-16, but
4683 rules are (reluctantly) defined for the surrogates, and
4684 they are to do nothing for this operation. Because the use of
4685 surrogates can be dangerous, Perl warns.
4686 .Sp
4687 If the operation shown is "ToFold", it means that case\-insensitive
4688 matching in a regular expression was done on the code point.
4689 .Sp
4690 If you know what you are doing you can turn off this warning by
4691 \&\f(CW\*(C`no warnings \*(Aqsurrogate\*(Aq;\*(C'\fR.
4692 .ie n .IP "Operator or semicolon missing before %s" 4
4693 .el .IP "Operator or semicolon missing before \f(CW%s\fR" 4
4694 .IX Item "Operator or semicolon missing before %s"
4695 (S ambiguous) You used a variable or subroutine call where the parser
4696 was expecting an operator. The parser has assumed you really meant to
4697 use an operator, but this is highly likely to be incorrect. For
4698 example, if you say "*foo *foo" it will be interpreted as if you said
4699 "*foo * \*(Aqfoo\*(Aq".
4700 .IP "Optional parameter lacks default expression" 4
4701 .IX Item "Optional parameter lacks default expression"
4702 (F) In a subroutine signature, you wrote something like "$x =", making a
4703 named optional parameter without a default value. A nameless optional
4704 parameter is permitted to have no default value, but a named one must
4705 have a specific default. You probably want "$x = undef".
4706 .ie n .IP """our"" variable %s redeclared" 4
4707 .el .IP """our"" variable \f(CW%s\fR redeclared" 4
4708 .IX Item """our"" variable %s redeclared"
4709 (W shadow) You seem to have already declared the same global once before
4710 in the current lexical scope.
4711 .IP "Out of memory!" 4
4712 .IX Item "Out of memory!"
4713 (X) The \fBmalloc()\fR function returned 0, indicating there was insufficient
4714 remaining memory (or virtual memory) to satisfy the request. Perl has
4715 no option but to exit immediately.
4716 .Sp
4717 At least in Unix you may be able to get past this by increasing your
4718 process datasize limits: in csh/tcsh use \f(CW\*(C`limit\*(C'\fR and
4719 \&\f(CW\*(C`limit datasize n\*(C'\fR (where \f(CW\*(C`n\*(C'\fR is the number of kilobytes) to check
4720 the current limits and change them, and in ksh/bash/zsh use \f(CW\*(C`ulimit \-a\*(C'\fR
4721 and \f(CW\*(C`ulimit \-d n\*(C'\fR, respectively.
4722 .ie n .IP "Out of memory during %s extend" 4
4723 .el .IP "Out of memory during \f(CW%s\fR extend" 4
4724 .IX Item "Out of memory during %s extend"
4725 (X) An attempt was made to extend an array, a list, or a string beyond
4726 the largest possible memory allocation.
4727 .ie n .IP "Out of memory during ""large"" request for %s" 4
4728 .el .IP "Out of memory during ""large"" request for \f(CW%s\fR" 4
4729 .IX Item "Out of memory during ""large"" request for %s"
4730 (F) The \fBmalloc()\fR function returned 0, indicating there was insufficient
4731 remaining memory (or virtual memory) to satisfy the request. However,
4732 the request was judged large enough (compile\-time default is 64K), so a
4733 possibility to shut down by trapping this error is granted.
4734 .IP "Out of memory during \fBpack()\fR" 4
4735 .IX Item "Out of memory during pack()"
4736 (F) An attempt was made to extend a string beyond the largest possible memory
4737 allocation.
4738 .ie n .IP "Out of memory during request for %s" 4
4739 .el .IP "Out of memory during request for \f(CW%s\fR" 4
4740 .IX Item "Out of memory during request for %s"
4741 (X)(F) The \fBmalloc()\fR function returned 0, indicating there was
4742 insufficient remaining memory (or virtual memory) to satisfy the
4743 request.
4744 .Sp
4745 The request was judged to be small, so the possibility to trap it
4746 depends on the way perl was compiled. By default it is not trappable.
4747 However, if compiled for this, Perl may use the contents of \f(CW$^M\fR as an
4748 emergency pool after \fBdie()\fRing with this message. In this case the error
4749 is trappable \fIonce\fR, and the error message will include the line and file
4750 where the failed request happened.
4751 .IP "Out of memory during ridiculously large request" 4
4752 .IX Item "Out of memory during ridiculously large request"
4753 (F) You can\*(Aqt allocate more than 2^31+"small amount" bytes. This error
4754 is most likely to be caused by a typo in the Perl program. e.g.,
4755 \&\f(CW$arr[time]\fR instead of \f(CW$arr[$time]\fR.
4756 .IP "Out of memory during vec in lvalue context" 4
4757 .IX Item "Out of memory during vec in lvalue context"
4758 (F) An attempt was made to extend a string beyond the largest possible memory
4759 allocation by assigning to \f(CWvec()\fR called with a large second argument.
4760 .IP "Out of memory for yacc stack" 4
4761 .IX Item "Out of memory for yacc stack"
4762 (F) The yacc parser wanted to grow its stack so it could continue
4763 parsing, but \fBrealloc()\fR wouldn\*(Aqt give it more memory, virtual or
4764 otherwise.
4765 .IP "Out of memory in perl:%s" 4
4766 .IX Item "Out of memory in perl:%s"
4767 (X) A low\-level memory allocation routine failed, indicating there was
4768 insufficient remaining (virtual) memory to satisfy the request. Perl has no
4769 option but to exit immediately.
4770 .Sp
4771 At least in Unix you may be able to get past this by increasing your process
4772 datasize limits: in csh/tcsh use \f(CW\*(C`limit\*(C'\fR and \f(CW\*(C`limit datasize n\*(C'\fR (where \f(CW\*(C`n\*(C'\fR
4773 is the number of kilobytes) to check the current limits and change them, and in
4774 ksh/bash/zsh use \f(CW\*(C`ulimit \-a\*(C'\fR and \f(CW\*(C`ulimit \-d n\*(C'\fR, respectively.
4775 .IP "\*(Aq.\*(Aq outside of string in pack" 4
4776 .IX Item "'.' outside of string in pack"
4777 (F) The argument to a \*(Aq.\*(Aq in your template tried to move the working
4778 position to before the start of the packed string being built.
4779 .IP "\*(Aq@\*(Aq outside of string in unpack" 4
4780 .IX Item "'@' outside of string in unpack"
4781 (F) You had a template that specified an absolute position outside
4782 the string being unpacked. See "pack" in perlfunc.
4783 .IP "\*(Aq@\*(Aq outside of string with malformed UTF\-8 in unpack" 4
4784 .IX Item "'@' outside of string with malformed UTF-8 in unpack"
4785 (F) You had a template that specified an absolute position outside
4786 the string being unpacked. The string being unpacked was also invalid
4787 UTF\-8. See "pack" in perlfunc.
4788 .IP "overload arg \*(Aq%s\*(Aq is invalid" 4
4789 .IX Item "overload arg '%s' is invalid"
4790 (W overload) The overload pragma was passed an argument it did not
4791 recognize. Did you mistype an operator?
4792 .IP "Overloaded dereference did not return a reference" 4
4793 .IX Item "Overloaded dereference did not return a reference"
4794 (F) An object with an overloaded dereference operator was dereferenced,
4795 but the overloaded operation did not return a reference. See
4796 overload.
4797 .IP "Overloaded qr did not return a REGEXP" 4
4798 .IX Item "Overloaded qr did not return a REGEXP"
4799 (F) An object with a \f(CW\*(C`qr\*(C'\fR overload was used as part of a match, but the
4800 overloaded operation didn\*(Aqt return a compiled regexp. See overload.
4801 .ie n .IP "%s package attribute may clash with future reserved word: %s" 4
4802 .el .IP "\f(CW%s\fR package attribute may clash with future reserved word: \f(CW%s\fR" 4
4803 .IX Item "%s package attribute may clash with future reserved word: %s"
4804 (W reserved) A lowercase attribute name was used that had a
4805 package\-specific handler. That name might have a meaning to Perl itself
4806 some day, even though it doesn\*(Aqt yet. Perhaps you should use a
4807 mixed\-case attribute name, instead. See attributes.
4808 .IP "pack/unpack repeat count overflow" 4
4809 .IX Item "pack/unpack repeat count overflow"
4810 (F) You can\*(Aqt specify a repeat count so large that it overflows your
4811 signed integers. See "pack" in perlfunc.
4812 .IP "page overflow" 4
4813 .IX Item "page overflow"
4814 (W io) A single call to \fBwrite()\fR produced more lines than can fit on a
4815 page. See perlform.
4816 .ie n .IP "panic: %s" 4
4817 .el .IP "panic: \f(CW%s\fR" 4
4818 .IX Item "panic: %s"
4819 (P) An internal error.
4820 .ie n .IP "panic: attempt to call %s in %s" 4
4821 .el .IP "panic: attempt to call \f(CW%s\fR in \f(CW%s\fR" 4
4822 .IX Item "panic: attempt to call %s in %s"
4823 (P) One of the file test operators entered a code branch that calls
4824 an ACL related\-function, but that function is not available on this
4825 platform. Earlier checks mean that it should not be possible to
4826 enter this branch on this platform.
4827 .IP "panic: child pseudo\-process was never scheduled" 4
4828 .IX Item "panic: child pseudo-process was never scheduled"
4829 (P) A child pseudo\-process in the ithreads implementation on Windows
4830 was not scheduled within the time period allowed and therefore was not
4831 able to initialize properly.
4832 .IP "panic: ck_grep, type=%u" 4
4833 .IX Item "panic: ck_grep, type=%u"
4834 (P) Failed an internal consistency check trying to compile a grep.
4835 .ie n .IP "panic: corrupt saved stack index %ld" 4
4836 .el .IP "panic: corrupt saved stack index \f(CW%ld\fR" 4
4837 .IX Item "panic: corrupt saved stack index %ld"
4838 (P) The savestack was requested to restore more localized values than
4839 there are in the savestack.
4840 .IP "panic: del_backref" 4
4841 .IX Item "panic: del_backref"
4842 (P) Failed an internal consistency check while trying to reset a weak
4843 reference.
4844 .ie n .IP "panic: fold_constants JMPENV_PUSH returned %d" 4
4845 .el .IP "panic: fold_constants JMPENV_PUSH returned \f(CW%d\fR" 4
4846 .IX Item "panic: fold_constants JMPENV_PUSH returned %d"
4847 (P) While attempting folding constants an exception other than an \f(CW\*(C`eval\*(C'\fR
4848 failure was caught.
4849 .ie n .IP "panic: frexp: %f" 4
4850 .el .IP "panic: frexp: \f(CW%f\fR" 4
4851 .IX Item "panic: frexp: %f"
4852 (P) The library function \fBfrexp()\fR failed, making printf("%f") impossible.
4853 .IP "panic: goto, type=%u, ix=%ld" 4
4854 .IX Item "panic: goto, type=%u, ix=%ld"
4855 (P) We popped the context stack to a context with the specified label,
4856 and then discovered it wasn\*(Aqt a context we know how to do a goto in.
4857 .IP "panic: gp_free failed to free glob pointer" 4
4858 .IX Item "panic: gp_free failed to free glob pointer"
4859 (P) The internal routine used to clear a typeglob\*(Aqs entries tried
4860 repeatedly, but each time something re\-created entries in the glob.
4861 Most likely the glob contains an object with a reference back to
4862 the glob and a destructor that adds a new object to the glob.
4863 .ie n .IP "panic: INTERPCASEMOD, %s" 4
4864 .el .IP "panic: INTERPCASEMOD, \f(CW%s\fR" 4
4865 .IX Item "panic: INTERPCASEMOD, %s"
4866 (P) The lexer got into a bad state at a case modifier.
4867 .ie n .IP "panic: INTERPCONCAT, %s" 4
4868 .el .IP "panic: INTERPCONCAT, \f(CW%s\fR" 4
4869 .IX Item "panic: INTERPCONCAT, %s"
4870 (P) The lexer got into a bad state parsing a string with brackets.
4871 .ie n .IP "panic! In trie construction, no char mapping for %d" 4
4872 .el .IP "panic! In trie construction, no char mapping for \f(CW%d\fR" 4
4873 .IX Item "panic! In trie construction, no char mapping for %d"
4874 (P) A failure happened in the construction of a regex trie.
4875 .ie n .IP "panic! In trie construction, unknown node type %u %s" 4
4876 .el .IP "panic! In trie construction, unknown node type \f(CW%u\fR \f(CW%s\fR" 4
4877 .IX Item "panic! In trie construction, unknown node type %u %s"
4878 (P) An unexpected node type was encountered in regex trie construction.
4879 .IP "panic: kid popen errno read" 4
4880 .IX Item "panic: kid popen errno read"
4881 (F) A forked child returned an incomprehensible message about its errno.
4882 .ie n .IP "panic: leave_scope inconsistency %u" 4
4883 .el .IP "panic: leave_scope inconsistency \f(CW%u\fR" 4
4884 .IX Item "panic: leave_scope inconsistency %u"
4885 (P) The savestack probably got out of sync. At least, there was an
4886 invalid enum on the top of it.
4887 .IP "panic: magic_killbackrefs" 4
4888 .IX Item "panic: magic_killbackrefs"
4889 (P) Failed an internal consistency check while trying to reset all weak
4890 references to an object.
4891 .ie n .IP "panic: malloc, %s" 4
4892 .el .IP "panic: malloc, \f(CW%s\fR" 4
4893 .IX Item "panic: malloc, %s"
4894 (P) Something requested a negative number of bytes of malloc.
4895 .IP "panic: memory wrap" 4
4896 .IX Item "panic: memory wrap"
4897 (P) Something tried to allocate either more memory than possible or a
4898 negative amount.
4899 .ie n .IP "panic: newFORLOOP, %s" 4
4900 .el .IP "panic: newFORLOOP, \f(CW%s\fR" 4
4901 .IX Item "panic: newFORLOOP, %s"
4902 (P) The parser failed an internal consistency check while trying to parse
4903 a \f(CW\*(C`foreach\*(C'\fR loop.
4904 .ie n .IP "panic: pad_alloc, %p!=%p" 4
4905 .el .IP "panic: pad_alloc, \f(CW%p\fR!=%p" 4
4906 .IX Item "panic: pad_alloc, %p!=%p"
4907 (P) The compiler got confused about which scratch pad it was allocating
4908 and freeing temporaries and lexicals from.
4909 .ie n .IP "panic: pad_free curpad, %p!=%p" 4
4910 .el .IP "panic: pad_free curpad, \f(CW%p\fR!=%p" 4
4911 .IX Item "panic: pad_free curpad, %p!=%p"
4912 (P) The compiler got confused about which scratch pad it was allocating
4913 and freeing temporaries and lexicals from.
4914 .IP "panic: pad_free po" 4
4915 .IX Item "panic: pad_free po"
4916 (P) A zero scratch pad offset was detected internally. An attempt was
4917 made to free a target that had not been allocated to begin with.
4918 .ie n .IP "panic: pad_reset curpad, %p!=%p" 4
4919 .el .IP "panic: pad_reset curpad, \f(CW%p\fR!=%p" 4
4920 .IX Item "panic: pad_reset curpad, %p!=%p"
4921 (P) The compiler got confused about which scratch pad it was allocating
4922 and freeing temporaries and lexicals from.
4923 .IP "panic: pad_sv po" 4
4924 .IX Item "panic: pad_sv po"
4925 (P) A zero scratch pad offset was detected internally. Most likely
4926 an operator needed a target but that target had not been allocated
4927 for whatever reason.
4928 .ie n .IP "panic: pad_swipe curpad, %p!=%p" 4
4929 .el .IP "panic: pad_swipe curpad, \f(CW%p\fR!=%p" 4
4930 .IX Item "panic: pad_swipe curpad, %p!=%p"
4931 (P) The compiler got confused about which scratch pad it was allocating
4932 and freeing temporaries and lexicals from.
4933 .IP "panic: pad_swipe po" 4
4934 .IX Item "panic: pad_swipe po"
4935 (P) An invalid scratch pad offset was detected internally.
4936 .IP "panic: pp_iter, type=%u" 4
4937 .IX Item "panic: pp_iter, type=%u"
4938 (P) The foreach iterator got called in a non\-loop context frame.
4939 .IP "panic: pp_match%s" 4
4940 .IX Item "panic: pp_match%s"
4941 (P) The internal \fBpp_match()\fR routine was called with invalid operational
4942 data.
4943 .ie n .IP "panic: realloc, %s" 4
4944 .el .IP "panic: realloc, \f(CW%s\fR" 4
4945 .IX Item "panic: realloc, %s"
4946 (P) Something requested a negative number of bytes of realloc.
4947 .IP "panic: reference miscount on nsv in \fBsv_replace()\fR (%d != 1)" 4
4948 .IX Item "panic: reference miscount on nsv in sv_replace() (%d != 1)"
4949 (P) The internal \fBsv_replace()\fR function was handed a new SV with a
4950 reference count other than 1.
4951 .ie n .IP "panic: restartop in %s" 4
4952 .el .IP "panic: restartop in \f(CW%s\fR" 4
4953 .IX Item "panic: restartop in %s"
4954 (P) Some internal routine requested a goto (or something like it), and
4955 didn\*(Aqt supply the destination.
4956 .IP "panic: return, type=%u" 4
4957 .IX Item "panic: return, type=%u"
4958 (P) We popped the context stack to a subroutine or eval context, and
4959 then discovered it wasn\*(Aqt a subroutine or eval context.
4960 .ie n .IP "panic: scan_num, %s" 4
4961 .el .IP "panic: scan_num, \f(CW%s\fR" 4
4962 .IX Item "panic: scan_num, %s"
4963 (P) \fBscan_num()\fR got called on something that wasn\*(Aqt a number.
4964 .IP "panic: Sequence (?{...}): no code block found in regex m/%s/" 4
4965 .IX Item "panic: Sequence (?{...}): no code block found in regex m/%s/"
4966 (P) While compiling a pattern that has embedded (?{}) or (??{}) code
4967 blocks, perl couldn\*(Aqt locate the code block that should have already been
4968 seen and compiled by perl before control passed to the regex compiler.
4969 .ie n .IP "panic: sv_chop %s" 4
4970 .el .IP "panic: sv_chop \f(CW%s\fR" 4
4971 .IX Item "panic: sv_chop %s"
4972 (P) The \fBsv_chop()\fR routine was passed a position that is not within the
4973 scalar\*(Aqs string buffer.
4974 .IP "panic: sv_insert, midend=%p, bigend=%p" 4
4975 .IX Item "panic: sv_insert, midend=%p, bigend=%p"
4976 (P) The \fBsv_insert()\fR routine was told to remove more string than there
4977 was string.
4978 .IP "panic: top_env" 4
4979 .IX Item "panic: top_env"
4980 (P) The compiler attempted to do a goto, or something weird like that.
4981 .ie n .IP "panic: unexpected constant lvalue entersub entry via type/targ %d:%d" 4
4982 .el .IP "panic: unexpected constant lvalue entersub entry via type/targ \f(CW%d:\fR%d" 4
4983 .IX Item "panic: unexpected constant lvalue entersub entry via type/targ %d:%d"
4984 (P) When compiling a subroutine call in lvalue context, Perl failed an
4985 internal consistency check. It encountered a malformed op tree.
4986 .ie n .IP "panic: unimplemented op %s (#%d) called" 4
4987 .el .IP "panic: unimplemented op \f(CW%s\fR (#%d) called" 4
4988 .IX Item "panic: unimplemented op %s (#%d) called"
4989 (P) The compiler is screwed up and attempted to use an op that isn\*(Aqt
4990 permitted at run time.
4991 .ie n .IP "panic: unknown OA_*: %x" 4
4992 .el .IP "panic: unknown OA_*: \f(CW%x\fR" 4
4993 .IX Item "panic: unknown OA_*: %x"
4994 (P) The internal routine that handles arguments to \f(CW&CORE::foo()\fR
4995 subroutine calls was unable to determine what type of arguments
4996 were expected.
4997 .IP "panic: utf16_to_utf8: odd bytelen" 4
4998 .IX Item "panic: utf16_to_utf8: odd bytelen"
4999 (P) Something tried to call utf16_to_utf8 with an odd (as opposed
5000 to even) byte length.
5001 .IP "panic: utf16_to_utf8_reversed: odd bytelen" 4
5002 .IX Item "panic: utf16_to_utf8_reversed: odd bytelen"
5003 (P) Something tried to call utf16_to_utf8_reversed with an odd (as opposed
5004 to even) byte length.
5005 .ie n .IP "panic: yylex, %s" 4
5006 .el .IP "panic: yylex, \f(CW%s\fR" 4
5007 .IX Item "panic: yylex, %s"
5008 (P) The lexer got into a bad state while processing a case modifier.
5009 .IP "Parentheses missing around ""%s"" list" 4
5010 .IX Item "Parentheses missing around ""%s"" list"
5011 (W parenthesis) You said something like
5012 .Sp
5013 .Vb 1
5014 \& my $foo, $bar = @_;
5015 .Ve
5016 .Sp
5017 when you meant
5018 .Sp
5019 .Vb 1
5020 \& my ($foo, $bar) = @_;
5021 .Ve
5022 .Sp
5023 Remember that "my", "our", "local" and "state" bind tighter than comma.
5024 .IP "Parsing code internal error (%s)" 4
5025 .IX Item "Parsing code internal error (%s)"
5026 (F) Parsing code supplied by an extension violated the parser\*(Aqs API in
5027 a detectable way.
5028 .IP "Pattern subroutine nesting without pos change exceeded limit in regex" 4
5029 .IX Item "Pattern subroutine nesting without pos change exceeded limit in regex"
5030 (F) You used a pattern that uses too many nested subpattern calls without
5031 consuming any text. Restructure the pattern so text is consumed before
5032 the nesting limit is exceeded.
5033 .ie n .IP """\-p"" destination: %s" 4
5034 .el .IP "\f(CW\-p\fR destination: \f(CW%s\fR" 4
5035 .IX Item "-p destination: %s"
5036 (F) An error occurred during the implicit output invoked by the \f(CW\*(C`\-p\*(C'\fR
5037 command\-line switch. (This output goes to STDOUT unless you\*(Aqve
5038 redirected it with \fBselect()\fR.)
5039 .ie n .IP "Perl API version %s of %s does not match %s" 4
5040 .el .IP "Perl API version \f(CW%s\fR of \f(CW%s\fR does not match \f(CW%s\fR" 4
5041 .IX Item "Perl API version %s of %s does not match %s"
5042 (F) The XS module in question was compiled against a different incompatible
5043 version of Perl than the one that has loaded the XS module.
5044 .Sp
5045 If the internal
5046 differences between the two incompatible Perl versions are large enough to
5047 prevent obtaining the full module name causing this error message, a
5048 \&\f(CW\*(C`.c\*(C'\fR file name will be shown in this error message instead of the full module
5049 name. The \f(CW\*(C`.c\*(C'\fR file name serves as a hint to help identify the module
5050 causing this error.
5051 .Sp
5052 The term XS module does not mean a \f(CW\*(C`.pm\*(C'\fR file. This error is not directly
5053 caused by Perl code inside a particular \f(CW\*(C`.pm\*(C'\fR file or \f(CW\*(C`.pl\*(C'\fR file.
5054 Instead this error is only caused by OS and CPU specific "shared library"
5055 files created by a C or C++ compiler. This file format is called a
5056 \&\f(CW\*(C`.so\*(C'\fR, \f(CW\*(C`.dll\*(C'\fR, \f(CW\*(C`.dylib\*(C'\fR, \f(CW\*(C`.bundle\*(C'\fR or \f(CW\*(C`.sl\*(C'\fR on Perl\*(Aqs most popular
5057 operating systems. These shared library files are a part of the XS API
5058 documented in perlxs.
5059 .Sp
5060 Each OS has a different file extension or no extension for shared libraries.
5061 But shared library files on all OSes are non\-text, unprintable, binary files
5062 with raw machine code inside of them created by a C or C++ compiler.
5063 .Sp
5064 The \f(CW\*(C`.so\*(C'\fR or \f(CW\*(C`.dll\*(C'\fR or equivalent is usually loaded by a \f(CW\*(C`.pm\*(C'\fR or \f(CW\*(C`.pl\*(C'\fR
5065 file making a call to DynaLoader or XSLoader, which
5066 then calls OS specific mechanisms to load the shared library file into the Perl
5067 process. The OS specific mechanism then calls a function or subroutine inside
5068 the particular \f(CW\*(C`.so\*(C'\fR or \f(CW\*(C`.dll\*(C'\fR file. That particular \f(CW\*(C`.so\*(C'\fR or \f(CW\*(C`.dll\*(C'\fR file
5069 then throws this error.
5070 .IP "Perl folding rules are not up\-to\-date for 0x%X; please use the perlbug utility to report; in regex; marked by <\-\-\ HERE in m/%s/" 4
5071 .IX Item "Perl folding rules are not up-to-date for 0x%X; please use the perlbug utility to report; in regex; marked by <-- HERE in m/%s/"
5072 (S regexp) You used a regular expression with case\-insensitive matching,
5073 and there is a bug in Perl in which the built\-in regular expression
5074 folding rules are not accurate. This may lead to incorrect results.
5075 Please report this as a bug to <https://github.com/Perl/perl5/issues/new/choose>.
5076 .IP "Perl_my_%s() not available" 4
5077 .IX Item "Perl_my_%s() not available"
5078 (F) Your platform has very uncommon byte\-order and integer size,
5079 so it was not possible to set up some or all fixed\-width byte\-order
5080 conversion functions. This is only a problem when you\*(Aqre using the
5081 \&\*(Aq<\*(Aq or \*(Aq>\*(Aq modifiers in (un)pack templates. See "pack" in perlfunc.
5082 .ie n .IP "Perl %s required (did you mean %s?)\-\-this is only %s, stopped" 4
5083 .el .IP "Perl \f(CW%s\fR required (did you mean \f(CW%s\fR?)\-\-this is only \f(CW%s\fR, stopped" 4
5084 .IX Item "Perl %s required (did you mean %s?)--this is only %s, stopped"
5085 (F) The code you are trying to run has asked for a newer version of
5086 Perl than you are running. Perhaps \f(CW\*(C`use 5.10\*(C'\fR was written instead
5087 of \f(CW\*(C`use 5.010\*(C'\fR or \f(CW\*(C`use v5.10\*(C'\fR. Without the leading \f(CW\*(C`v\*(C'\fR, the number is
5088 interpreted as a decimal, with every three digits after the
5089 decimal point representing a part of the version number. So 5.10
5090 is equivalent to v5.100.
5091 .ie n .IP "Perl %s required\-\-this is only %s, stopped" 4
5092 .el .IP "Perl \f(CW%s\fR required\-\-this is only \f(CW%s\fR, stopped" 4
5093 .IX Item "Perl %s required--this is only %s, stopped"
5094 (F) The module in question uses features of a version of Perl more
5095 recent than the currently running version. How long has it been since
5096 you upgraded, anyway? See "require" in perlfunc.
5097 .IP "PERL_SH_DIR too long" 4
5098 .IX Item "PERL_SH_DIR too long"
5099 (F) An error peculiar to OS/2. PERL_SH_DIR is the directory to find the
5100 \&\f(CW\*(C`sh\*(C'\fR\-shell in. See "PERL_SH_DIR" in perlos2.
5101 .IP "PERL_SIGNALS illegal: ""%s""" 4
5102 .IX Item "PERL_SIGNALS illegal: ""%s"""
5103 (X) See "PERL_SIGNALS" in perlrun for legal values.
5104 .ie n .IP "Perls since %s too modern\-\-this is %s, stopped" 4
5105 .el .IP "Perls since \f(CW%s\fR too modern\-\-this is \f(CW%s\fR, stopped" 4
5106 .IX Item "Perls since %s too modern--this is %s, stopped"
5107 (F) The code you are trying to run claims it will not run
5108 on the version of Perl you are using because it is too new.
5109 Maybe the code needs to be updated, or maybe it is simply
5110 wrong and the version check should just be removed.
5111 .IP "perl: warning: Non hex character in \*(Aq$ENV{PERL_HASH_SEED}\*(Aq, seed only partially set" 4
5112 .IX Item "perl: warning: Non hex character in '$ENV{PERL_HASH_SEED}', seed only partially set"
5113 (S) PERL_HASH_SEED should match /^\es*(?:0x)?[0\-9a\-fA\-F]+\es*\ez/ but it
5114 contained a non hex character. This could mean you are not using the
5115 hash seed you think you are.
5116 .IP "perl: warning: Setting locale failed." 4
5117 .IX Item "perl: warning: Setting locale failed."
5118 (S) The whole warning message will look something like:
5119 .Sp
5120 .Vb 6
5121 \& perl: warning: Setting locale failed.
5122 \& perl: warning: Please check that your locale settings:
5123 \& LC_ALL = "En_US",
5124 \& LANG = (unset)
5125 \& are supported and installed on your system.
5126 \& perl: warning: Falling back to the standard locale ("C").
5127 .Ve
5128 .Sp
5129 Exactly what were the failed locale settings varies. In the above the
5130 settings were that the LC_ALL was "En_US" and the LANG had no value.
5131 This error means that Perl detected that you and/or your operating
5132 system supplier and/or system administrator have set up the so\-called
5133 locale system but Perl could not use those settings. This was not
5134 dead serious, fortunately: there is a "default locale" called "C" that
5135 Perl can and will use, and the script will be run. Before you really
5136 fix the problem, however, you will get the same error message each
5137 time you run Perl. How to really fix the problem can be found in
5138 perllocale section \fBLOCALE PROBLEMS\fR.
5139 .IP "perl: warning: strange setting in \*(Aq$ENV{PERL_PERTURB_KEYS}\*(Aq: \*(Aq%s\*(Aq" 4
5140 .IX Item "perl: warning: strange setting in '$ENV{PERL_PERTURB_KEYS}': '%s'"
5141 (S) Perl was run with the environment variable PERL_PERTURB_KEYS defined
5142 but containing an unexpected value. The legal values of this setting
5143 are as follows.
5144 .Sp
5145 .Vb 6
5146 \& Numeric | String | Result
5147 \& \-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
5148 \& 0 | NO | Disables key traversal randomization
5149 \& 1 | RANDOM | Enables full key traversal randomization
5150 \& 2 | DETERMINISTIC | Enables repeatable key traversal
5151 \& | | randomization
5152 .Ve
5153 .Sp
5154 Both numeric and string values are accepted, but note that string values are
5155 case sensitive. The default for this setting is "RANDOM" or 1.
5156 .IP "PerlIO layer function table size (%d) does not match size expected by this perl (%d)" 4
5157 .IX Item "PerlIO layer function table size (%d) does not match size expected by this perl (%d)"
5158 (P) The size of a PerlIO function table passed by an extension is smaller than expected.
5159 .IP "PerlIO layer instance size (%d) smaller than size expected by this perl (%d)" 4
5160 .IX Item "PerlIO layer instance size (%d) smaller than size expected by this perl (%d)"
5161 (P) The size of a PerlIO instance passed by an extension is smaller than expected.
5162 .ie n .IP "pid %x not a child" 4
5163 .el .IP "pid \f(CW%x\fR not a child" 4
5164 .IX Item "pid %x not a child"
5165 (W exec) A warning peculiar to VMS. \fBWaitpid()\fR was asked to wait for a
5166 process which isn\*(Aqt a subprocess of the current process. While this is
5167 fine from VMS\*(Aq perspective, it\*(Aqs probably not what you intended.
5168 .IP "\*(AqP\*(Aq must have an explicit size in unpack" 4
5169 .IX Item "'P' must have an explicit size in unpack"
5170 (F) The unpack format P must have an explicit size, not "*".
5171 .IP "POSIX class [:%s:] unknown in regex; marked by <\-\-\ HERE in m/%s/" 4
5172 .IX Item "POSIX class [:%s:] unknown in regex; marked by <-- HERE in m/%s/"
5173 (F) The class in the character class [: :] syntax is unknown. The <\-\-\ HERE
5174 shows whereabouts in the regular expression the problem was discovered.
5175 Note that the POSIX character classes do \fBnot\fR have the \f(CW\*(C`is\*(C'\fR prefix
5176 the corresponding C interfaces have: in other words, it\*(Aqs \f(CW\*(C`[[:print:]]\*(C'\fR,
5177 not \f(CW\*(C`isprint\*(C'\fR. See perlre.
5178 .IP "POSIX getpgrp can\*(Aqt take an argument" 4
5179 .IX Item "POSIX getpgrp can't take an argument"
5180 (F) Your system has POSIX \fBgetpgrp()\fR, which takes no argument, unlike
5181 the BSD version, which takes a pid.
5182 .ie n .IP "POSIX syntax [%c %c] belongs inside character classes%s in regex; marked by <\-\-\ HERE in m/%s/" 4
5183 .el .IP "POSIX syntax [%c \f(CW%c\fR] belongs inside character classes%s in regex; marked by <\-\-\ HERE in m/%s/" 4
5184 .IX Item "POSIX syntax [%c %c] belongs inside character classes%s in regex; marked by <-- HERE in m/%s/"
5185 (W regexp) Perl thinks that you intended to write a POSIX character
5186 class, but didn\*(Aqt use enough brackets. These POSIX class constructs [:
5187 :], [= =], and [. .] go \fIinside\fR character classes, the [] are part of
5188 the construct, for example: \f(CW\*(C`qr/[012[:alpha:]345]/\*(C'\fR. What the regular
5189 expression pattern compiled to is probably not what you were intending.
5190 For example, \f(CW\*(C`qr/[:alpha:]/\*(C'\fR compiles to a regular bracketed character
5191 class consisting of the four characters \f(CW":"\fR, \f(CW"a"\fR, \f(CW"l"\fR,
5192 \&\f(CW"h"\fR, and \f(CW"p"\fR. To specify the POSIX class, it should have been
5193 written \f(CW\*(C`qr/[[:alpha:]]/\*(C'\fR.
5194 .Sp
5195 Note that [= =] and [. .] are not currently
5196 implemented; they are simply placeholders for future extensions and
5197 will cause fatal errors. The <\-\-\ HERE shows whereabouts in the regular
5198 expression the problem was discovered. See perlre.
5199 .Sp
5200 If the specification of the class was not completely valid, the message
5201 indicates that.
5202 .IP "POSIX syntax [. .] is reserved for future extensions in regex; marked by <\-\-\ HERE in m/%s/" 4
5203 .IX Item "POSIX syntax [. .] is reserved for future extensions in regex; marked by <-- HERE in m/%s/"
5204 (F) Within regular expression character classes ([]) the syntax beginning
5205 with "[." and ending with ".]" is reserved for future extensions. If you
5206 need to represent those character sequences inside a regular expression
5207 character class, just escape the square brackets with the backslash: "\e[."
5208 and ".\e]". The <\-\-\ HERE shows whereabouts in the regular expression the
5209 problem was discovered. See perlre.
5210 .IP "POSIX syntax [= =] is reserved for future extensions in regex; marked by <\-\-\ HERE in m/%s/" 4
5211 .IX Item "POSIX syntax [= =] is reserved for future extensions in regex; marked by <-- HERE in m/%s/"
5212 (F) Within regular expression character classes ([]) the syntax beginning
5213 with "[=" and ending with "=]" is reserved for future extensions. If you
5214 need to represent those character sequences inside a regular expression
5215 character class, just escape the square brackets with the backslash: "\e[="
5216 and "=\e]". The <\-\-\ HERE shows whereabouts in the regular expression the
5217 problem was discovered. See perlre.
5218 .IP "Possible attempt to put comments in \fBqw()\fR list" 4
5219 .IX Item "Possible attempt to put comments in qw() list"
5220 (W qw) \fBqw()\fR lists contain items separated by whitespace; as with literal
5221 strings, comment characters are not ignored, but are instead treated as
5222 literal data. (You may have used different delimiters than the
5223 parentheses shown here; braces are also frequently used.)
5224 .Sp
5225 You probably wrote something like this:
5226 .Sp
5227 .Vb 4
5228 \& @list = qw(
5229 \& a # a comment
5230 \& b # another comment
5231 \& );
5232 .Ve
5233 .Sp
5234 when you should have written this:
5235 .Sp
5236 .Vb 4
5237 \& @list = qw(
5238 \& a
5239 \& b
5240 \& );
5241 .Ve
5242 .Sp
5243 If you really want comments, build your list the
5244 old\-fashioned way, with quotes and commas:
5245 .Sp
5246 .Vb 4
5247 \& @list = (
5248 \& \*(Aqa\*(Aq, # a comment
5249 \& \*(Aqb\*(Aq, # another comment
5250 \& );
5251 .Ve
5252 .IP "Possible attempt to separate words with commas" 4
5253 .IX Item "Possible attempt to separate words with commas"
5254 (W qw) \fBqw()\fR lists contain items separated by whitespace; therefore
5255 commas aren\*(Aqt needed to separate the items. (You may have used
5256 different delimiters than the parentheses shown here; braces are also
5257 frequently used.)
5258 .Sp
5259 You probably wrote something like this:
5260 .Sp
5261 .Vb 1
5262 \& qw! a, b, c !;
5263 .Ve
5264 .Sp
5265 which puts literal commas into some of the list items. Write it without
5266 commas if you don\*(Aqt want them to appear in your data:
5267 .Sp
5268 .Vb 1
5269 \& qw! a b c !;
5270 .Ve
5271 .ie n .IP "Possible memory corruption: %s overflowed 3rd argument" 4
5272 .el .IP "Possible memory corruption: \f(CW%s\fR overflowed 3rd argument" 4
5273 .IX Item "Possible memory corruption: %s overflowed 3rd argument"
5274 (F) An \fBioctl()\fR or \fBfcntl()\fR returned more than Perl was bargaining for.
5275 Perl guesses a reasonable buffer size, but puts a sentinel byte at the
5276 end of the buffer just in case. This sentinel byte got clobbered, and
5277 Perl assumes that memory is now corrupted. See "ioctl" in perlfunc.
5278 .IP "Possible precedence issue with control flow operator (%s)" 4
5279 .IX Item "Possible precedence issue with control flow operator (%s)"
5280 (W syntax) There is a possible problem with the mixing of a control
5281 flow operator (e.g. \f(CW\*(C`return\*(C'\fR) and a low\-precedence operator like
5282 \&\f(CW\*(C`or\*(C'\fR. Consider:
5283 .Sp
5284 .Vb 1
5285 \& sub { return $x or $y; }
5286 .Ve
5287 .Sp
5288 This is parsed as:
5289 .Sp
5290 .Vb 1
5291 \& sub { (return $x) or $y; }
5292 .Ve
5293 .Sp
5294 Which is effectively just:
5295 .Sp
5296 .Vb 1
5297 \& sub { return $x; }
5298 .Ve
5299 .Sp
5300 Either use parentheses or the high\-precedence variant of the operator.
5301 .Sp
5302 Note this may be also triggered for constructs like:
5303 .Sp
5304 .Vb 1
5305 \& sub { 1 if die; }
5306 .Ve
5307 .ie n .IP "Possible precedence problem between ! and %s" 4
5308 .el .IP "Possible precedence problem between ! and \f(CW%s\fR" 4
5309 .IX Item "Possible precedence problem between ! and %s"
5310 (W precedence) You wrote something like
5311 .Sp
5312 .Vb 4
5313 \& !$x < $y # parsed as: (!$x) < $y
5314 \& !$x eq $y # parsed as: (!$x) eq $y
5315 \& !$x =~ /regex/ # parsed as: (!$x) =~ /regex/
5316 \& !$obj isa Some::Class # parsed as: (!$obj) isa Some::Class
5317 .Ve
5318 .Sp
5319 but because \f(CW\*(C`!\*(C'\fR has higher precedence than comparison operators, \f(CW\*(C`=~\*(C'\fR, and
5320 \&\f(CW\*(C`isa\*(C'\fR, this is interpreted as comparing/matching the logical negation of the
5321 first operand, instead of negating the result of the comparison/match.
5322 .Sp
5323 To disambiguate, either use a negated comparison/binding operator:
5324 .Sp
5325 .Vb 3
5326 \& $x >= $y
5327 \& $x ne $y
5328 \& $x !~ /regex/
5329 .Ve
5330 .Sp
5331 \&... or parentheses:
5332 .Sp
5333 .Vb 4
5334 \& !($x < $y)
5335 \& !($x eq $y)
5336 \& !($x =~ /regex/)
5337 \& !($obj isa Some::Class)
5338 .Ve
5339 .Sp
5340 \&... or the low\-precedence \f(CW\*(C`not\*(C'\fR operator:
5341 .Sp
5342 .Vb 4
5343 \& not $x < $y
5344 \& not $x eq $y
5345 \& not $x =~ /regex/
5346 \& not $obj isa Some::Class
5347 .Ve
5348 .Sp
5349 (If you did mean to compare the boolean result of negating the first operand,
5350 parenthesize as \f(CW\*(C`(!$x) < $y\*(C'\fR, \f(CW\*(C`(!$x) eq $y\*(C'\fR, etc.)
5351 .ie n .IP "Possible precedence problem on bitwise %s operator" 4
5352 .el .IP "Possible precedence problem on bitwise \f(CW%s\fR operator" 4
5353 .IX Item "Possible precedence problem on bitwise %s operator"
5354 (W precedence) Your program uses a bitwise logical operator in conjunction
5355 with a numeric comparison operator, like this :
5356 .Sp
5357 .Vb 1
5358 \& if ($x & $y == 0) { ... }
5359 .Ve
5360 .Sp
5361 This expression is actually equivalent to \f(CW\*(C`$x & ($y == 0)\*(C'\fR, due to the
5362 higher precedence of \f(CW\*(C`==\*(C'\fR. This is probably not what you want. (If you
5363 really meant to write this, disable the warning, or, better, put the
5364 parentheses explicitly and write \f(CW\*(C`$x & ($y == 0)\*(C'\fR).
5365 .IP "Possible unintended interpolation of $\e in regex" 4
5366 .IX Item "Possible unintended interpolation of $ in regex"
5367 (W ambiguous) You said something like \f(CW\*(C`m/$\e/\*(C'\fR in a regex.
5368 The regex \f(CW\*(C`m/foo$\es+bar/m\*(C'\fR translates to: match the word \*(Aqfoo\*(Aq, the output
5369 record separator (see "$\e" in perlvar) and the letter \*(Aqs\*(Aq (one time or more)
5370 followed by the word \*(Aqbar\*(Aq.
5371 .Sp
5372 If this is what you intended then you can silence the warning by using
5373 \&\f(CW\*(C`m/${\e}/\*(C'\fR (for example: \f(CW\*(C`m/foo${\e}s+bar/\*(C'\fR).
5374 .Sp
5375 If instead you intended to match the word \*(Aqfoo\*(Aq at the end of the line
5376 followed by whitespace and the word \*(Aqbar\*(Aq on the next line then you can use
5377 \&\f(CW\*(C`m/$(?)\e/\*(C'\fR (for example: \f(CW\*(C`m/foo$(?)\es+bar/\*(C'\fR).
5378 .ie n .IP "Possible unintended interpolation of %s in string" 4
5379 .el .IP "Possible unintended interpolation of \f(CW%s\fR in string" 4
5380 .IX Item "Possible unintended interpolation of %s in string"
5381 (W ambiguous) You said something like \*(Aq@foo\*(Aq in a double\-quoted string
5382 but there was no array \f(CW@foo\fR in scope at the time. If you wanted a
5383 literal \f(CW@foo\fR, then write it as \e@foo; otherwise find out what happened
5384 to the array you apparently lost track of.
5385 .ie n .IP "Precedence problem: open %s should be open(%s)" 4
5386 .el .IP "Precedence problem: open \f(CW%s\fR should be open(%s)" 4
5387 .IX Item "Precedence problem: open %s should be open(%s)"
5388 (S precedence) The old irregular construct
5389 .Sp
5390 .Vb 1
5391 \& open FOO || die;
5392 .Ve
5393 .Sp
5394 is now misinterpreted as
5395 .Sp
5396 .Vb 1
5397 \& open(FOO || die);
5398 .Ve
5399 .Sp
5400 because of the strict regularization of Perl 5\*(Aqs grammar into unary and
5401 list operators. (The old open was a little of both.) You must put
5402 parentheses around the filehandle, or use the new "or" operator instead
5403 of "||".
5404 .IP "Premature end of script headers" 4
5405 .IX Item "Premature end of script headers"
5406 See "500 Server error".
5407 .ie n .IP "\fBprintf()\fR on closed filehandle %s" 4
5408 .el .IP "\fBprintf()\fR on closed filehandle \f(CW%s\fR" 4
5409 .IX Item "printf() on closed filehandle %s"
5410 (W closed) The filehandle you\*(Aqre writing to got itself closed sometime
5411 before now. Check your control flow.
5412 .ie n .IP "\fBprint()\fR on closed filehandle %s" 4
5413 .el .IP "\fBprint()\fR on closed filehandle \f(CW%s\fR" 4
5414 .IX Item "print() on closed filehandle %s"
5415 (W closed) The filehandle you\*(Aqre printing on got itself closed sometime
5416 before now. Check your control flow.
5417 .IP "Process terminated by SIG%s" 4
5418 .IX Item "Process terminated by SIG%s"
5419 (W) This is a standard message issued by OS/2 applications, while *nix
5420 applications die in silence. It is considered a feature of the OS/2
5421 port. One can easily disable this by appropriate sighandlers, see
5422 "Signals" in perlipc. See also "Process terminated by SIGTERM/SIGINT"
5423 in perlos2.
5424 .ie n .IP "Prototype after \*(Aq%c\*(Aq for %s : %s" 4
5425 .el .IP "Prototype after \*(Aq%c\*(Aq for \f(CW%s\fR : \f(CW%s\fR" 4
5426 .IX Item "Prototype after '%c' for %s : %s"
5427 (W illegalproto) A character follows % or @ in a prototype. This is
5428 useless, since % and @ gobble the rest of the subroutine arguments.
5429 .ie n .IP "Prototype mismatch: %s vs %s" 4
5430 .el .IP "Prototype mismatch: \f(CW%s\fR vs \f(CW%s\fR" 4
5431 .IX Item "Prototype mismatch: %s vs %s"
5432 (S prototype) The subroutine being declared or defined had previously been
5433 declared or defined with a different function prototype.
5434 .IP "Prototype not terminated" 4
5435 .IX Item "Prototype not terminated"
5436 (F) You\*(Aqve omitted the closing parenthesis in a function prototype
5437 definition.
5438 .ie n .IP "Prototype \*(Aq%s\*(Aq overridden by attribute \*(Aqprototype(%s)\*(Aq in %s" 4
5439 .el .IP "Prototype \*(Aq%s\*(Aq overridden by attribute \*(Aqprototype(%s)\*(Aq in \f(CW%s\fR" 4
5440 .IX Item "Prototype '%s' overridden by attribute 'prototype(%s)' in %s"
5441 (W prototype) A prototype was declared in both the parentheses after
5442 the sub name and via the prototype attribute. The prototype in
5443 parentheses is useless, since it will be replaced by the prototype
5444 from the attribute before it\*(Aqs ever used.
5445 .ie n .IP "%s on BEGIN block ignored" 4
5446 .el .IP "\f(CW%s\fR on BEGIN block ignored" 4
5447 .IX Item "%s on BEGIN block ignored"
5448 (W syntax) \f(CW\*(C`BEGIN\*(C'\fR blocks are executed immediately after they are parsed
5449 and then thrown away. Any prototypes or attributes are therefore
5450 meaningless and are ignored. You should remove them from the \f(CW\*(C`BEGIN\*(C'\fR block.
5451 Note this also means you cannot create a constant called \f(CW\*(C`BEGIN\*(C'\fR.
5452 .IP "Quantifier follows nothing in regex; marked by <\-\-\ HERE in m/%s/" 4
5453 .IX Item "Quantifier follows nothing in regex; marked by <-- HERE in m/%s/"
5454 (F) You started a regular expression with a quantifier. Backslash it if
5455 you meant it literally. The <\-\-\ HERE shows whereabouts in the regular
5456 expression the problem was discovered. See perlre.
5457 .ie n .IP "Quantifier in {,} bigger than %d in regex; marked by <\-\-\ HERE in m/%s/" 4
5458 .el .IP "Quantifier in {,} bigger than \f(CW%d\fR in regex; marked by <\-\-\ HERE in m/%s/" 4
5459 .IX Item "Quantifier in {,} bigger than %d in regex; marked by <-- HERE in m/%s/"
5460 (F) There is currently a limit to the size of the min and max values of
5461 the {min,max} construct. The <\-\-\ HERE shows whereabouts in the regular
5462 expression the problem was discovered. See perlre.
5463 .IP "Quantifier {n,m} with n > m can\*(Aqt match in regex" 4
5464 .IX Item "Quantifier {n,m} with n > m can't match in regex"
5465 .PD 0
5466 .IP "Quantifier {n,m} with n > m can\*(Aqt match in regex; marked by <\-\-\ HERE in m/%s/" 4
5467 .IX Item "Quantifier {n,m} with n > m can't match in regex; marked by <-- HERE in m/%s/"
5468 .PD
5469 (W regexp) Minima should be less than or equal to maxima. If you really
5470 want your regexp to match something 0 times, just put {0}.
5471 .IP "Quantifier unexpected on zero\-length expression in regex m/%s/" 4
5472 .IX Item "Quantifier unexpected on zero-length expression in regex m/%s/"
5473 (W regexp) You applied a regular expression quantifier in a place where
5474 it makes no sense, such as on a zero\-width assertion. Try putting the
5475 quantifier inside the assertion instead. For example, the way to match
5476 "abc" provided that it is followed by three repetitions of "xyz" is
5477 \&\f(CW\*(C`/abc(?=(?:xyz){3})/\*(C'\fR, not \f(CW\*(C`/abc(?=xyz){3}/\*(C'\fR.
5478 .IP "Range iterator outside integer range" 4
5479 .IX Item "Range iterator outside integer range"
5480 (F) One (or both) of the numeric arguments to the range operator ".."
5481 are outside the range which can be represented by integers internally.
5482 One possible workaround is to force Perl to use magical string increment
5483 by prepending "0" to your numbers.
5484 .IP "Ranges of ASCII printables should be some subset of ""0\-9"", ""A\-Z"", or ""a\-z"" in regex; marked by <\-\-\ HERE in m/%s/" 4
5485 .IX Item "Ranges of ASCII printables should be some subset of ""0-9"", ""A-Z"", or ""a-z"" in regex; marked by <-- HERE in m/%s/"
5486 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR or within \f(CW\*(C`(?[...])\*(C'\fR)
5487 .Sp
5488 Stricter rules help to find typos and other errors. Perhaps you didn\*(Aqt
5489 even intend a range here, if the \f(CW"\-"\fR was meant to be some other
5490 character, or should have been escaped (like \f(CW"\e\-"\fR). If you did
5491 intend a range, the one that was used is not portable between ASCII and
5492 EBCDIC platforms, and doesn\*(Aqt have an obvious meaning to a casual
5493 reader.
5494 .Sp
5495 .Vb 7
5496 \& [3\-7] # OK; Obvious and portable
5497 \& [d\-g] # OK; Obvious and portable
5498 \& [A\-Y] # OK; Obvious and portable
5499 \& [A\-z] # WRONG; Not portable; not clear what is meant
5500 \& [a\-Z] # WRONG; Not portable; not clear what is meant
5501 \& [%\-.] # WRONG; Not portable; not clear what is meant
5502 \& [\ex41\-Z] # WRONG; Not portable; not obvious to non\-geek
5503 .Ve
5504 .Sp
5505 (You can force portability by specifying a Unicode range, which means that
5506 the endpoints are specified by
5507 \&\f(CW\*(C`\eN{...}\*(C'\fR, but the meaning may
5508 still not be obvious.)
5509 The stricter rules require that ranges that start or stop with an ASCII
5510 character that is not a control have all their endpoints be the literal
5511 character, and not some escape sequence (like \f(CW"\ex41"\fR), and the ranges
5512 must be all digits, or all uppercase letters, or all lowercase letters.
5513 .IP "Ranges of digits should be from the same group in regex; marked by <\-\-\ HERE in m/%s/" 4
5514 .IX Item "Ranges of digits should be from the same group in regex; marked by <-- HERE in m/%s/"
5515 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR or within \f(CW\*(C`(?[...])\*(C'\fR)
5516 .Sp
5517 Stricter rules help to find typos and other errors. You included a
5518 range, and at least one of the end points is a decimal digit. Under the
5519 stricter rules, when this happens, both end points should be digits in
5520 the same group of 10 consecutive digits.
5521 .ie n .IP "\fBreadline()\fR on closed filehandle %s" 4
5522 .el .IP "\fBreadline()\fR on closed filehandle \f(CW%s\fR" 4
5523 .IX Item "readline() on closed filehandle %s"
5524 (W closed) The filehandle you\*(Aqre reading from got itself closed sometime
5525 before now. Check your control flow.
5526 .ie n .IP "\fBreadline()\fR on unopened filehandle %s" 4
5527 .el .IP "\fBreadline()\fR on unopened filehandle \f(CW%s\fR" 4
5528 .IX Item "readline() on unopened filehandle %s"
5529 (W unopened) The filehandle you\*(Aqre reading from was never opened. Check your
5530 control flow.
5531 .ie n .IP "\fBread()\fR on closed filehandle %s" 4
5532 .el .IP "\fBread()\fR on closed filehandle \f(CW%s\fR" 4
5533 .IX Item "read() on closed filehandle %s"
5534 (W closed) You tried to read from a closed filehandle.
5535 .ie n .IP "\fBread()\fR on unopened filehandle %s" 4
5536 .el .IP "\fBread()\fR on unopened filehandle \f(CW%s\fR" 4
5537 .IX Item "read() on unopened filehandle %s"
5538 (W unopened) You tried to read from a filehandle that was never opened.
5539 .IP "\fBrealloc()\fR of freed memory ignored" 4
5540 .IX Item "realloc() of freed memory ignored"
5541 (S malloc) An internal routine called \fBrealloc()\fR on something that had
5542 already been freed.
5543 .IP "Recompile perl with \fB\-D\fRDEBUGGING to use \fB\-D\fR switch" 4
5544 .IX Item "Recompile perl with -DDEBUGGING to use -D switch"
5545 (S debugging) You can\*(Aqt use the \fB\-D\fR option unless the code to produce
5546 the desired output is compiled into Perl, which entails some overhead,
5547 which is why it\*(Aqs currently left out of your copy.
5548 .IP "Recursive call to Perl_load_module in PerlIO_find_layer" 4
5549 .IX Item "Recursive call to Perl_load_module in PerlIO_find_layer"
5550 (P) It is currently not permitted to load modules when creating
5551 a filehandle inside an \f(CW%INC\fR hook. This can happen with \f(CW\*(C`open my
5552 $fh, \*(Aq<\*(Aq, \e$scalar\*(C'\fR, which implicitly loads PerlIO::scalar. Try
5553 loading PerlIO::scalar explicitly first.
5554 .IP "Recursive inheritance detected in package \*(Aq%s\*(Aq" 4
5555 .IX Item "Recursive inheritance detected in package '%s'"
5556 (F) While calculating the method resolution order (MRO) of a package, Perl
5557 believes it found an infinite loop in the \f(CW@ISA\fR hierarchy. This is a
5558 crude check that bails out after 100 levels of \f(CW@ISA\fR depth.
5559 .ie n .IP "Redundant argument in %s" 4
5560 .el .IP "Redundant argument in \f(CW%s\fR" 4
5561 .IX Item "Redundant argument in %s"
5562 (W redundant) You called a function with more arguments than other
5563 arguments you supplied indicated would be needed. Currently only
5564 emitted when a printf\-type format required fewer arguments than were
5565 supplied, but might be used in the future for e.g. "pack" in perlfunc.
5566 .ie n .IP "refcnt_dec: fd %d%s" 4
5567 .el .IP "refcnt_dec: fd \f(CW%d\fR%s" 4
5568 .IX Item "refcnt_dec: fd %d%s"
5569 .PD 0
5570 .ie n .IP "refcnt: fd %d%s" 4
5571 .el .IP "refcnt: fd \f(CW%d\fR%s" 4
5572 .IX Item "refcnt: fd %d%s"
5573 .ie n .IP "refcnt_inc: fd %d%s" 4
5574 .el .IP "refcnt_inc: fd \f(CW%d\fR%s" 4
5575 .IX Item "refcnt_inc: fd %d%s"
5576 .PD
5577 (P) Perl\*(Aqs I/O implementation failed an internal consistency check. If
5578 you see this message, something is very wrong.
5579 .IP "Reference found where even\-sized list expected" 4
5580 .IX Item "Reference found where even-sized list expected"
5581 (W misc) You gave a single reference where Perl was expecting a list
5582 with an even number of elements (for assignment to a hash). This
5583 usually means that you used the anon hash constructor when you meant
5584 to use parens. In any case, a hash requires key/value \fBpairs\fR.
5585 .Sp
5586 .Vb 4
5587 \& %hash = { one => 1, two => 2, }; # WRONG
5588 \& %hash = [ qw/ an anon array / ]; # WRONG
5589 \& %hash = ( one => 1, two => 2, ); # right
5590 \& %hash = qw( one 1 two 2 ); # also fine
5591 .Ve
5592 .IP "Reference is already weak" 4
5593 .IX Item "Reference is already weak"
5594 (W misc) You have attempted to weaken a reference that is already weak.
5595 Doing so has no effect.
5596 .IP "Reference is not weak" 4
5597 .IX Item "Reference is not weak"
5598 (W misc) You have attempted to unweaken a reference that is not weak.
5599 Doing so has no effect.
5600 .IP "Reference to invalid group 0 in regex; marked by <\-\-\ HERE in m/%s/" 4
5601 .IX Item "Reference to invalid group 0 in regex; marked by <-- HERE in m/%s/"
5602 (F) You used \f(CW\*(C`\eg0\*(C'\fR or similar in a regular expression. You may refer
5603 to capturing parentheses only with strictly positive integers
5604 (normal backreferences) or with strictly negative integers (relative
5605 backreferences). Using 0 does not make sense.
5606 .IP "Reference to nonexistent group in regex; marked by <\-\-\ HERE in m/%s/" 4
5607 .IX Item "Reference to nonexistent group in regex; marked by <-- HERE in m/%s/"
5608 (F) You used something like \f(CW\*(C`\e7\*(C'\fR in your regular expression, but there are
5609 not at least seven sets of capturing parentheses in the expression. If
5610 you wanted to have the character with ordinal 7 inserted into the regular
5611 expression, prepend zeroes to make it three digits long: \f(CW\*(C`\e007\*(C'\fR
5612 .Sp
5613 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
5614 discovered.
5615 .IP "Reference to nonexistent named group in regex; marked by <\-\-\ HERE in m/%s/" 4
5616 .IX Item "Reference to nonexistent named group in regex; marked by <-- HERE in m/%s/"
5617 (F) You used something like \f(CW\*(C`\ek\*(AqNAME\*(Aq\*(C'\fR or \f(CW\*(C`\ek<NAME>\*(C'\fR in your regular
5618 expression, but there is no corresponding named capturing parentheses
5619 such as \f(CW\*(C`(?\*(AqNAME\*(Aq...)\*(C'\fR or \f(CW\*(C`(?<NAME>...)\*(C'\fR. Check if the name has been
5620 spelled correctly both in the backreference and the declaration.
5621 .Sp
5622 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
5623 discovered.
5624 .IP "Reference to nonexistent or unclosed group in regex; marked by <\-\-\ HERE in m/%s/" 4
5625 .IX Item "Reference to nonexistent or unclosed group in regex; marked by <-- HERE in m/%s/"
5626 (F) You used something like \f(CW\*(C`\eg{\-7}\*(C'\fR in your regular expression, but there
5627 are not at least seven sets of closed capturing parentheses in the
5628 expression before where the \f(CW\*(C`\eg{\-7}\*(C'\fR was located.
5629 .Sp
5630 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
5631 discovered.
5632 .IP "regexp memory corruption" 4
5633 .IX Item "regexp memory corruption"
5634 (P) The regular expression engine got confused by what the regular
5635 expression compiler gave it.
5636 .IP "Regexp modifier ""/%c"" may appear a maximum of twice" 4
5637 .IX Item "Regexp modifier ""/%c"" may appear a maximum of twice"
5638 .PD 0
5639 .IP "Regexp modifier ""%c"" may appear a maximum of twice in regex; marked by <\-\-\ HERE in m/%s/" 4
5640 .IX Item "Regexp modifier ""%c"" may appear a maximum of twice in regex; marked by <-- HERE in m/%s/"
5641 .PD
5642 (F) The regular expression pattern had too many occurrences
5643 of the specified modifier. Remove the extraneous ones.
5644 .IP "Regexp modifier ""%c"" may not appear after the ""\-"" in regex; marked by <\-\- HERE in m/%s/" 4
5645 .IX Item "Regexp modifier ""%c"" may not appear after the ""-"" in regex; marked by <-- HERE in m/%s/"
5646 (F) Turning off the given modifier has the side effect of turning on
5647 another one. Perl currently doesn\*(Aqt allow this. Reword the regular
5648 expression to use the modifier you want to turn on (and place it before
5649 the minus), instead of the one you want to turn off.
5650 .IP "Regexp modifier ""/%c"" may not appear twice" 4
5651 .IX Item "Regexp modifier ""/%c"" may not appear twice"
5652 .PD 0
5653 .IP "Regexp modifier ""%c"" may not appear twice in regex; marked by <\-\- HERE in m/%s/" 4
5654 .IX Item "Regexp modifier ""%c"" may not appear twice in regex; marked by <-- HERE in m/%s/"
5655 .PD
5656 (F) The regular expression pattern had too many occurrences
5657 of the specified modifier. Remove the extraneous ones.
5658 .IP "Regexp modifiers ""/%c"" and ""/%c"" are mutually exclusive" 4
5659 .IX Item "Regexp modifiers ""/%c"" and ""/%c"" are mutually exclusive"
5660 .PD 0
5661 .IP "Regexp modifiers ""%c"" and ""%c"" are mutually exclusive in regex; marked by <\-\-\ HERE in m/%s/" 4
5662 .IX Item "Regexp modifiers ""%c"" and ""%c"" are mutually exclusive in regex; marked by <-- HERE in m/%s/"
5663 .PD
5664 (F) The regular expression pattern had more than one of these
5665 mutually exclusive modifiers. Retain only the modifier that is
5666 supposed to be there.
5667 .IP "Regexp out of space in regex m/%s/" 4
5668 .IX Item "Regexp out of space in regex m/%s/"
5669 (P) A "can\*(Aqt happen" error, because \fBsafemalloc()\fR should have caught it
5670 earlier.
5671 .IP "Repeated format line will never terminate (~~ and @#)" 4
5672 .IX Item "Repeated format line will never terminate (~~ and @#)"
5673 (F) Your format contains the ~~ repeat\-until\-blank sequence and a
5674 numeric field that will never go blank so that the repetition never
5675 terminates. You might use ^# instead. See perlform.
5676 .IP "Replacement list is longer than search list" 4
5677 .IX Item "Replacement list is longer than search list"
5678 (W misc) You have used a replacement list that is longer than the
5679 search list. So the additional elements in the replacement list
5680 are meaningless.
5681 .ie n .IP "Required parameter \*(Aq%s\*(Aq is missing for %s constructor" 4
5682 .el .IP "Required parameter \*(Aq%s\*(Aq is missing for \f(CW%s\fR constructor" 4
5683 .IX Item "Required parameter '%s' is missing for %s constructor"
5684 (F) You called the constructor for a class that has a required named
5685 parameter, but did not pass that parameter at all.
5686 .IP "\*(Aq(*%s\*(Aq requires a terminating \*(Aq:\*(Aq in regex; marked by <\-\- HERE in m/%s/" 4
5687 .IX Item "'(*%s' requires a terminating ':' in regex; marked by <-- HERE in m/%s/"
5688 (F) You used a construct that needs a colon and pattern argument.
5689 Supply these or check that you are using the right construct.
5690 .IP "\*(Aq%s\*(Aq resolved to \*(Aq\eo{%s}%d\*(Aq" 4
5691 .IX Item "'%s' resolved to 'o{%s}%d'"
5692 As of Perl 5.32, this message is no longer generated. Instead, see
5693 "Non\-octal character \*(Aq%c\*(Aq terminates \eo early. Resolved as "%s"".
5694 (W misc, regexp) You wrote something like \f(CW\*(C`\e08\*(C'\fR, or \f(CW\*(C`\e179\*(C'\fR in a
5695 double\-quotish string. All but the last digit is treated as a single
5696 character, specified in octal. The last digit is the next character in
5697 the string. To tell Perl that this is indeed what you want, you can use
5698 the \f(CW\*(C`\eo{ }\*(C'\fR syntax, or use exactly three digits to specify the octal
5699 for the character.
5700 .ie n .IP "Reversed %s= operator" 4
5701 .el .IP "Reversed \f(CW%s\fR= operator" 4
5702 .IX Item "Reversed %s= operator"
5703 (W syntax) You wrote your assignment operator backwards. The = must
5704 always come last, to avoid ambiguity with subsequent unary operators.
5705 .ie n .IP "Scalars leaked: %d" 4
5706 .el .IP "Scalars leaked: \f(CW%d\fR" 4
5707 .IX Item "Scalars leaked: %d"
5708 (S internal) Something went wrong in Perl\*(Aqs internal bookkeeping
5709 of scalars: not all scalar variables were deallocated by the time
5710 Perl exited. What this usually indicates is a memory leak, which
5711 is of course bad, especially if the Perl program is intended to be
5712 long\-running.
5713 .IP "Scalar value @%s[%s] better written as $%s[%s]" 4
5714 .IX Item "Scalar value @%s[%s] better written as $%s[%s]"
5715 (W syntax) You\*(Aqve used an array slice (indicated by @) to select a
5716 single element of an array. Generally it\*(Aqs better to ask for a scalar
5717 value (indicated by $). The difference is that \f(CW$foo[&bar]\fR always
5718 behaves like a scalar, both when assigning to it and when evaluating its
5719 argument, while \f(CW@foo[&bar]\fR behaves like a list when you assign to it,
5720 and provides a list context to its subscript, which can do weird things
5721 if you\*(Aqre expecting only one subscript.
5722 .Sp
5723 On the other hand, if you were actually hoping to treat the array
5724 element as a list, you need to look into how references work, because
5725 Perl will not magically convert between scalars and lists for you. See
5726 perlref.
5727 .IP "Scalar value @%s{%s} better written as $%s{%s}" 4
5728 .IX Item "Scalar value @%s{%s} better written as $%s{%s}"
5729 (W syntax) You\*(Aqve used a hash slice (indicated by @) to select a single
5730 element of a hash. Generally it\*(Aqs better to ask for a scalar value
5731 (indicated by $). The difference is that \f(CW$foo{&bar}\fR always behaves
5732 like a scalar, both when assigning to it and when evaluating its
5733 argument, while \f(CW@foo{&bar}\fR behaves like a list when you assign to it,
5734 and provides a list context to its subscript, which can do weird things
5735 if you\*(Aqre expecting only one subscript.
5736 .Sp
5737 On the other hand, if you were actually hoping to treat the hash element
5738 as a list, you need to look into how references work, because Perl will
5739 not magically convert between scalars and lists for you. See
5740 perlref.
5741 .IP "Search pattern not terminated" 4
5742 .IX Item "Search pattern not terminated"
5743 (F) The lexer couldn\*(Aqt find the final delimiter of a // or m{}
5744 construct. Remember that bracketing delimiters count nesting level.
5745 Missing the leading \f(CW\*(C`$\*(C'\fR from a variable \f(CW$m\fR may cause this error.
5746 .Sp
5747 Note that since Perl 5.10.0 a // can also be the \fIdefined\-or\fR
5748 construct, not just the empty search pattern. Therefore code written
5749 in Perl 5.10.0 or later that uses the // as the \fIdefined\-or\fR can be
5750 misparsed by pre\-5.10.0 Perls as a non\-terminated search pattern.
5751 .IP "%\fBsseek()\fR on unopened filehandle" 4
5752 .IX Item "%sseek() on unopened filehandle"
5753 (W unopened) You tried to use the \fBseek()\fR or \fBsysseek()\fR function on a
5754 filehandle that was either never opened or has since been closed.
5755 .IP "select not implemented" 4
5756 .IX Item "select not implemented"
5757 (F) This machine doesn\*(Aqt implement the \fBselect()\fR system call.
5758 .IP "Self\-ties of arrays and hashes are not supported" 4
5759 .IX Item "Self-ties of arrays and hashes are not supported"
5760 (F) Self\-ties are of arrays and hashes are not supported in
5761 the current implementation.
5762 .IP "Semicolon seems to be missing" 4
5763 .IX Item "Semicolon seems to be missing"
5764 (W semicolon) A nearby syntax error was probably caused by a missing
5765 semicolon, or possibly some other missing operator, such as a comma.
5766 .IP "semi\-panic: attempt to dup freed string" 4
5767 .IX Item "semi-panic: attempt to dup freed string"
5768 (S internal) The internal \fBnewSVsv()\fR routine was called to duplicate a
5769 scalar that had previously been marked as free.
5770 .IP "sem%s not implemented" 4
5771 .IX Item "sem%s not implemented"
5772 (F) You don\*(Aqt have System V semaphore IPC on your system.
5773 .ie n .IP "\fBsend()\fR on closed socket %s" 4
5774 .el .IP "\fBsend()\fR on closed socket \f(CW%s\fR" 4
5775 .IX Item "send() on closed socket %s"
5776 (W closed) The socket you\*(Aqre sending to got itself closed sometime
5777 before now. Check your control flow.
5778 .IP "Sequence ""\ec{"" invalid" 4
5779 .IX Item "Sequence ""c{"" invalid"
5780 (F) These three characters may not appear in sequence in a
5781 double\-quotish context. This message is raised only on non\-ASCII
5782 platforms (a different error message is output on ASCII ones). If you
5783 were intending to specify a control character with this sequence, you\*(Aqll
5784 have to use a different way to specify it.
5785 .IP "Sequence (? incomplete in regex; marked by <\-\-\ HERE in m/%s/" 4
5786 .IX Item "Sequence (? incomplete in regex; marked by <-- HERE in m/%s/"
5787 (F) A regular expression ended with an incomplete extension (?. The
5788 <\-\-\ HERE shows whereabouts in the regular expression the problem was
5789 discovered. See perlre.
5790 .IP "Sequence (?%c...) not implemented in regex; marked by <\-\-\ HERE in m/%s/" 4
5791 .IX Item "Sequence (?%c...) not implemented in regex; marked by <-- HERE in m/%s/"
5792 (F) A proposed regular expression extension has the character reserved
5793 but has not yet been written. The <\-\-\ HERE shows whereabouts in the
5794 regular expression the problem was discovered. See perlre.
5795 .IP "Sequence (?%s...) not recognized in regex; marked by <\-\-\ HERE in m/%s/" 4
5796 .IX Item "Sequence (?%s...) not recognized in regex; marked by <-- HERE in m/%s/"
5797 (F) You used a regular expression extension that doesn\*(Aqt make sense.
5798 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
5799 discovered. This may happen when using the \f(CW\*(C`(?^...)\*(C'\fR construct to tell
5800 Perl to use the default regular expression modifiers, and you
5801 redundantly specify a default modifier. For other
5802 causes, see perlre.
5803 .IP "Sequence (?#... not terminated in regex m/%s/" 4
5804 .IX Item "Sequence (?#... not terminated in regex m/%s/"
5805 (F) A regular expression comment must be terminated by a closing
5806 parenthesis. Embedded parentheses aren\*(Aqt allowed. See
5807 perlre.
5808 .IP "Sequence (?&... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5809 .IX Item "Sequence (?&... not terminated in regex; marked by <-- HERE in m/%s/"
5810 (F) A named reference of the form \f(CW\*(C`(?&...)\*(C'\fR was missing the final
5811 closing parenthesis after the name. The <\-\-\ HERE shows whereabouts
5812 in the regular expression the problem was discovered.
5813 .IP "Sequence (?%c... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5814 .IX Item "Sequence (?%c... not terminated in regex; marked by <-- HERE in m/%s/"
5815 (F) A named group of the form \f(CW\*(C`(?\*(Aq...\*(Aq)\*(C'\fR or \f(CW\*(C`(?<...>)\*(C'\fR was missing the final
5816 closing quote or angle bracket. The <\-\-\ HERE shows whereabouts in the
5817 regular expression the problem was discovered.
5818 .IP "Sequence (%s... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5819 .IX Item "Sequence (%s... not terminated in regex; marked by <-- HERE in m/%s/"
5820 (F) A lookahead assertion \f(CW\*(C`(?=...)\*(C'\fR or \f(CW\*(C`(?!...)\*(C'\fR or lookbehind
5821 assertion \f(CW\*(C`(?<=...)\*(C'\fR or \f(CW\*(C`(?<!...)\*(C'\fR was missing the final
5822 closing parenthesis. The <\-\-\ HERE shows whereabouts in the
5823 regular expression the problem was discovered.
5824 .IP "Sequence (?(%c... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5825 .IX Item "Sequence (?(%c... not terminated in regex; marked by <-- HERE in m/%s/"
5826 (F) A named reference of the form \f(CW\*(C`(?(\*(Aq...\*(Aq)...)\*(C'\fR or \f(CW\*(C`(?(<...>)...)\*(C'\fR was
5827 missing the final closing quote or angle bracket after the name. The
5828 <\-\-\ HERE shows whereabouts in the regular expression the problem was
5829 discovered.
5830 .IP "Sequence (?... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5831 .IX Item "Sequence (?... not terminated in regex; marked by <-- HERE in m/%s/"
5832 (F) There was no matching closing parenthesis for the \*(Aq(\*(Aq. The
5833 <\-\-\ HERE shows whereabouts in the regular expression the problem was
5834 discovered.
5835 .IP "Sequence \e%s... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5836 .IX Item "Sequence %s... not terminated in regex; marked by <-- HERE in m/%s/"
5837 (F) The regular expression expects a mandatory argument following the escape
5838 sequence and this has been omitted or incorrectly written.
5839 .IP "Sequence (?{...}) not terminated with \*(Aq)\*(Aq" 4
5840 .IX Item "Sequence (?{...}) not terminated with ')'"
5841 (F) The end of the perl code contained within the {...} must be
5842 followed immediately by a \*(Aq)\*(Aq.
5843 .IP "Sequence (?P>... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5844 .IX Item "Sequence (?P>... not terminated in regex; marked by <-- HERE in m/%s/"
5845 (F) A named reference of the form \f(CW\*(C`(?P>...)\*(C'\fR was missing the final
5846 closing parenthesis after the name. The <\-\-\ HERE shows whereabouts
5847 in the regular expression the problem was discovered.
5848 .IP "Sequence (?P<... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5849 .IX Item "Sequence (?P<... not terminated in regex; marked by <-- HERE in m/%s/"
5850 (F) A named group of the form \f(CW\*(C`(?P<...>\*(Aq)\*(C'\fR was missing the final
5851 closing angle bracket. The <\-\-\ HERE shows whereabouts in the
5852 regular expression the problem was discovered.
5853 .IP "Sequence ?P=... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
5854 .IX Item "Sequence ?P=... not terminated in regex; marked by <-- HERE in m/%s/"
5855 (F) A named reference of the form \f(CW\*(C`(?P=...)\*(C'\fR was missing the final
5856 closing parenthesis after the name. The <\-\-\ HERE shows whereabouts
5857 in the regular expression the problem was discovered.
5858 .IP "Sequence (?R) not terminated in regex m/%s/" 4
5859 .IX Item "Sequence (?R) not terminated in regex m/%s/"
5860 (F) An \f(CW\*(C`(?R)\*(C'\fR or \f(CW\*(C`(?0)\*(C'\fR sequence in a regular expression was missing the
5861 final parenthesis.
5862 .IP "500 Server error" 4
5863 .IX Item "500 Server error"
5864 (A) This is the error message generally seen in a browser window
5865 when trying to run a CGI program (including SSI) over the web. The
5866 actual error text varies widely from server to server. The most
5867 frequently\-seen variants are "500 Server error", "Method (something)
5868 not permitted", "Document contains no data", "Premature end of script
5869 headers", and "Did not produce a valid header".
5870 .Sp
5871 \&\fBThis is a CGI error, not a Perl error\fR.
5872 .Sp
5873 You need to make sure your script is executable, is accessible by
5874 the user CGI is running the script under (which is probably not the
5875 user account you tested it under), does not rely on any environment
5876 variables (like PATH) from the user it isn\*(Aqt running under, and isn\*(Aqt
5877 in a location where the CGI server can\*(Aqt find it, basically, more or
5878 less. Please see the following for more information:
5879 .Sp
5880 .Vb 3
5881 \& https://www.perl.org/CGI_MetaFAQ.html
5882 \& http://www.htmlhelp.org/faq/cgifaq.html
5883 \& http://www.w3.org/Security/Faq/
5884 .Ve
5885 .Sp
5886 You should also look at perlfaq9.
5887 .IP "\fBsetegid()\fR not implemented" 4
5888 .IX Item "setegid() not implemented"
5889 (F) You tried to assign to \f(CW$)\fR, and your operating system doesn\*(Aqt
5890 support the \fBsetegid()\fR system call (or equivalent), or at least Configure
5891 didn\*(Aqt think so.
5892 .IP "\fBseteuid()\fR not implemented" 4
5893 .IX Item "seteuid() not implemented"
5894 (F) You tried to assign to \f(CW$>\fR, and your operating system doesn\*(Aqt
5895 support the \fBseteuid()\fR system call (or equivalent), or at least Configure
5896 didn\*(Aqt think so.
5897 .IP "setpgrp can\*(Aqt take arguments" 4
5898 .IX Item "setpgrp can't take arguments"
5899 (F) Your system has the \fBsetpgrp()\fR from BSD 4.2, which takes no
5900 arguments, unlike POSIX \fBsetpgid()\fR, which takes a process ID and process
5901 group ID.
5902 .IP "\fBsetrgid()\fR not implemented" 4
5903 .IX Item "setrgid() not implemented"
5904 (F) You tried to assign to \f(CW$(\fR, and your operating system doesn\*(Aqt
5905 support the \fBsetrgid()\fR system call (or equivalent), or at least Configure
5906 didn\*(Aqt think so.
5907 .IP "\fBsetruid()\fR not implemented" 4
5908 .IX Item "setruid() not implemented"
5909 (F) You tried to assign to \f(CW$<\fR, and your operating system doesn\*(Aqt
5910 support the \fBsetruid()\fR system call (or equivalent), or at least Configure
5911 didn\*(Aqt think so.
5912 .ie n .IP "\fBsetsockopt()\fR on closed socket %s" 4
5913 .el .IP "\fBsetsockopt()\fR on closed socket \f(CW%s\fR" 4
5914 .IX Item "setsockopt() on closed socket %s"
5915 (W closed) You tried to set a socket option on a closed socket. Did you
5916 forget to check the return value of your \fBsocket()\fR call? See
5917 "setsockopt" in perlfunc.
5918 .ie n .IP "Setting $/ to a reference to %s is forbidden" 4
5919 .el .IP "Setting $/ to a reference to \f(CW%s\fR is forbidden" 4
5920 .IX Item "Setting $/ to a reference to %s is forbidden"
5921 (F) You assigned a reference to a scalar to \f(CW$/\fR where the referenced item is
5922 not a positive integer. In older perls this \fBappeared\fR to work the same as
5923 setting it to \f(CW\*(C`undef\*(C'\fR but was in fact internally different, less efficient
5924 and with very bad luck could have resulted in your file being split by a
5925 stringified form of the reference.
5926 .Sp
5927 In Perl 5.20.0 this was changed so that it would be \fBexactly\fR the same as
5928 setting \f(CW$/\fR to undef, with the exception that this warning would be thrown.
5929 .Sp
5930 You are recommended to change your code to set \f(CW$/\fR to \f(CW\*(C`undef\*(C'\fR explicitly if
5931 you wish to slurp the file. As of Perl 5.28 assigning \f(CW$/\fR to a reference
5932 to an integer which isn\*(Aqt positive is a fatal error.
5933 .ie n .IP "Setting $/ to %s reference is forbidden" 4
5934 .el .IP "Setting $/ to \f(CW%s\fR reference is forbidden" 4
5935 .IX Item "Setting $/ to %s reference is forbidden"
5936 (F) You tried to assign a reference to a non integer to \f(CW$/\fR. In older
5937 Perls this would have behaved similarly to setting it to a reference to
5938 a positive integer, where the integer was the address of the reference.
5939 As of Perl 5.20.0 this is a fatal error, to allow future versions of Perl
5940 to use non\-integer refs for more interesting purposes.
5941 .IP "shm%s not implemented" 4
5942 .IX Item "shm%s not implemented"
5943 (F) You don\*(Aqt have System V shared memory IPC on your system.
5944 .IP "!=~ should be !~" 4
5945 .IX Item "!=~ should be !~"
5946 (W syntax) The non\-matching operator is !~, not !=~. !=~ will be
5947 interpreted as the != (numeric not equal) and ~ (1\*(Aqs complement)
5948 operators: probably not what you intended.
5949 .IP "/%s/ should probably be written as ""%s""" 4
5950 .IX Item "/%s/ should probably be written as ""%s"""
5951 (W syntax) You have used a pattern where Perl expected to find a string,
5952 as in the first argument to \f(CW\*(C`join\*(C'\fR. Perl will treat the true or false
5953 result of matching the pattern against \f(CW$_\fR as the string, which is
5954 probably not what you had in mind.
5955 .ie n .IP "\fBshutdown()\fR on closed socket %s" 4
5956 .el .IP "\fBshutdown()\fR on closed socket \f(CW%s\fR" 4
5957 .IX Item "shutdown() on closed socket %s"
5958 (W closed) You tried to do a shutdown on a closed socket. Seems a bit
5959 superfluous.
5960 .IP "SIG%s handler ""%s"" not defined" 4
5961 .IX Item "SIG%s handler ""%s"" not defined"
5962 (W signal) The signal handler named in \f(CW%SIG\fR doesn\*(Aqt, in fact, exist.
5963 Perhaps you put it into the wrong package?
5964 .ie n .IP "Slab leaked from cv %p" 4
5965 .el .IP "Slab leaked from cv \f(CW%p\fR" 4
5966 .IX Item "Slab leaked from cv %p"
5967 (S) If you see this message, then something is seriously wrong with the
5968 internal bookkeeping of op trees. An op tree needed to be freed after
5969 a compilation error, but could not be found, so it was leaked instead.
5970 .IP "sleep(%u) too large" 4
5971 .IX Item "sleep(%u) too large"
5972 (W overflow) You called \f(CW\*(C`sleep\*(C'\fR with a number that was larger than
5973 it can reliably handle and \f(CW\*(C`sleep\*(C'\fR probably slept for less time than
5974 requested.
5975 .IP "Slurpy parameter not last" 4
5976 .IX Item "Slurpy parameter not last"
5977 (F) In a subroutine signature, you put something after a slurpy (array or
5978 hash) parameter. The slurpy parameter takes all the available arguments,
5979 so there can\*(Aqt be any left to fill later parameters.
5980 .IP "Smart matching a non\-overloaded object breaks encapsulation" 4
5981 .IX Item "Smart matching a non-overloaded object breaks encapsulation"
5982 (F) You should not use the \f(CW\*(C`~~\*(C'\fR operator on an object that does not
5983 overload it: Perl refuses to use the object\*(Aqs underlying structure
5984 for the smart match.
5985 .IP "Sorry, hash keys must be smaller than 2**31 bytes" 4
5986 .IX Item "Sorry, hash keys must be smaller than 2**31 bytes"
5987 (F) You tried to create a hash containing a very large key, where "very
5988 large" means that it needs at least 2 gigabytes to store. Unfortunately,
5989 Perl doesn\*(Aqt yet handle such large hash keys. You should
5990 reconsider your design to avoid hashing such a long string directly.
5991 .IP "sort is now a reserved word" 4
5992 .IX Item "sort is now a reserved word"
5993 (F) An ancient error message that almost nobody ever runs into anymore.
5994 But before sort was a keyword, people sometimes used it as a filehandle.
5995 .IP "Source filters apply only to byte streams" 4
5996 .IX Item "Source filters apply only to byte streams"
5997 (F) You tried to activate a source filter (usually by loading a
5998 source filter module) within a string passed to \f(CW\*(C`eval\*(C'\fR. This is
5999 not permitted under the \f(CW\*(C`unicode_eval\*(C'\fR feature. Consider using
6000 \&\f(CW\*(C`evalbytes\*(C'\fR instead. See feature.
6001 .IP "\fBsplice()\fR offset past end of array" 4
6002 .IX Item "splice() offset past end of array"
6003 (W misc) You attempted to specify an offset that was past the end of
6004 the array passed to \fBsplice()\fR. Splicing will instead commence at the
6005 end of the array, rather than past it. If this isn\*(Aqt what you want,
6006 try explicitly pre\-extending the array by assigning $#array = \f(CW$offset\fR.
6007 See "splice" in perlfunc.
6008 .IP "Split loop" 4
6009 .IX Item "Split loop"
6010 (P) The split was looping infinitely. (Obviously, a split shouldn\*(Aqt
6011 iterate more times than there are characters of input, which is what
6012 happened.) See "split" in perlfunc.
6013 .IP "Statement unlikely to be reached" 4
6014 .IX Item "Statement unlikely to be reached"
6015 (W exec) You did an \fBexec()\fR with some statement after it other than a
6016 \&\fBdie()\fR. This is almost always an error, because \fBexec()\fR never returns
6017 unless there was a failure. You probably wanted to use \fBsystem()\fR
6018 instead, which does return. To suppress this warning, put the \fBexec()\fR in
6019 a block by itself.
6020 .ie n .IP """state"" subroutine %s can\*(Aqt be in a package" 4
6021 .el .IP """state"" subroutine \f(CW%s\fR can\*(Aqt be in a package" 4
6022 .IX Item """state"" subroutine %s can't be in a package"
6023 (F) Lexically scoped subroutines aren\*(Aqt in a package, so it doesn\*(Aqt make
6024 sense to try to declare one with a package qualifier on the front.
6025 .ie n .IP """state %s"" used in sort comparison" 4
6026 .el .IP """state \f(CW%s\fR"" used in sort comparison" 4
6027 .IX Item """state %s"" used in sort comparison"
6028 (W syntax) The package variables \f(CW$a\fR and \f(CW$b\fR are used for sort comparisons.
6029 You used \f(CW$a\fR or \f(CW$b\fR in as an operand to the \f(CW\*(C`<=>\*(C'\fR or \f(CW\*(C`cmp\*(C'\fR operator inside a
6030 sort comparison block, and the variable had earlier been declared as a
6031 lexical variable. Either qualify the sort variable with the package
6032 name, or rename the lexical variable.
6033 .ie n .IP """state"" variable %s can\*(Aqt be in a package" 4
6034 .el .IP """state"" variable \f(CW%s\fR can\*(Aqt be in a package" 4
6035 .IX Item """state"" variable %s can't be in a package"
6036 (F) Lexically scoped variables aren\*(Aqt in a package, so it doesn\*(Aqt make
6037 sense to try to declare one with a package qualifier on the front. Use
6038 \&\fBlocal()\fR if you want to localize a package variable.
6039 .ie n .IP "\fBstat()\fR on unopened filehandle %s" 4
6040 .el .IP "\fBstat()\fR on unopened filehandle \f(CW%s\fR" 4
6041 .IX Item "stat() on unopened filehandle %s"
6042 (W unopened) You tried to use the \fBstat()\fR function on a filehandle that
6043 was either never opened or has since been closed.
6044 .IP "Strings with code points over 0xFF may not be mapped into in\-memory file handles" 4
6045 .IX Item "Strings with code points over 0xFF may not be mapped into in-memory file handles"
6046 (W utf8) You tried to open a reference to a scalar for read or append
6047 where the scalar contained code points over 0xFF. In\-memory files
6048 model on\-disk files and can only contain bytes.
6049 .IP "Stub found while resolving method ""%s"" overloading ""%s"" in package ""%s""" 4
6050 .IX Item "Stub found while resolving method ""%s"" overloading ""%s"" in package ""%s"""
6051 (P) Overloading resolution over \f(CW@ISA\fR tree may be broken by importation
6052 stubs. Stubs should never be implicitly created, but explicit calls to
6053 \&\f(CW\*(C`can\*(C'\fR may break this.
6054 .IP "Subroutine attributes must come before the signature" 4
6055 .IX Item "Subroutine attributes must come before the signature"
6056 (F) When subroutine signatures are enabled, any subroutine attributes must
6057 come before the signature. Note that this order was the opposite in
6058 versions 5.22..5.26. So:
6059 .Sp
6060 .Vb 2
6061 \& sub foo :lvalue ($x, $y) { ... } # 5.20 and 5.28 +
6062 \& sub foo ($x, $y) :lvalue { ... } # 5.22 .. 5.26
6063 .Ve
6064 .IP "Subroutine ""&%s"" is not available" 4
6065 .IX Item "Subroutine ""&%s"" is not available"
6066 (W closure) During compilation, an inner named subroutine or eval is
6067 attempting to capture an outer lexical subroutine that is not currently
6068 available. This can happen for one of two reasons. First, the lexical
6069 subroutine may be declared in an outer anonymous subroutine that has
6070 not yet been created. (Remember that named subs are created at compile
6071 time, while anonymous subs are created at run\-time.) For example,
6072 .Sp
6073 .Vb 1
6074 \& sub { my sub a {...} sub f { \e&a } }
6075 .Ve
6076 .Sp
6077 At the time that f is created, it can\*(Aqt capture the current "a" sub,
6078 since the anonymous subroutine hasn\*(Aqt been created yet. Conversely, the
6079 following won\*(Aqt give a warning since the anonymous subroutine has by now
6080 been created and is live:
6081 .Sp
6082 .Vb 1
6083 \& sub { my sub a {...} eval \*(Aqsub f { \e&a }\*(Aq }\->();
6084 .Ve
6085 .Sp
6086 The second situation is caused by an eval accessing a lexical subroutine
6087 that has gone out of scope, for example,
6088 .Sp
6089 .Vb 5
6090 \& sub f {
6091 \& my sub a {...}
6092 \& sub { eval \*(Aq\e&a\*(Aq }
6093 \& }
6094 \& f()\->();
6095 .Ve
6096 .Sp
6097 Here, when the \*(Aq\e&a\*(Aq in the eval is being compiled, f() is not currently
6098 being executed, so its &a is not available for capture.
6099 .ie n .IP """%s"" subroutine &%s masks earlier declaration in same %s" 4
6100 .el .IP """%s"" subroutine &%s masks earlier declaration in same \f(CW%s\fR" 4
6101 .IX Item """%s"" subroutine &%s masks earlier declaration in same %s"
6102 (W shadow) A "my" or "state" subroutine has been redeclared in the
6103 current scope or statement, effectively eliminating all access to
6104 the previous instance. This is almost always a typographical error.
6105 Note that the earlier subroutine will still exist until the end of
6106 the scope or until all closure references to it are destroyed.
6107 .ie n .IP "Subroutine %s redefined" 4
6108 .el .IP "Subroutine \f(CW%s\fR redefined" 4
6109 .IX Item "Subroutine %s redefined"
6110 (W redefine) You redefined a subroutine. To suppress this warning, say
6111 .Sp
6112 .Vb 4
6113 \& {
6114 \& no warnings \*(Aqredefine\*(Aq;
6115 \& eval "sub name { ... }";
6116 \& }
6117 .Ve
6118 .IP "Subroutine ""%s"" will not stay shared" 4
6119 .IX Item "Subroutine ""%s"" will not stay shared"
6120 (W closure) An inner (nested) \fInamed\fR subroutine is referencing a "my"
6121 subroutine defined in an outer named subroutine.
6122 .Sp
6123 When the inner subroutine is called, it will see the value of the outer
6124 subroutine\*(Aqs lexical subroutine as it was before and during the *first*
6125 call to the outer subroutine; in this case, after the first call to the
6126 outer subroutine is complete, the inner and outer subroutines will no
6127 longer share a common value for the lexical subroutine. In other words,
6128 it will no longer be shared. This will especially make a difference
6129 if the lexical subroutines accesses lexical variables declared in its
6130 surrounding scope.
6131 .Sp
6132 This problem can usually be solved by making the inner subroutine
6133 anonymous, using the \f(CW\*(C`sub {}\*(C'\fR syntax. When inner anonymous subs that
6134 reference lexical subroutines in outer subroutines are created, they
6135 are automatically rebound to the current values of such lexical subs.
6136 .IP "Substitution loop" 4
6137 .IX Item "Substitution loop"
6138 (P) The substitution was looping infinitely. (Obviously, a substitution
6139 shouldn\*(Aqt iterate more times than there are characters of input, which
6140 is what happened.) See the discussion of substitution in
6141 "Regexp Quote\-Like Operators" in perlop.
6142 .IP "Substitution pattern not terminated" 4
6143 .IX Item "Substitution pattern not terminated"
6144 (F) The lexer couldn\*(Aqt find the interior delimiter of an s/// or s{}{}
6145 construct. Remember that bracketing delimiters count nesting level.
6146 Missing the leading \f(CW\*(C`$\*(C'\fR from variable \f(CW$s\fR may cause this error.
6147 .IP "Substitution replacement not terminated" 4
6148 .IX Item "Substitution replacement not terminated"
6149 (F) The lexer couldn\*(Aqt find the final delimiter of an s/// or s{}{}
6150 construct. Remember that bracketing delimiters count nesting level.
6151 Missing the leading \f(CW\*(C`$\*(C'\fR from variable \f(CW$s\fR may cause this error.
6152 .IP "substr outside of string" 4
6153 .IX Item "substr outside of string"
6154 (W substr)(F) You tried to reference a \fBsubstr()\fR that pointed outside of
6155 a string. That is, the absolute value of the offset was larger than the
6156 length of the string. See "substr" in perlfunc. This warning is fatal if
6157 substr is used in an lvalue context (as the left hand side of an
6158 assignment or as a subroutine argument for example).
6159 .ie n .IP "sv_upgrade from type %d down to type %d" 4
6160 .el .IP "sv_upgrade from type \f(CW%d\fR down to type \f(CW%d\fR" 4
6161 .IX Item "sv_upgrade from type %d down to type %d"
6162 (P) Perl tried to force the upgrade of an SV to a type which was actually
6163 inferior to its current type.
6164 .IP "Switch (?(condition)... contains too many branches in regex; marked by <\-\-\ HERE in m/%s/" 4
6165 .IX Item "Switch (?(condition)... contains too many branches in regex; marked by <-- HERE in m/%s/"
6166 (F) A (?(condition)if\-clause|else\-clause) construct can have at most
6167 two branches (the if\-clause and the else\-clause). If you want one or
6168 both to contain alternation, such as using \f(CW\*(C`this|that|other\*(C'\fR, enclose
6169 it in clustering parentheses:
6170 .Sp
6171 .Vb 1
6172 \& (?(condition)(?:this|that|other)|else\-clause)
6173 .Ve
6174 .Sp
6175 The <\-\-\ HERE shows whereabouts in the regular expression the problem
6176 was discovered. See perlre.
6177 .IP "Switch condition not recognized in regex; marked by <\-\-\ HERE in m/%s/" 4
6178 .IX Item "Switch condition not recognized in regex; marked by <-- HERE in m/%s/"
6179 (F) The condition part of a (?(condition)if\-clause|else\-clause) construct
6180 is not known. The condition must be one of the following:
6181 .Sp
6182 .Vb 9
6183 \& (1) (2) ... true if 1st, 2nd, etc., capture matched
6184 \& (<NAME>) (\*(AqNAME\*(Aq) true if named capture matched
6185 \& (?=...) (?<=...) true if subpattern matches
6186 \& (?!...) (?<!...) true if subpattern fails to match
6187 \& (?{ CODE }) true if code returns a true value
6188 \& (R) true if evaluating inside recursion
6189 \& (R1) (R2) ... true if directly inside capture group 1, 2, etc.
6190 \& (R&NAME) true if directly inside named capture
6191 \& (DEFINE) always false; for defining named subpatterns
6192 .Ve
6193 .Sp
6194 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
6195 discovered. See perlre.
6196 .IP "Switch (?(condition)... not terminated in regex; marked by <\-\-\ HERE in m/%s/" 4
6197 .IX Item "Switch (?(condition)... not terminated in regex; marked by <-- HERE in m/%s/"
6198 (F) You omitted to close a (?(condition)...) block somewhere
6199 in the pattern. Add a closing parenthesis in the appropriate
6200 position. See perlre.
6201 .ie n .IP "switching effective %s is not implemented" 4
6202 .el .IP "switching effective \f(CW%s\fR is not implemented" 4
6203 .IX Item "switching effective %s is not implemented"
6204 (F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, we cannot switch the real
6205 and effective uids or gids.
6206 .IP "syntax error" 4
6207 .IX Item "syntax error"
6208 (F) Probably means you had a syntax error. Common reasons include:
6209 .Sp
6210 .Vb 6
6211 \& A keyword is misspelled.
6212 \& A semicolon is missing.
6213 \& A comma is missing.
6214 \& An opening or closing parenthesis is missing.
6215 \& An opening or closing brace is missing.
6216 \& A closing quote is missing.
6217 .Ve
6218 .Sp
6219 Often there will be another error message associated with the syntax
6220 error giving more information. (Sometimes it helps to turn on \fB\-w\fR.)
6221 The error message itself often tells you where it was in the line when
6222 it decided to give up. Sometimes the actual error is several tokens
6223 before this, because Perl is good at understanding random input.
6224 Occasionally the line number may be misleading, and once in a blue moon
6225 the only way to figure out what\*(Aqs triggering the error is to call
6226 \&\f(CW\*(C`perl \-c\*(C'\fR repeatedly, chopping away half the program each time to see
6227 if the error went away. Sort of the cybernetic version of 20\ questions.
6228 .ie n .IP "syntax error at line %d: \*(Aq%s\*(Aq unexpected" 4
6229 .el .IP "syntax error at line \f(CW%d:\fR \*(Aq%s\*(Aq unexpected" 4
6230 .IX Item "syntax error at line %d: '%s' unexpected"
6231 (A) You\*(Aqve accidentally run your script through the Bourne shell instead
6232 of Perl. Check the #! line, or manually feed your script into Perl
6233 yourself.
6234 .ie n .IP "syntax error in file %s at line %d, next 2 tokens ""%s""" 4
6235 .el .IP "syntax error in file \f(CW%s\fR at line \f(CW%d\fR, next 2 tokens ""%s""" 4
6236 .IX Item "syntax error in file %s at line %d, next 2 tokens ""%s"""
6237 (F) This error is likely to occur if you run a perl5 script through
6238 a perl4 interpreter, especially if the next 2 tokens are "use strict"
6239 or "my \f(CW$var\fR" or "our \f(CW$var\fR".
6240 .IP "Syntax error in (?[...]) in regex; marked by <\-\- HERE in m/%s/" 4
6241 .IX Item "Syntax error in (?[...]) in regex; marked by <-- HERE in m/%s/"
6242 (F) Perl could not figure out what you meant inside this construct; this
6243 notifies you that it is giving up trying.
6244 .ie n .IP "%s syntax OK" 4
6245 .el .IP "\f(CW%s\fR syntax OK" 4
6246 .IX Item "%s syntax OK"
6247 (F) The final summary message when a \f(CW\*(C`perl \-c\*(C'\fR succeeds.
6248 .ie n .IP "\fBsysread()\fR on closed filehandle %s" 4
6249 .el .IP "\fBsysread()\fR on closed filehandle \f(CW%s\fR" 4
6250 .IX Item "sysread() on closed filehandle %s"
6251 (W closed) You tried to read from a closed filehandle.
6252 .ie n .IP "\fBsysread()\fR on unopened filehandle %s" 4
6253 .el .IP "\fBsysread()\fR on unopened filehandle \f(CW%s\fR" 4
6254 .IX Item "sysread() on unopened filehandle %s"
6255 (W unopened) You tried to read from a filehandle that was never opened.
6256 .ie n .IP "System V %s is not implemented on this machine" 4
6257 .el .IP "System V \f(CW%s\fR is not implemented on this machine" 4
6258 .IX Item "System V %s is not implemented on this machine"
6259 (F) You tried to do something with a function beginning with "sem",
6260 "shm", or "msg" but that System V IPC is not implemented in your
6261 machine. In some machines the functionality can exist but be
6262 unconfigured. Consult your system support.
6263 .ie n .IP "\fBsyswrite()\fR on closed filehandle %s" 4
6264 .el .IP "\fBsyswrite()\fR on closed filehandle \f(CW%s\fR" 4
6265 .IX Item "syswrite() on closed filehandle %s"
6266 (W closed) The filehandle you\*(Aqre writing to got itself closed sometime
6267 before now. Check your control flow.
6268 .ie n .IP """\-T"" and ""\-B"" not implemented on filehandles" 4
6269 .el .IP "\f(CW\-T\fR and \f(CW\-B\fR not implemented on filehandles" 4
6270 .IX Item "-T and -B not implemented on filehandles"
6271 (F) Perl can\*(Aqt peek at the stdio buffer of filehandles when it doesn\*(Aqt
6272 know about your kind of stdio. You\*(Aqll have to use a filename instead.
6273 .IP "Target of goto is too deeply nested" 4
6274 .IX Item "Target of goto is too deeply nested"
6275 (F) You tried to use \f(CW\*(C`goto\*(C'\fR to reach a label that was too deeply nested
6276 for Perl to reach. Perl is doing you a favor by refusing.
6277 .IP "\fBtell()\fR on unopened filehandle" 4
6278 .IX Item "tell() on unopened filehandle"
6279 (W unopened) You tried to use the \fBtell()\fR function on a filehandle that
6280 was either never opened or has since been closed.
6281 .IP "The \fBcrypt()\fR function is unimplemented due to excessive paranoia." 4
6282 .IX Item "The crypt() function is unimplemented due to excessive paranoia."
6283 (F) Configure couldn\*(Aqt find the \fBcrypt()\fR function on your machine,
6284 probably because your vendor didn\*(Aqt supply it, probably because they
6285 think the U.S. Government thinks it\*(Aqs a secret, or at least that they
6286 will continue to pretend that it is. And if you quote me on that, I
6287 will deny it.
6288 .IP "The experimental declared_refs feature is not enabled" 4
6289 .IX Item "The experimental declared_refs feature is not enabled"
6290 (F) To declare references to variables, as in \f(CW\*(C`my \e%x\*(C'\fR, you must first enable
6291 the feature:
6292 .Sp
6293 .Vb 2
6294 \& no warnings "experimental::declared_refs";
6295 \& use feature "declared_refs";
6296 .Ve
6297 .ie n .IP "The %s function is unimplemented" 4
6298 .el .IP "The \f(CW%s\fR function is unimplemented" 4
6299 .IX Item "The %s function is unimplemented"
6300 (F) The function indicated isn\*(Aqt implemented on this architecture,
6301 according to the probings of Configure.
6302 .IP "The private_use feature is experimental" 4
6303 .IX Item "The private_use feature is experimental"
6304 (S experimental::private_use) This feature is actually a hook for future
6305 use.
6306 .ie n .IP "The stat preceding %s wasn\*(Aqt an lstat" 4
6307 .el .IP "The stat preceding \f(CW%s\fR wasn\*(Aqt an lstat" 4
6308 .IX Item "The stat preceding %s wasn't an lstat"
6309 (F) It makes no sense to test the current stat buffer for symbolic
6310 linkhood if the last stat that wrote to the stat buffer already went
6311 past the symlink to get to the real file. Use an actual filename
6312 instead.
6313 .IP "The Unicode property wildcards feature is experimental" 4
6314 .IX Item "The Unicode property wildcards feature is experimental"
6315 (S experimental::uniprop_wildcards) This feature is experimental
6316 and its behavior may in any future release of perl. See
6317 "Wildcards in Property Values" in perlunicode.
6318 .IP "The \*(Aqunique\*(Aq attribute may only be applied to \*(Aqour\*(Aq variables" 4
6319 .IX Item "The 'unique' attribute may only be applied to 'our' variables"
6320 (F) This attribute was never supported on \f(CW\*(C`my\*(C'\fR or \f(CW\*(C`sub\*(C'\fR declarations.
6321 .IP "This Perl can\*(Aqt reset CRTL environ elements (%s)" 4
6322 .IX Item "This Perl can't reset CRTL environ elements (%s)"
6323 .PD 0
6324 .IP "This Perl can\*(Aqt set CRTL environ elements (%s=%s)" 4
6325 .IX Item "This Perl can't set CRTL environ elements (%s=%s)"
6326 .PD
6327 (W internal) Warnings peculiar to VMS. You tried to change or delete an
6328 element of the CRTL\*(Aqs internal environ array, but your copy of Perl
6329 wasn\*(Aqt built with a CRTL that contained the \fBsetenv()\fR function. You\*(Aqll
6330 need to rebuild Perl with a CRTL that does, or redefine
6331 \&\fIPERL_ENV_TABLES\fR (see perlvms) so that the environ array isn\*(Aqt the
6332 target of the change to
6333 \&\f(CW%ENV\fR which produced the warning.
6334 .IP "This Perl has not been built with support for randomized hash key traversal but something called \fBPerl_hv_rand_set()\fR." 4
6335 .IX Item "This Perl has not been built with support for randomized hash key traversal but something called Perl_hv_rand_set()."
6336 (F) Something has attempted to use an internal API call which
6337 depends on Perl being compiled with the default support for randomized hash
6338 key traversal, but this Perl has been compiled without it. You should
6339 report this warning to the relevant upstream party, or recompile perl
6340 with default options.
6341 .IP "This use of \fBmy()\fR in false conditional is no longer allowed" 4
6342 .IX Item "This use of my() in false conditional is no longer allowed"
6343 (F) You used a declaration similar to \f(CW\*(C`my $x if 0\*(C'\fR. There
6344 has been a long\-standing bug in Perl that causes a lexical variable
6345 not to be cleared at scope exit when its declaration includes a false
6346 conditional. Some people have exploited this bug to achieve a kind of
6347 static variable. Since we intend to fix this bug, we don\*(Aqt want people
6348 relying on this behavior. You can achieve a similar static effect by
6349 declaring the variable in a separate block outside the function, eg
6350 .Sp
6351 .Vb 1
6352 \& sub f { my $x if 0; return $x++ }
6353 .Ve
6354 .Sp
6355 becomes
6356 .Sp
6357 .Vb 1
6358 \& { my $x; sub f { return $x++ } }
6359 .Ve
6360 .Sp
6361 Beginning with perl 5.10.0, you can also use \f(CW\*(C`state\*(C'\fR variables to have
6362 lexicals that are initialized only once (see feature):
6363 .Sp
6364 .Vb 1
6365 \& sub f { state $x; return $x++ }
6366 .Ve
6367 .Sp
6368 This use of \f(CWmy()\fR in a false conditional was deprecated beginning in
6369 Perl 5.10 and became a fatal error in Perl 5.30.
6370 .IP "Timeout waiting for another thread to define \ep{%s}" 4
6371 .IX Item "Timeout waiting for another thread to define p{%s}"
6372 (F) The first time a user\-defined property
6373 ("User\-Defined Character Properties" in perlunicode) is used, its
6374 definition is looked up and converted into an internal form for more
6375 efficient handling in subsequent uses. There could be a race if two or
6376 more threads tried to do this processing nearly simultaneously.
6377 Instead, a critical section is created around this task, locking out all
6378 but one thread from doing it. This message indicates that the thread
6379 that is doing the conversion is taking an unexpectedly long time. The
6380 timeout exists solely to prevent deadlock; it\*(Aqs long enough that the
6381 system was likely thrashing and about to crash. There is no real remedy but
6382 rebooting.
6383 .IP "times not implemented" 4
6384 .IX Item "times not implemented"
6385 (F) Your version of the C library apparently doesn\*(Aqt do \fBtimes()\fR. I
6386 suspect you\*(Aqre not running on Unix.
6387 .IP """\-T"" is on the #! line, it must also be used on the command line" 4
6388 .IX Item """-T"" is on the #! line, it must also be used on the command line"
6389 (X) The #! line (or local equivalent) in a Perl script contains
6390 the \fB\-T\fR option (or the \fB\-t\fR option), but Perl was not invoked with
6391 \&\fB\-T\fR in its command line. This is an error because, by the time
6392 Perl discovers a \fB\-T\fR in a script, it\*(Aqs too late to properly taint
6393 everything from the environment. So Perl gives up.
6394 .Sp
6395 If the Perl script is being executed as a command using the #!
6396 mechanism (or its local equivalent), this error can usually be
6397 fixed by editing the #! line so that the \fB\-%c\fR option is a part of
6398 Perl\*(Aqs first argument: e.g. change \f(CW\*(C`perl \-n \-%c\*(C'\fR to \f(CW\*(C`perl \-%c \-n\*(C'\fR.
6399 .Sp
6400 If the Perl script is being executed as \f(CW\*(C`perl scriptname\*(C'\fR, then the
6401 \&\fB\-%c\fR option must appear on the command line: \f(CW\*(C`perl \-%c scriptname\*(C'\fR.
6402 .IP "To%s: illegal mapping \*(Aq%s\*(Aq" 4
6403 .IX Item "To%s: illegal mapping '%s'"
6404 (F) You tried to define a customized To\-mapping for \fBlc()\fR, lcfirst,
6405 \&\fBuc()\fR, or \fBucfirst()\fR (or their string\-inlined versions), but you
6406 specified an illegal mapping.
6407 See "User\-Defined Character Properties" in perlunicode.
6408 .IP "Too deeply nested ()\-groups" 4
6409 .IX Item "Too deeply nested ()-groups"
6410 (F) Your template contains ()\-groups with a ridiculously deep nesting level.
6411 .IP "Too few args to syscall" 4
6412 .IX Item "Too few args to syscall"
6413 (F) There has to be at least one argument to \fBsyscall()\fR to specify the
6414 system call to call, silly dilly.
6415 .ie n .IP "Too few arguments for subroutine \*(Aq%s\*(Aq (got %d; expected %d)" 4
6416 .el .IP "Too few arguments for subroutine \*(Aq%s\*(Aq (got \f(CW%d\fR; expected \f(CW%d\fR)" 4
6417 .IX Item "Too few arguments for subroutine '%s' (got %d; expected %d)"
6418 (F) A subroutine using a signature fewer arguments than required by the
6419 signature. The caller of the subroutine is presumably at fault.
6420 .Sp
6421 The message attempts to include the name of the called subroutine. If
6422 the subroutine has been aliased, the subroutine\*(Aqs original name will be
6423 shown, regardless of what name the caller used. It will also indicate the
6424 number of arguments given and the number expected.
6425 .ie n .IP "Too few arguments for subroutine \*(Aq%s\*(Aq (got %d; expected at least %d)" 4
6426 .el .IP "Too few arguments for subroutine \*(Aq%s\*(Aq (got \f(CW%d\fR; expected at least \f(CW%d\fR)" 4
6427 .IX Item "Too few arguments for subroutine '%s' (got %d; expected at least %d)"
6428 Similar to the previous message but for subroutines that accept a variable
6429 number of arguments.
6430 .IP "Too late for ""\-%s"" option" 4
6431 .IX Item "Too late for ""-%s"" option"
6432 (X) The #! line (or local equivalent) in a Perl script contains the
6433 \&\fB\-M\fR, \fB\-m\fR or \fB\-C\fR option.
6434 .Sp
6435 In the case of \fB\-M\fR and \fB\-m\fR, this is an error because those options
6436 are not intended for use inside scripts. Use the \f(CW\*(C`use\*(C'\fR pragma instead.
6437 .Sp
6438 The \fB\-C\fR option only works if it is specified on the command line as
6439 well (with the same sequence of letters or numbers following). Either
6440 specify this option on the command line, or, if your system supports
6441 it, make your script executable and run it directly instead of passing
6442 it to perl.
6443 .ie n .IP "Too late to run %s block" 4
6444 .el .IP "Too late to run \f(CW%s\fR block" 4
6445 .IX Item "Too late to run %s block"
6446 (W void) A CHECK or INIT block is being defined during run time proper,
6447 when the opportunity to run them has already passed. Perhaps you are
6448 loading a file with \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR when you should be using \f(CW\*(C`use\*(C'\fR
6449 instead. Or perhaps you should put the \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR inside a
6450 BEGIN block.
6451 .IP "Too many args to syscall" 4
6452 .IX Item "Too many args to syscall"
6453 (F) Perl supports a maximum of only 14 args to \fBsyscall()\fR.
6454 .ie n .IP "Too many arguments for %s" 4
6455 .el .IP "Too many arguments for \f(CW%s\fR" 4
6456 .IX Item "Too many arguments for %s"
6457 (F) The function requires fewer arguments than you specified.
6458 .ie n .IP "Too many arguments for subroutine \*(Aq%s\*(Aq (got %d; expected %d)" 4
6459 .el .IP "Too many arguments for subroutine \*(Aq%s\*(Aq (got \f(CW%d\fR; expected \f(CW%d\fR)" 4
6460 .IX Item "Too many arguments for subroutine '%s' (got %d; expected %d)"
6461 (F) A subroutine using a signature received more arguments than permitted
6462 by the signature. The caller of the subroutine is presumably at fault.
6463 .Sp
6464 The message attempts to include the name of the called subroutine. If the
6465 subroutine has been aliased, the subroutine\*(Aqs original name will be shown,
6466 regardless of what name the caller used. It will also indicate the number
6467 of arguments given and the number expected.
6468 .ie n .IP "Too many arguments for subroutine \*(Aq%s\*(Aq (got %d; expected at most %d)" 4
6469 .el .IP "Too many arguments for subroutine \*(Aq%s\*(Aq (got \f(CW%d\fR; expected at most \f(CW%d\fR)" 4
6470 .IX Item "Too many arguments for subroutine '%s' (got %d; expected at most %d)"
6471 Similar to the previous message but for subroutines that accept a variable
6472 number of arguments.
6473 .IP "Too many nested open parens in regex; marked by <\-\- HERE in m/%s/" 4
6474 .IX Item "Too many nested open parens in regex; marked by <-- HERE in m/%s/"
6475 (F) You have exceeded the number of open \f(CW"("\fR parentheses that haven\*(Aqt
6476 been matched by corresponding closing ones. This limit prevents eating
6477 up too much memory. It is initially set to 1000, but may be changed by
6478 setting \f(CW\*(C`${^RE_COMPILE_RECURSION_LIMIT}\*(C'\fR to some other value. This may
6479 need to be done in a BEGIN block before the regular expression pattern
6480 is compiled.
6481 .ie n .IP "Too many nested BEGIN blocks, maximum of %d allowed" 4
6482 .el .IP "Too many nested BEGIN blocks, maximum of \f(CW%d\fR allowed" 4
6483 .IX Item "Too many nested BEGIN blocks, maximum of %d allowed"
6484 (F) You have executed code that nests too many BEGIN blocks inside of
6485 each other, either explicitly as BEGIN{} or implicitly as use statements.
6486 This limit defaults to a rather high number which should not be exceeded
6487 in normal circumstances, and triggering likely indicates something is
6488 very wrong in your code. For instance infinite recursion of eval and
6489 BEGIN blocks is known to trigger this error.
6490 .Sp
6491 If you know that you have good reason to exceed the limit you can change
6492 it by setting \f(CW\*(C`${^MAX_NESTED_EVAL_BEGIN_BLOCKS}\*(C'\fR to a different value from
6493 the default of 1000.
6494 .ie n .IP "Too many capture groups (limit is %d) in regex m/%s/" 4
6495 .el .IP "Too many capture groups (limit is \f(CW%d\fR) in regex m/%s/" 4
6496 .IX Item "Too many capture groups (limit is %d) in regex m/%s/"
6497 (F) You have too many capture groups in your regex pattern. You need to rework
6498 your pattern to use less capture groups.
6499 .IP "Too many )\*(Aqs" 4
6500 .IX Item "Too many )'s"
6501 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead of Perl.
6502 Check the #! line, or manually feed your script into Perl yourself.
6503 .IP "Too many (\*(Aqs" 4
6504 .IX Item "Too many ('s"
6505 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead of Perl.
6506 Check the #! line, or manually feed your script into Perl yourself.
6507 .IP "Trailing \e in regex m/%s/" 4
6508 .IX Item "Trailing in regex m/%s/"
6509 (F) The regular expression ends with an unbackslashed backslash.
6510 Backslash it. See perlre.
6511 .IP "Transliteration pattern not terminated" 4
6512 .IX Item "Transliteration pattern not terminated"
6513 (F) The lexer couldn\*(Aqt find the interior delimiter of a tr/// or tr[][]
6514 or y/// or y[][] construct. Missing the leading \f(CW\*(C`$\*(C'\fR from variables
6515 \&\f(CW$tr\fR or \f(CW$y\fR may cause this error.
6516 .IP "Transliteration replacement not terminated" 4
6517 .IX Item "Transliteration replacement not terminated"
6518 (F) The lexer couldn\*(Aqt find the final delimiter of a tr///, tr[][],
6519 y/// or y[][] construct.
6520 .ie n .IP "Treating %s::INIT block as BEGIN block as workaround" 4
6521 .el .IP "Treating \f(CW%s::INIT\fR block as BEGIN block as workaround" 4
6522 .IX Item "Treating %s::INIT block as BEGIN block as workaround"
6523 (S) A package is using an old version of \f(CW\*(C`Module::Install::DSL\*(C'\fR to
6524 install, which makes unsafe assumptions about when INIT blocks will be
6525 called. Because \f(CW\*(C`Module::Install::DSL\*(C'\fR is used to install other modules
6526 and is difficult to upgrade we have a special workaround in place to
6527 deal with this. Unless you are a maintainer of an affected module you
6528 can ignore this warning. We emit it only as a sanity check.
6529 .IP "\*(Aq%s\*(Aq trapped by operation mask" 4
6530 .IX Item "'%s' trapped by operation mask"
6531 (F) You tried to use an operator from a Safe compartment in which it\*(Aqs
6532 disallowed. See Safe.
6533 .IP "truncate not implemented" 4
6534 .IX Item "truncate not implemented"
6535 (F) Your machine doesn\*(Aqt implement a file truncation mechanism that
6536 Configure knows about.
6537 .IP "try/catch/finally is experimental" 4
6538 .IX Item "try/catch/finally is experimental"
6539 (S experimental::try) This warning is emitted if you use the \f(CW\*(C`try\*(C'\fR and
6540 \&\f(CW\*(C`catch\*(C'\fR syntax with a \f(CW\*(C`finally\*(C'\fR block. This syntax is currently experimental
6541 and its behaviour may change in future releases of Perl.
6542 .ie n .IP "Type of arg %d to &CORE::%s must be %s" 4
6543 .el .IP "Type of arg \f(CW%d\fR to &CORE::%s must be \f(CW%s\fR" 4
6544 .IX Item "Type of arg %d to &CORE::%s must be %s"
6545 (F) The subroutine in question in the CORE package requires its argument
6546 to be a hard reference to data of the specified type. Overloading is
6547 ignored, so a reference to an object that is not the specified type, but
6548 nonetheless has overloading to handle it, will still not be accepted.
6549 .ie n .IP "Type of arg %d to %s must be %s (not %s)" 4
6550 .el .IP "Type of arg \f(CW%d\fR to \f(CW%s\fR must be \f(CW%s\fR (not \f(CW%s\fR)" 4
6551 .IX Item "Type of arg %d to %s must be %s (not %s)"
6552 (F) This function requires the argument in that position to be of a
6553 certain type. Arrays must be \f(CW@NAME\fR or \f(CW\*(C`@{EXPR}\*(C'\fR. Hashes must be
6554 \&\f(CW%NAME\fR or \f(CW\*(C`%{EXPR}\*(C'\fR. No implicit dereferencing is allowed\-\-use the
6555 {EXPR} forms as an explicit dereference. See perlref.
6556 .IP "umask not implemented" 4
6557 .IX Item "umask not implemented"
6558 (F) Your machine doesn\*(Aqt implement the umask function and you tried to
6559 use it to restrict permissions for yourself (EXPR & 0700).
6560 .IP "UNIVERSAL does not export anything" 4
6561 .IX Item "UNIVERSAL does not export anything"
6562 (F) You asked UNIVERSAL to export something, but UNIVERSAL is the
6563 base class for all classes and contains no exportable symbols.
6564 .ie n .IP "Unbalanced context: %d more PUSHes than POPs" 4
6565 .el .IP "Unbalanced context: \f(CW%d\fR more PUSHes than POPs" 4
6566 .IX Item "Unbalanced context: %d more PUSHes than POPs"
6567 (S internal) The exit code detected an internal inconsistency in how
6568 many execution contexts were entered and left.
6569 .ie n .IP "Unbalanced saves: %d more saves than restores" 4
6570 .el .IP "Unbalanced saves: \f(CW%d\fR more saves than restores" 4
6571 .IX Item "Unbalanced saves: %d more saves than restores"
6572 (S internal) The exit code detected an internal inconsistency in how
6573 many values were temporarily localized.
6574 .ie n .IP "Unbalanced scopes: %d more ENTERs than LEAVEs" 4
6575 .el .IP "Unbalanced scopes: \f(CW%d\fR more ENTERs than LEAVEs" 4
6576 .IX Item "Unbalanced scopes: %d more ENTERs than LEAVEs"
6577 (S internal) The exit code detected an internal inconsistency in how
6578 many blocks were entered and left.
6579 .IP "Unbalanced string table refcount: (%d) for ""%s""" 4
6580 .IX Item "Unbalanced string table refcount: (%d) for ""%s"""
6581 (S internal) On exit, Perl found some strings remaining in the shared
6582 string table used for copy on write and for hash keys. The entries
6583 should have been freed, so this indicates a bug somewhere.
6584 .ie n .IP "Unbalanced tmps: %d more allocs than frees" 4
6585 .el .IP "Unbalanced tmps: \f(CW%d\fR more allocs than frees" 4
6586 .IX Item "Unbalanced tmps: %d more allocs than frees"
6587 (S internal) The exit code detected an internal inconsistency in how
6588 many mortal scalars were allocated and freed.
6589 .IP "Undefined format ""%s"" called" 4
6590 .IX Item "Undefined format ""%s"" called"
6591 (F) The format indicated doesn\*(Aqt seem to exist. Perhaps it\*(Aqs really in
6592 another package? See perlform.
6593 .IP "Undefined sort subroutine ""%s"" called" 4
6594 .IX Item "Undefined sort subroutine ""%s"" called"
6595 (F) The sort comparison routine specified doesn\*(Aqt seem to exist.
6596 Perhaps it\*(Aqs in a different package? See "sort" in perlfunc.
6597 .IP "Undefined subroutine &%s called" 4
6598 .IX Item "Undefined subroutine &%s called"
6599 (F) The subroutine indicated hasn\*(Aqt been defined, or if it was, it has
6600 since been undefined.
6601 .IP "Undefined subroutine &%s called, close to label \*(Aq%s\*(Aq" 4
6602 .IX Item "Undefined subroutine &%s called, close to label '%s'"
6603 (F) The subroutine indicated hasn\*(Aqt been defined, or if it was, it has
6604 since been undefined.
6605 .Sp
6606 This error could also indicate a mistyped package separator, when a
6607 single colon was typed instead of two colons. For example, \f(CWFoo:bar()\fR
6608 would be parsed as the label \f(CW\*(C`Foo\*(C'\fR followed by an unqualified function
6609 name: \f(CW\*(C`foo: bar()\*(C'\fR.
6610 .IP "Undefined subroutine called" 4
6611 .IX Item "Undefined subroutine called"
6612 (F) The anonymous subroutine you\*(Aqre trying to call hasn\*(Aqt been defined,
6613 or if it was, it has since been undefined.
6614 .IP "Undefined subroutine in sort" 4
6615 .IX Item "Undefined subroutine in sort"
6616 (F) The sort comparison routine specified is declared but doesn\*(Aqt seem
6617 to have been defined yet. See "sort" in perlfunc.
6618 .IP "Undefined top format ""%s"" called" 4
6619 .IX Item "Undefined top format ""%s"" called"
6620 (F) The format indicated doesn\*(Aqt seem to exist. Perhaps it\*(Aqs really in
6621 another package? See perlform.
6622 .IP "Undefined value assigned to typeglob" 4
6623 .IX Item "Undefined value assigned to typeglob"
6624 (W misc) An undefined value was assigned to a typeglob, a la
6625 \&\f(CW\*(C`*foo = undef\*(C'\fR. This does nothing. It\*(Aqs possible that you really mean
6626 \&\f(CW\*(C`undef *foo\*(C'\fR.
6627 .ie n .IP "%s: Undefined variable" 4
6628 .el .IP "\f(CW%s:\fR Undefined variable" 4
6629 .IX Item "%s: Undefined variable"
6630 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead of Perl.
6631 Check the #! line, or manually feed your script into Perl yourself.
6632 .IP "Unescaped left brace in regex is illegal here in regex; marked by <\-\-\ HERE in m/%s/" 4
6633 .IX Item "Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/%s/"
6634 (F) The simple rule to remember, if you want to
6635 match a literal \f(CW"{"\fR character (U+007B \f(CW\*(C`LEFT CURLY BRACKET\*(C'\fR) in a
6636 regular expression pattern, is to escape each literal instance of it in
6637 some way. Generally easiest is to precede it with a backslash, like
6638 \&\f(CW"\e{"\fR or enclose it in square brackets (\f(CW"[{]"\fR). If the pattern
6639 delimiters are also braces, any matching right brace (\f(CW"}"\fR) should
6640 also be escaped to avoid confusing the parser, for example,
6641 .Sp
6642 .Vb 1
6643 \& qr{abc\e{def\e}ghi}
6644 .Ve
6645 .Sp
6646 Forcing literal \f(CW"{"\fR characters to be escaped enables the Perl
6647 language to be extended in various ways in future releases. To avoid
6648 needlessly breaking existing code, the restriction is not enforced in
6649 contexts where there are unlikely to ever be extensions that could
6650 conflict with the use there of \f(CW"{"\fR as a literal. Those that are
6651 not potentially ambiguous do not warn; those that are do raise a
6652 non\-deprecation warning.
6653 .Sp
6654 The contexts where no warnings or errors are raised are:
6655 .RS 4
6656 .IP \(bu 4
6657 as the first character in a pattern, or following \f(CW"^"\fR indicating to
6658 anchor the match to the beginning of a line.
6659 .IP \(bu 4
6660 as the first character following a \f(CW"|"\fR indicating alternation.
6661 .IP \(bu 4
6662 as the first character in a parenthesized grouping like
6663 .Sp
6664 .Vb 2
6665 \& /foo({bar)/
6666 \& /foo(?:{bar)/
6667 .Ve
6668 .IP \(bu 4
6669 as the first character following a quantifier
6670 .Sp
6671 .Vb 1
6672 \& /\es*{/
6673 .Ve
6674 .RE
6675 .RS 4
6676 .RE
6677 .IP "Unescaped left brace in regex is passed through in regex; marked by <\-\-\ HERE in m/%s/" 4
6678 .IX Item "Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/%s/"
6679 (W regexp) The simple rule to remember, if you want to
6680 match a literal \f(CW"{"\fR character (U+007B \f(CW\*(C`LEFT CURLY BRACKET\*(C'\fR) in a
6681 regular expression pattern, is to escape each literal instance of it in
6682 some way. Generally easiest is to precede it with a backslash, like
6683 \&\f(CW"\e{"\fR or enclose it in square brackets (\f(CW"[{]"\fR). If the pattern
6684 delimiters are also braces, any matching right brace (\f(CW"}"\fR) should
6685 also be escaped to avoid confusing the parser, for example,
6686 .Sp
6687 .Vb 1
6688 \& qr{abc\e{def\e}ghi}
6689 .Ve
6690 .Sp
6691 Forcing literal \f(CW"{"\fR characters to be escaped enables the Perl
6692 language to be extended in various ways in future releases. To avoid
6693 needlessly breaking existing code, the restriction is not enforced in
6694 contexts where there are unlikely to ever be extensions that could
6695 conflict with the use there of \f(CW"{"\fR as a literal. Those that are
6696 not potentially ambiguous do not warn; those that are raise this
6697 warning. This makes sure that an inadvertent typo doesn\*(Aqt silently
6698 cause the pattern to compile to something unintended.
6699 .Sp
6700 The contexts where no warnings or errors are raised are:
6701 .RS 4
6702 .IP \(bu 4
6703 as the first character in a pattern, or following \f(CW"^"\fR indicating to
6704 anchor the match to the beginning of a line.
6705 .IP \(bu 4
6706 as the first character following a \f(CW"|"\fR indicating alternation.
6707 .IP \(bu 4
6708 as the first character in a parenthesized grouping like
6709 .Sp
6710 .Vb 2
6711 \& /foo({bar)/
6712 \& /foo(?:{bar)/
6713 .Ve
6714 .IP \(bu 4
6715 as the first character following a quantifier
6716 .Sp
6717 .Vb 1
6718 \& /\es*{/
6719 .Ve
6720 .RE
6721 .RS 4
6722 .RE
6723 .IP "Unescaped literal \*(Aq%c\*(Aq in regex; marked by <\-\- HERE in m/%s/" 4
6724 .IX Item "Unescaped literal '%c' in regex; marked by <-- HERE in m/%s/"
6725 (W regexp) (only under \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR)
6726 .Sp
6727 Within the scope of \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR in a regular expression
6728 pattern, you included an unescaped \f(CW\*(C`}\*(C'\fR or \f(CW\*(C`]\*(C'\fR which was interpreted
6729 literally. These two characters are sometimes metacharacters, and
6730 sometimes literals, depending on what precedes them in the
6731 pattern. This is unlike the similar \f(CW\*(C`)\*(C'\fR which is always a
6732 metacharacter unless escaped.
6733 .Sp
6734 This action at a distance, perhaps a large distance, can lead to Perl
6735 silently misinterpreting what you meant, so when you specify that you
6736 want extra checking by \f(CW\*(C`use\ re\ \*(Aqstrict\*(Aq\*(C'\fR, this warning is generated.
6737 If you meant the character as a literal, simply confirm that to Perl by
6738 preceding the character with a backslash, or make it into a bracketed
6739 character class (like \f(CW\*(C`[}]\*(C'\fR). If you meant it as closing a
6740 corresponding \f(CW\*(C`[\*(C'\fR or \f(CW\*(C`{\*(C'\fR, you\*(Aqll need to look back through the pattern
6741 to find out why that isn\*(Aqt happening.
6742 .ie n .IP "unexec of %s into %s failed!" 4
6743 .el .IP "unexec of \f(CW%s\fR into \f(CW%s\fR failed!" 4
6744 .IX Item "unexec of %s into %s failed!"
6745 (F) The \fBunexec()\fR routine failed for some reason. See your local FSF
6746 representative, who probably put it there in the first place.
6747 .IP "Unexpected binary operator \*(Aq%c\*(Aq with no preceding operand in regex; marked by <\-\-\ HERE in m/%s/" 4
6748 .IX Item "Unexpected binary operator '%c' with no preceding operand in regex; marked by <-- HERE in m/%s/"
6749 (F) You had something like this:
6750 .Sp
6751 .Vb 1
6752 \& (?[ | \ep{Digit} ])
6753 .Ve
6754 .Sp
6755 where the \f(CW"|"\fR is a binary operator with an operand on the right, but
6756 no operand on the left.
6757 .IP "Unexpected character in regex; marked by <\-\-\ HERE in m/%s/" 4
6758 .IX Item "Unexpected character in regex; marked by <-- HERE in m/%s/"
6759 (F) You had something like this:
6760 .Sp
6761 .Vb 1
6762 \& (?[ z ])
6763 .Ve
6764 .Sp
6765 Within \f(CW\*(C`(?[ ])\*(C'\fR, no literal characters are allowed unless they are
6766 within an inner pair of square brackets, like
6767 .Sp
6768 .Vb 1
6769 \& (?[ [ z ] ])
6770 .Ve
6771 .Sp
6772 Another possibility is that you forgot a backslash. Perl isn\*(Aqt smart
6773 enough to figure out what you really meant.
6774 .ie n .IP "Unexpected characters while parsing class :isa attribute: %s" 4
6775 .el .IP "Unexpected characters while parsing class :isa attribute: \f(CW%s\fR" 4
6776 .IX Item "Unexpected characters while parsing class :isa attribute: %s"
6777 (F) You tried to specify something other than a single class name with an
6778 optional trailing version number as the value for a \f(CW\*(C`class\*(C'\fR \f(CW\*(C`:isa\*(C'\fR
6779 attribute. This confused the parser.
6780 .ie n .IP "Unexpected exit %u" 4
6781 .el .IP "Unexpected exit \f(CW%u\fR" 4
6782 .IX Item "Unexpected exit %u"
6783 (S) \fBexit()\fR was called or the script otherwise finished gracefully when
6784 \&\f(CW\*(C`PERL_EXIT_WARN\*(C'\fR was set in \f(CW\*(C`PL_exit_flags\*(C'\fR.
6785 .ie n .IP "Unexpected exit failure %d" 4
6786 .el .IP "Unexpected exit failure \f(CW%d\fR" 4
6787 .IX Item "Unexpected exit failure %d"
6788 (S) An uncaught \fBdie()\fR was called when \f(CW\*(C`PERL_EXIT_WARN\*(C'\fR was set in
6789 \&\f(CW\*(C`PL_exit_flags\*(C'\fR.
6790 .IP "Unexpected \*(Aq)\*(Aq in regex; marked by <\-\-\ HERE in m/%s/" 4
6791 .IX Item "Unexpected ')' in regex; marked by <-- HERE in m/%s/"
6792 (F) You had something like this:
6793 .Sp
6794 .Vb 1
6795 \& (?[ ( \ep{Digit} + ) ])
6796 .Ve
6797 .Sp
6798 The \f(CW")"\fR is out\-of\-place. Something apparently was supposed to
6799 be combined with the digits, or the \f(CW"+"\fR shouldn\*(Aqt be there, or
6800 something like that. Perl can\*(Aqt figure out what was intended.
6801 .IP "Unexpected \*(Aq]\*(Aq with no following \*(Aq)\*(Aq in (?[... in regex; marked by <\-\- HERE in m/%s/" 4
6802 .IX Item "Unexpected ']' with no following ')' in (?[... in regex; marked by <-- HERE in m/%s/"
6803 (F) While parsing an extended character class a \*(Aq]\*(Aq character was
6804 encountered at a point in the definition where the only legal use of
6805 \&\*(Aq]\*(Aq is to close the character class definition as part of a \*(Aq])\*(Aq, you
6806 may have forgotten the close paren, or otherwise confused the parser.
6807 .IP "Unexpected \*(Aq(\*(Aq with no preceding operator in regex; marked by <\-\-\ HERE in m/%s/" 4
6808 .IX Item "Unexpected '(' with no preceding operator in regex; marked by <-- HERE in m/%s/"
6809 (F) You had something like this:
6810 .Sp
6811 .Vb 1
6812 \& (?[ \ep{Digit} ( \ep{Lao} + \ep{Thai} ) ])
6813 .Ve
6814 .Sp
6815 There should be an operator before the \f(CW"("\fR, as there\*(Aqs
6816 no indication as to how the digits are to be combined
6817 with the characters in the Lao and Thai scripts.
6818 .IP "Unicode non\-character U+%X is not recommended for open interchange" 4
6819 .IX Item "Unicode non-character U+%X is not recommended for open interchange"
6820 (S nonchar) Certain codepoints, such as U+FFFE and U+FFFF, are
6821 defined by the Unicode standard to be non\-characters. Those
6822 are legal codepoints, but are reserved for internal use; so,
6823 applications shouldn\*(Aqt attempt to exchange them. An application
6824 may not be expecting any of these characters at all, and receiving
6825 them may lead to bugs. If you know what you are doing you can
6826 turn off this warning by \f(CW\*(C`no warnings \*(Aqnonchar\*(Aq;\*(C'\fR.
6827 .Sp
6828 This is not really a "severe" error, but it is supposed to be
6829 raised by default even if warnings are not enabled, and currently
6830 the only way to do that in Perl is to mark it as serious.
6831 .IP "Unicode property wildcard not terminated" 4
6832 .IX Item "Unicode property wildcard not terminated"
6833 (F) A Unicode property wildcard looks like a delimited regular
6834 expression pattern (all within the braces of the enclosing \f(CW\*(C`\ep{...}\*(C'\fR.
6835 The closing delimiter to match the opening one was not found. If the
6836 opening one is escaped by preceding it with a backslash, the closing one
6837 must also be so escaped.
6838 .IP "Unicode string properties are not implemented in (?[...]) in regex; marked by <\-\- HERE in m/%s/" 4
6839 .IX Item "Unicode string properties are not implemented in (?[...]) in regex; marked by <-- HERE in m/%s/"
6840 (F) A Unicode string property is one which expands to a sequence of
6841 multiple characters. An example is \f(CW\*(C`\ep{name=KATAKANA LETTER AINU P}\*(C'\fR,
6842 which consists of the sequence \f(CW\*(C`\eN{KATAKANA LETTER SMALL H}\*(C'\fR
6843 followed by \f(CW\*(C`\eN{COMBINING KATAKANA\-HIRAGANA SEMI\-VOICED SOUND MARK}\*(C'\fR.
6844 Extended character classes, \f(CW\*(C`(?[...])\*(C'\fR currently cannot handle these.
6845 .IP "Unicode surrogate U+%X is illegal in UTF\-8" 4
6846 .IX Item "Unicode surrogate U+%X is illegal in UTF-8"
6847 (S surrogate) You had a UTF\-16 surrogate in a context where they are
6848 not considered acceptable. These code points, between U+D800 and
6849 U+DFFF (inclusive), are used by Unicode only for UTF\-16. However, Perl
6850 internally allows all unsigned integer code points (up to the size limit
6851 available on your platform), including surrogates. But these can cause
6852 problems when being input or output, which is likely where this message
6853 came from. If you really really know what you are doing you can turn
6854 off this warning by \f(CW\*(C`no warnings \*(Aqsurrogate\*(Aq;\*(C'\fR.
6855 .IP Unimplemented 4
6856 .IX Item "Unimplemented"
6857 (F) In Perl 5.12 and above, you have executed an
6858 ellipsis statement. This is a
6859 bare \f(CW\*(C`...;\*(C'\fR, meant to be used to allow you to outline code that
6860 is to be written, but is not complete, similar to the following:
6861 .Sp
6862 .Vb 4
6863 \& sub not_done_yet {
6864 \& my($self, $arg1, $arg2) = @_;
6865 \& ...
6866 \& }
6867 .Ve
6868 .Sp
6869 If \f(CWnot_done_yet()\fR is called, Perl will die with an \f(CW\*(C`Unimplemented\*(C'\fR error
6870 at the line containing \f(CW\*(C`...\*(C'\fR.
6871 .IP "Unknown charname \*(Aq%s\*(Aq" 4
6872 .IX Item "Unknown charname '%s'"
6873 (F) The name you used inside \f(CW\*(C`\eN{}\*(C'\fR is unknown to Perl. Check the
6874 spelling. You can say \f(CW\*(C`use charnames ":loose"\*(C'\fR to not have to be
6875 so precise about spaces, hyphens, and capitalization on standard Unicode
6876 names. (Any custom aliases that have been created must be specified
6877 exactly, regardless of whether \f(CW\*(C`:loose\*(C'\fR is used or not.) This error may
6878 also happen if the \f(CW\*(C`\eN{}\*(C'\fR is not in the scope of the corresponding
6879 \&\f(CW\*(C`use\ charnames\*(C'\fR.
6880 .IP "Unknown \*(Aq(*...)\*(Aq construct \*(Aq%s\*(Aq in regex; marked by <\-\- HERE in m/%s/" 4
6881 .IX Item "Unknown '(*...)' construct '%s' in regex; marked by <-- HERE in m/%s/"
6882 (F) The \f(CW\*(C`(*\*(C'\fR was followed by something that the regular expression
6883 compiler does not recognize. Check your spelling.
6884 .IP "Unknown error" 4
6885 .IX Item "Unknown error"
6886 (P) Perl was about to print an error message in \f(CW$@\fR, but the \f(CW$@\fR variable
6887 did not exist, even after an attempt to create it.
6888 .ie n .IP "Unknown locale category %d" 4
6889 .el .IP "Unknown locale category \f(CW%d\fR" 4
6890 .IX Item "Unknown locale category %d"
6891 .PD 0
6892 .ie n .IP "Unknown locale category %d; can\*(Aqt set it to %s" 4
6893 .el .IP "Unknown locale category \f(CW%d\fR; can\*(Aqt set it to \f(CW%s\fR" 4
6894 .IX Item "Unknown locale category %d; can't set it to %s"
6895 .PD
6896 (W locale) You used a locale category that perl doesn\*(Aqt recognize, so it
6897 cannot carry out your request. Check that you are using a valid
6898 category. If so, see "Multi\-threaded" in perllocale for advice on
6899 reporting this as a bug, and for modifying perl locally to accommodate
6900 your needs.
6901 .IP "Unknown \fBopen()\fR mode \*(Aq%s\*(Aq" 4
6902 .IX Item "Unknown open() mode '%s'"
6903 (F) The second argument of 3\-argument \fBopen()\fR is not among the list
6904 of valid modes: \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`>\*(C'\fR, \f(CW\*(C`>>\*(C'\fR, \f(CW\*(C`+<\*(C'\fR,
6905 \&\f(CW\*(C`+>\*(C'\fR, \f(CW\*(C`+>>\*(C'\fR, \f(CW\*(C`\-|\*(C'\fR, \f(CW\*(C`|\-\*(C'\fR, \f(CW\*(C`<&\*(C'\fR, \f(CW\*(C`>&\*(C'\fR.
6906 .IP "Unknown PerlIO layer ""%s""" 4
6907 .IX Item "Unknown PerlIO layer ""%s"""
6908 (W layer) An attempt was made to push an unknown layer onto the Perl I/O
6909 system. (Layers take care of transforming data between external and
6910 internal representations.) Note that some layers, such as \f(CW\*(C`mmap\*(C'\fR,
6911 are not supported in all environments. If your program didn\*(Aqt
6912 explicitly request the failing operation, it may be the result of the
6913 value of the environment variable PERLIO.
6914 .ie n .IP "Unknown process %x sent message to prime_env_iter: %s" 4
6915 .el .IP "Unknown process \f(CW%x\fR sent message to prime_env_iter: \f(CW%s\fR" 4
6916 .IX Item "Unknown process %x sent message to prime_env_iter: %s"
6917 (P) An error peculiar to VMS. Perl was reading values for \f(CW%ENV\fR before
6918 iterating over it, and someone else stuck a message in the stream of
6919 data Perl expected. Someone\*(Aqs very confused, or perhaps trying to
6920 subvert Perl\*(Aqs population of \f(CW%ENV\fR for nefarious purposes.
6921 .IP "Unknown regexp modifier ""/%s""" 4
6922 .IX Item "Unknown regexp modifier ""/%s"""
6923 (F) Alphanumerics immediately following the closing delimiter
6924 of a regular expression pattern are interpreted by Perl as modifier
6925 flags for the regex. One of the ones you specified is invalid. One way
6926 this can happen is if you didn\*(Aqt put in white space between the end of
6927 the regex and a following alphanumeric operator:
6928 .Sp
6929 .Vb 1
6930 \& if ($x =~ /foo/and $bar == 3) { ... }
6931 .Ve
6932 .Sp
6933 The \f(CW"a"\fR is a valid modifier flag, but the \f(CW"n"\fR is not, and raises
6934 this error. Likely what was meant instead was:
6935 .Sp
6936 .Vb 1
6937 \& if ($x =~ /foo/ and $bar == 3) { ... }
6938 .Ve
6939 .ie n .IP "Unknown ""re"" subpragma \*(Aq%s\*(Aq (known ones are: %s)" 4
6940 .el .IP "Unknown ""re"" subpragma \*(Aq%s\*(Aq (known ones are: \f(CW%s\fR)" 4
6941 .IX Item "Unknown ""re"" subpragma '%s' (known ones are: %s)"
6942 (W) You tried to use an unknown subpragma of the "re" pragma.
6943 .IP "Unknown switch condition (?(...)) in regex; marked by <\-\-\ HERE in m/%s/" 4
6944 .IX Item "Unknown switch condition (?(...)) in regex; marked by <-- HERE in m/%s/"
6945 (F) The condition part of a (?(condition)if\-clause|else\-clause) construct
6946 is not known. The condition must be one of the following:
6947 .Sp
6948 .Vb 10
6949 \& (1) (2) ... true if 1st, 2nd, etc., capture matched
6950 \& (<NAME>) (\*(AqNAME\*(Aq) true if named capture matched
6951 \& (?=...) (?<=...) true if subpattern matches
6952 \& (*pla:...) (*plb:...) true if subpattern matches; also
6953 \& (*positive_lookahead:...)
6954 \& (*positive_lookbehind:...)
6955 \& (*nla:...) (*nlb:...) true if subpattern fails to match; also
6956 \& (*negative_lookahead:...)
6957 \& (*negative_lookbehind:...)
6958 \& (?{ CODE }) true if code returns a true value
6959 \& (R) true if evaluating inside recursion
6960 \& (R1) (R2) ... true if directly inside capture group 1, 2,
6961 \& etc.
6962 \& (R&NAME) true if directly inside named capture
6963 \& (DEFINE) always false; for defining named subpatterns
6964 .Ve
6965 .Sp
6966 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
6967 discovered. See perlre.
6968 .IP "Unknown Unicode option letter \*(Aq%c\*(Aq" 4
6969 .IX Item "Unknown Unicode option letter '%c'"
6970 (F) You specified an unknown Unicode option. See
6971 perlrun documentation of the \f(CW\*(C`\-C\*(C'\fR switch
6972 for the list of known options.
6973 .ie n .IP "Unknown Unicode option value %d" 4
6974 .el .IP "Unknown Unicode option value \f(CW%d\fR" 4
6975 .IX Item "Unknown Unicode option value %d"
6976 (F) You specified an unknown Unicode option. See
6977 perlrun documentation of the \f(CW\*(C`\-C\*(C'\fR switch
6978 for the list of known options.
6979 .IP "Unknown user\-defined property name \ep{%s}" 4
6980 .IX Item "Unknown user-defined property name p{%s}"
6981 (F) You specified to use a property within the \f(CW\*(C`\ep{...}\*(C'\fR which was a
6982 syntactically valid user\-defined property, but no definition was found
6983 for it by the time one was required to proceed. Check your spelling.
6984 See "User\-Defined Character Properties" in perlunicode.
6985 .IP "Unknown verb pattern \*(Aq%s\*(Aq in regex; marked by <\-\-\ HERE in m/%s/" 4
6986 .IX Item "Unknown verb pattern '%s' in regex; marked by <-- HERE in m/%s/"
6987 (F) You either made a typo or have incorrectly put a \f(CW\*(C`*\*(C'\fR quantifier
6988 after an open brace in your pattern. Check the pattern and review
6989 perlre for details on legal verb patterns.
6990 .IP "Unknown warnings category \*(Aq%s\*(Aq" 4
6991 .IX Item "Unknown warnings category '%s'"
6992 (F) An error issued by the \f(CW\*(C`warnings\*(C'\fR pragma. You specified a warnings
6993 category that is unknown to perl at this point.
6994 .Sp
6995 Note that if you want to enable a warnings category registered by a
6996 module (e.g. \f(CW\*(C`use warnings \*(AqFile::Find\*(Aq\*(C'\fR), you must have loaded this
6997 module first.
6998 .IP "Unmatched [ in regex; marked by <\-\-\ HERE in m/%s/" 4
6999 .IX Item "Unmatched [ in regex; marked by <-- HERE in m/%s/"
7000 (F) The brackets around a character class must match. If you wish to
7001 include a closing bracket in a character class, backslash it or put it
7002 first. The <\-\-\ HERE shows whereabouts in the regular expression the
7003 problem was discovered. See perlre.
7004 .IP "Unmatched ( in regex; marked by <\-\-\ HERE in m/%s/" 4
7005 .IX Item "Unmatched ( in regex; marked by <-- HERE in m/%s/"
7006 .PD 0
7007 .IP "Unmatched ) in regex; marked by <\-\-\ HERE in m/%s/" 4
7008 .IX Item "Unmatched ) in regex; marked by <-- HERE in m/%s/"
7009 .PD
7010 (F) Unbackslashed parentheses must always be balanced in regular
7011 expressions. If you\*(Aqre a vi user, the % key is valuable for finding
7012 the matching parenthesis. The <\-\-\ HERE shows whereabouts in the
7013 regular expression the problem was discovered. See perlre.
7014 .ie n .IP "Unmatched right %s bracket" 4
7015 .el .IP "Unmatched right \f(CW%s\fR bracket" 4
7016 .IX Item "Unmatched right %s bracket"
7017 (F) The lexer counted more closing curly or square brackets than opening
7018 ones, so you\*(Aqre probably missing a matching opening bracket. As a
7019 general rule, you\*(Aqll find the missing one (so to speak) near the place
7020 you were last editing.
7021 .IP "Unquoted string ""%s"" may clash with future reserved word" 4
7022 .IX Item "Unquoted string ""%s"" may clash with future reserved word"
7023 (W reserved) You used a bareword that might someday be claimed as a
7024 reserved word. It\*(Aqs best to put such a word in quotes, or capitalize it
7025 somehow, or insert an underbar into it. You might also declare it as a
7026 subroutine.
7027 .ie n .IP "Unrecognized character %s; marked by <\-\-\ HERE after %s near column %d" 4
7028 .el .IP "Unrecognized character \f(CW%s\fR; marked by <\-\-\ HERE after \f(CW%s\fR near column \f(CW%d\fR" 4
7029 .IX Item "Unrecognized character %s; marked by <-- HERE after %s near column %d"
7030 (F) The Perl parser has no idea what to do with the specified character
7031 in your Perl script (or eval) near the specified column. Perhaps you
7032 tried to run a compressed script, a binary program, or a directory as
7033 a Perl program.
7034 .ie n .IP "Unrecognized class attribute %s" 4
7035 .el .IP "Unrecognized class attribute \f(CW%s\fR" 4
7036 .IX Item "Unrecognized class attribute %s"
7037 (F) You attempted to add a named attribute to a \f(CW\*(C`class\*(C'\fR definition, but
7038 perl does not recognise the name of the requested attribute.
7039 .IP "Unrecognized escape \e%c in character class in regex; marked by <\-\-\ HERE in m/%s/" 4
7040 .IX Item "Unrecognized escape %c in character class in regex; marked by <-- HERE in m/%s/"
7041 (F) You used a backslash\-character combination which is not
7042 recognized by Perl inside character classes. This is a fatal
7043 error when the character class is used within \f(CW\*(C`(?[ ])\*(C'\fR.
7044 .IP "Unrecognized escape \e%c in character class passed through in regex; marked by <\-\-\ HERE in m/%s/" 4
7045 .IX Item "Unrecognized escape %c in character class passed through in regex; marked by <-- HERE in m/%s/"
7046 (W regexp) You used a backslash\-character combination which is not
7047 recognized by Perl inside character classes. The character was
7048 understood literally, but this may change in a future version of Perl.
7049 The <\-\-\ HERE shows whereabouts in the regular expression the
7050 escape was discovered.
7051 .IP "Unrecognized escape \e%c passed through" 4
7052 .IX Item "Unrecognized escape %c passed through"
7053 (W misc) You used a backslash\-character combination which is not
7054 recognized by Perl. The character was understood literally, but this may
7055 change in a future version of Perl.
7056 .IP "Unrecognized escape \e%s passed through in regex; marked by <\-\-\ HERE in m/%s/" 4
7057 .IX Item "Unrecognized escape %s passed through in regex; marked by <-- HERE in m/%s/"
7058 (W regexp) You used a backslash\-character combination which is not
7059 recognized by Perl. The character(s) were understood literally, but
7060 this may change in a future version of Perl. The <\-\-\ HERE shows
7061 whereabouts in the regular expression the escape was discovered.
7062 .ie n .IP "Unrecognized field attribute %s" 4
7063 .el .IP "Unrecognized field attribute \f(CW%s\fR" 4
7064 .IX Item "Unrecognized field attribute %s"
7065 (F) You attempted to add a named attribute to a \f(CW\*(C`field\*(C'\fR definition, but
7066 perl does not recognise the name of the requested attribute.
7067 .ie n .IP "Unrecognised parameters for ""%s"" constructor: %s" 4
7068 .el .IP "Unrecognised parameters for ""%s"" constructor: \f(CW%s\fR" 4
7069 .IX Item "Unrecognised parameters for ""%s"" constructor: %s"
7070 (F) You called new on a class but supplied a parameter name that
7071 didn\*(Aqt match a class field name.
7072 .IP "Unrecognized signal name ""%s""" 4
7073 .IX Item "Unrecognized signal name ""%s"""
7074 (F) You specified a signal name to the \fBkill()\fR function that was not
7075 recognized. Say \f(CW\*(C`kill \-l\*(C'\fR in your shell to see the valid signal names
7076 on your system.
7077 .IP "Unrecognized switch: \-%s (\-h will show valid options)" 4
7078 .IX Item "Unrecognized switch: -%s (-h will show valid options)"
7079 (F) You specified an illegal option to Perl. Don\*(Aqt do that. (If you
7080 think you didn\*(Aqt do that, check the #! line to see if it\*(Aqs supplying the
7081 bad switch on your behalf.)
7082 .ie n .IP "Unsuccessful %s on filename containing newline" 4
7083 .el .IP "Unsuccessful \f(CW%s\fR on filename containing newline" 4
7084 .IX Item "Unsuccessful %s on filename containing newline"
7085 (W newline) A file operation was attempted on a filename, and that
7086 operation failed, PROBABLY because the filename contained a newline,
7087 PROBABLY because you forgot to \fBchomp()\fR it off. See "chomp" in perlfunc.
7088 .IP "Unsupported directory function ""%s"" called" 4
7089 .IX Item "Unsupported directory function ""%s"" called"
7090 (F) Your machine doesn\*(Aqt support \fBopendir()\fR and \fBreaddir()\fR.
7091 .ie n .IP "Unsupported function %s" 4
7092 .el .IP "Unsupported function \f(CW%s\fR" 4
7093 .IX Item "Unsupported function %s"
7094 (F) This machine doesn\*(Aqt implement the indicated function, apparently.
7095 At least, Configure doesn\*(Aqt think so.
7096 .IP "Unsupported function fork" 4
7097 .IX Item "Unsupported function fork"
7098 (F) Your version of executable does not support forking.
7099 .Sp
7100 Note that under some systems, like OS/2, there may be different flavors
7101 of Perl executables, some of which may support fork, some not. Try
7102 changing the name you call Perl by to \f(CW\*(C`perl_\*(C'\fR, \f(CW\*(C`perl_\|_\*(C'\fR, and so on.
7103 .ie n .IP "Unsupported script encoding %s" 4
7104 .el .IP "Unsupported script encoding \f(CW%s\fR" 4
7105 .IX Item "Unsupported script encoding %s"
7106 (F) Your program file begins with a Unicode Byte Order Mark (BOM) which
7107 declares it to be in a Unicode encoding that Perl cannot read.
7108 .IP "Unsupported socket function ""%s"" called" 4
7109 .IX Item "Unsupported socket function ""%s"" called"
7110 (F) Your machine doesn\*(Aqt support the Berkeley socket mechanism, or at
7111 least that\*(Aqs what Configure thought.
7112 .IP "Unterminated \*(Aq(*...\*(Aq argument in regex; marked by <\-\- HERE in m/%s/" 4
7113 .IX Item "Unterminated '(*...' argument in regex; marked by <-- HERE in m/%s/"
7114 (F) You used a pattern of the form \f(CW\*(C`(*...:...)\*(C'\fR but did not terminate
7115 the pattern with a \f(CW\*(C`)\*(C'\fR. Fix the pattern and retry.
7116 .IP "Unterminated attribute list" 4
7117 .IX Item "Unterminated attribute list"
7118 (F) The lexer found something other than a simple identifier at the
7119 start of an attribute, and it wasn\*(Aqt a semicolon or the start of a
7120 block. Perhaps you terminated the parameter list of the previous
7121 attribute too soon. See attributes.
7122 .IP "Unterminated attribute parameter in attribute list" 4
7123 .IX Item "Unterminated attribute parameter in attribute list"
7124 (F) The lexer saw an opening (left) parenthesis character while parsing
7125 an attribute list, but the matching closing (right) parenthesis
7126 character was not found. You may need to add (or remove) a backslash
7127 character to get your parentheses to balance. See attributes.
7128 .IP "Unterminated compressed integer" 4
7129 .IX Item "Unterminated compressed integer"
7130 (F) An argument to unpack("w",...) was incompatible with the BER
7131 compressed integer format and could not be converted to an integer.
7132 See "pack" in perlfunc.
7133 .IP "Unterminated \*(Aq(*...\*(Aq construct in regex; marked by <\-\- HERE in m/%s/" 4
7134 .IX Item "Unterminated '(*...' construct in regex; marked by <-- HERE in m/%s/"
7135 (F) You used a pattern of the form \f(CW\*(C`(*...)\*(C'\fR but did not terminate
7136 the pattern with a \f(CW\*(C`)\*(C'\fR. Fix the pattern and retry.
7137 .IP "Unterminated delimiter for here document" 4
7138 .IX Item "Unterminated delimiter for here document"
7139 (F) This message occurs when a here document label has an initial
7140 quotation mark but the final quotation mark is missing. Perhaps
7141 you wrote:
7142 .Sp
7143 .Vb 1
7144 \& <<"foo
7145 .Ve
7146 .Sp
7147 instead of:
7148 .Sp
7149 .Vb 1
7150 \& <<"foo"
7151 .Ve
7152 .IP "Unterminated \eg... pattern in regex; marked by <\-\-\ HERE in m/%s/" 4
7153 .IX Item "Unterminated g... pattern in regex; marked by <-- HERE in m/%s/"
7154 .PD 0
7155 .IP "Unterminated \eg{...} pattern in regex; marked by <\-\-\ HERE in m/%s/" 4
7156 .IX Item "Unterminated g{...} pattern in regex; marked by <-- HERE in m/%s/"
7157 .PD
7158 (F) In a regular expression, you had a \f(CW\*(C`\eg\*(C'\fR that wasn\*(Aqt followed by a
7159 proper group reference. In the case of \f(CW\*(C`\eg{\*(C'\fR, the closing brace is
7160 missing; otherwise the \f(CW\*(C`\eg\*(C'\fR must be followed by an integer. Fix the
7161 pattern and retry.
7162 .IP "Unterminated <> operator" 4
7163 .IX Item "Unterminated <> operator"
7164 (F) The lexer saw a left angle bracket in a place where it was expecting
7165 a term, so it\*(Aqs looking for the corresponding right angle bracket, and
7166 not finding it. Chances are you left some needed parentheses out
7167 earlier in the line, and you really meant a "less than".
7168 .IP "Unterminated verb pattern argument in regex; marked by <\-\-\ HERE in m/%s/" 4
7169 .IX Item "Unterminated verb pattern argument in regex; marked by <-- HERE in m/%s/"
7170 (F) You used a pattern of the form \f(CW\*(C`(*VERB:ARG)\*(C'\fR but did not terminate
7171 the pattern with a \f(CW\*(C`)\*(C'\fR. Fix the pattern and retry.
7172 .IP "Unterminated verb pattern in regex; marked by <\-\-\ HERE in m/%s/" 4
7173 .IX Item "Unterminated verb pattern in regex; marked by <-- HERE in m/%s/"
7174 (F) You used a pattern of the form \f(CW\*(C`(*VERB)\*(C'\fR but did not terminate
7175 the pattern with a \f(CW\*(C`)\*(C'\fR. Fix the pattern and retry.
7176 .ie n .IP "untie attempted while %d inner references still exist" 4
7177 .el .IP "untie attempted while \f(CW%d\fR inner references still exist" 4
7178 .IX Item "untie attempted while %d inner references still exist"
7179 (W untie) A copy of the object returned from \f(CW\*(C`tie\*(C'\fR (or \f(CW\*(C`tied\*(C'\fR) was
7180 still valid when \f(CW\*(C`untie\*(C'\fR was called.
7181 .IP "Usage: POSIX::%s(%s)" 4
7182 .IX Item "Usage: POSIX::%s(%s)"
7183 (F) You called a POSIX function with incorrect arguments.
7184 See "FUNCTIONS" in POSIX for more information.
7185 .IP "Usage: Win32::%s(%s)" 4
7186 .IX Item "Usage: Win32::%s(%s)"
7187 (F) You called a Win32 function with incorrect arguments.
7188 See Win32 for more information.
7189 .ie n .IP "$[ used in %s (did you mean $] ?)" 4
7190 .el .IP "$[ used in \f(CW%s\fR (did you mean $] ?)" 4
7191 .IX Item "$[ used in %s (did you mean $] ?)"
7192 (W syntax) You used \f(CW$[\fR in a comparison, such as:
7193 .Sp
7194 .Vb 3
7195 \& if ($[ > 5.006) {
7196 \& ...
7197 \& }
7198 .Ve
7199 .Sp
7200 You probably meant to use \f(CW$]\fR instead. \f(CW$[\fR is the base for indexing
7201 arrays. \f(CW$]\fR is the Perl version number in decimal.
7202 .IP "Use ""%s"" instead of ""%s""" 4
7203 .IX Item "Use ""%s"" instead of ""%s"""
7204 (F) The second listed construct is no longer legal. Use the first one
7205 instead.
7206 .IP "Useless assignment to a temporary" 4
7207 .IX Item "Useless assignment to a temporary"
7208 (W misc) You assigned to an lvalue subroutine, but what
7209 the subroutine returned was a temporary scalar about to
7210 be discarded, so the assignment had no effect.
7211 .IP "Useless (?\-%s) \- don\*(Aqt use /%s modifier in regex; marked by <\-\-\ HERE in m/%s/" 4
7212 .IX Item "Useless (?-%s) - don't use /%s modifier in regex; marked by <-- HERE in m/%s/"
7213 (W regexp) You have used an internal modifier such as (?\-o) that has no
7214 meaning unless removed from the entire regexp:
7215 .Sp
7216 .Vb 1
7217 \& if ($string =~ /(?\-o)$pattern/o) { ... }
7218 .Ve
7219 .Sp
7220 must be written as
7221 .Sp
7222 .Vb 1
7223 \& if ($string =~ /$pattern/) { ... }
7224 .Ve
7225 .Sp
7226 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
7227 discovered. See perlre.
7228 .ie n .IP "Useless localization of %s" 4
7229 .el .IP "Useless localization of \f(CW%s\fR" 4
7230 .IX Item "Useless localization of %s"
7231 (W syntax) The localization of lvalues such as \f(CWlocal($x=10)\fR is legal,
7232 but in fact the \fBlocal()\fR currently has no effect. This may change at
7233 some point in the future, but in the meantime such code is discouraged.
7234 .IP "Useless (?%s) \- use /%s modifier in regex; marked by <\-\-\ HERE in m/%s/" 4
7235 .IX Item "Useless (?%s) - use /%s modifier in regex; marked by <-- HERE in m/%s/"
7236 (W regexp) You have used an internal modifier such as (?o) that has no
7237 meaning unless applied to the entire regexp:
7238 .Sp
7239 .Vb 1
7240 \& if ($string =~ /(?o)$pattern/) { ... }
7241 .Ve
7242 .Sp
7243 must be written as
7244 .Sp
7245 .Vb 1
7246 \& if ($string =~ /$pattern/o) { ... }
7247 .Ve
7248 .Sp
7249 The <\-\-\ HERE shows whereabouts in the regular expression the problem was
7250 discovered. See perlre.
7251 .IP "Useless use of attribute ""const""" 4
7252 .IX Item "Useless use of attribute ""const"""
7253 (W misc) The \f(CW\*(C`const\*(C'\fR attribute has no effect except
7254 on anonymous closure prototypes. You applied it to
7255 a subroutine via attributes.pm. This is only useful
7256 inside an attribute handler for an anonymous subroutine.
7257 .IP "Useless use of /d modifier in transliteration operator" 4
7258 .IX Item "Useless use of /d modifier in transliteration operator"
7259 (W misc) You have used the /d modifier where the searchlist has the
7260 same length as the replacelist. See perlop for more information
7261 about the /d modifier.
7262 .IP "Useless use of \eE" 4
7263 .IX Item "Useless use of E"
7264 (W misc) You have a \eE in a double\-quotish string without a \f(CW\*(C`\eU\*(C'\fR,
7265 \&\f(CW\*(C`\eL\*(C'\fR or \f(CW\*(C`\eQ\*(C'\fR preceding it.
7266 .IP "Useless use of greediness modifier \*(Aq%c\*(Aq in regex; marked by <\-\-\ HERE in m/%s/" 4
7267 .IX Item "Useless use of greediness modifier '%c' in regex; marked by <-- HERE in m/%s/"
7268 (W regexp) You specified something like these:
7269 .Sp
7270 .Vb 2
7271 \& qr/a{3}?/
7272 \& qr/b{1,1}+/
7273 .Ve
7274 .Sp
7275 The \f(CW"?"\fR and \f(CW"+"\fR don\*(Aqt have any effect, as they modify whether to
7276 match more or fewer when there is a choice, and by specifying to match
7277 exactly a given number, there is no room left for a choice.
7278 .ie n .IP "Useless use of %s in scalar context" 4
7279 .el .IP "Useless use of \f(CW%s\fR in scalar context" 4
7280 .IX Item "Useless use of %s in scalar context"
7281 (W scalar) You did something whose only interesting return value is a
7282 list without a side effect in scalar context, which does not accept a
7283 list.
7284 .Sp
7285 For example
7286 .Sp
7287 .Vb 1
7288 \& my $x = sort @y;
7289 .Ve
7290 .Sp
7291 This is not very useful, and perl currently optimizes this away.
7292 .ie n .IP "Useless use of %s in void context" 4
7293 .el .IP "Useless use of \f(CW%s\fR in void context" 4
7294 .IX Item "Useless use of %s in void context"
7295 (W void) You did something without a side effect in a context that does
7296 nothing with the return value, such as a statement that doesn\*(Aqt return a
7297 value from a block, or the left side of a scalar comma operator. Very
7298 often this points not to stupidity on your part, but a failure of Perl
7299 to parse your program the way you thought it would. For example, you\*(Aqd
7300 get this if you mixed up your C precedence with Python precedence and
7301 said
7302 .Sp
7303 .Vb 1
7304 \& $one, $two = 1, 2;
7305 .Ve
7306 .Sp
7307 when you meant to say
7308 .Sp
7309 .Vb 1
7310 \& ($one, $two) = (1, 2);
7311 .Ve
7312 .Sp
7313 Another common error is to use ordinary parentheses to construct a list
7314 reference when you should be using square or curly brackets, for
7315 example, if you say
7316 .Sp
7317 .Vb 1
7318 \& $array = (1,2);
7319 .Ve
7320 .Sp
7321 when you should have said
7322 .Sp
7323 .Vb 1
7324 \& $array = [1,2];
7325 .Ve
7326 .Sp
7327 The square brackets explicitly turn a list value into a scalar value,
7328 while parentheses do not. So when a parenthesized list is evaluated in
7329 a scalar context, the comma is treated like C\*(Aqs comma operator, which
7330 throws away the left argument, which is not what you want. See
7331 perlref for more on this.
7332 .Sp
7333 This warning will not be issued for numerical constants equal to 0 or 1
7334 since they are often used in statements like
7335 .Sp
7336 .Vb 1
7337 \& 1 while sub_with_side_effects();
7338 .Ve
7339 .Sp
7340 String constants that would normally evaluate to 0 or 1 are warned
7341 about.
7342 .IP "Useless use of (?\-p) in regex; marked by <\-\-\ HERE in m/%s/" 4
7343 .IX Item "Useless use of (?-p) in regex; marked by <-- HERE in m/%s/"
7344 (W regexp) The \f(CW\*(C`p\*(C'\fR modifier cannot be turned off once set. Trying to do
7345 so is futile.
7346 .IP "Useless use of ""re"" pragma" 4
7347 .IX Item "Useless use of ""re"" pragma"
7348 (W) You did \f(CW\*(C`use re;\*(C'\fR without any arguments. That isn\*(Aqt very useful.
7349 .ie n .IP "Useless use of %s with no values" 4
7350 .el .IP "Useless use of \f(CW%s\fR with no values" 4
7351 .IX Item "Useless use of %s with no values"
7352 (W syntax) You used the \fBpush()\fR or \fBunshift()\fR function with no arguments
7353 apart from the array, like \f(CWpush(@x)\fR or \f(CWunshift(@foo)\fR. That won\*(Aqt
7354 usually have any effect on the array, so is completely useless. It\*(Aqs
7355 possible in principle that push(@tied_array) could have some effect
7356 if the array is tied to a class which implements a PUSH method. If so,
7357 you can write it as \f(CW\*(C`push(@tied_array,())\*(C'\fR to avoid this warning.
7358 .IP """use"" not allowed in expression" 4
7359 .IX Item """use"" not allowed in expression"
7360 (F) The "use" keyword is recognized and executed at compile time, and
7361 returns no useful value. See perlmod.
7362 .ie n .IP "Use of @_ in %s with signatured subroutine is experimental" 4
7363 .el .IP "Use of \f(CW@_\fR in \f(CW%s\fR with signatured subroutine is experimental" 4
7364 .IX Item "Use of @_ in %s with signatured subroutine is experimental"
7365 (S experimental::args_array_with_signatures) An expression involving the
7366 \&\f(CW@_\fR arguments array was found in a subroutine that uses a signature.
7367 This is experimental because the interaction between the arguments
7368 array and parameter handling via signatures is not guaranteed to remain
7369 stable in any future version of Perl, and such code should be avoided.
7370 .IP "Use of bare << to mean <<"""" is forbidden" 4
7371 .IX Item "Use of bare << to mean <<"""" is forbidden"
7372 (F) You are now required to use the explicitly quoted form if you wish
7373 to use an empty line as the terminator of the here\-document.
7374 .Sp
7375 Use of a bare terminator was deprecated in Perl 5.000, and is a fatal
7376 error as of Perl 5.28.
7377 .IP "Use of /c modifier is meaningless in s///" 4
7378 .IX Item "Use of /c modifier is meaningless in s///"
7379 (W regexp) You used the /c modifier in a substitution. The /c
7380 modifier is not presently meaningful in substitutions.
7381 .IP "Use of /c modifier is meaningless without /g" 4
7382 .IX Item "Use of /c modifier is meaningless without /g"
7383 (W regexp) You used the /c modifier with a regex operand, but didn\*(Aqt
7384 use the /g modifier. Currently, /c is meaningful only when /g is
7385 used. (This may change in the future.)
7386 .IP "Use of code point 0x%s is not allowed; the permissible max is 0x%X" 4
7387 .IX Item "Use of code point 0x%s is not allowed; the permissible max is 0x%X"
7388 .PD 0
7389 .IP "Use of code point 0x%s is not allowed; the permissible max is 0x%X in regex; marked by <\-\- HERE in m/%s/" 4
7390 .IX Item "Use of code point 0x%s is not allowed; the permissible max is 0x%X in regex; marked by <-- HERE in m/%s/"
7391 .PD
7392 (F) You used a code point that is not allowed, because it is too large.
7393 Unicode only allows code points up to 0x10FFFF, but Perl allows much
7394 larger ones. Earlier versions of Perl allowed code points above IV_MAX
7395 (0x7FFFFFF on 32\-bit platforms, 0x7FFFFFFFFFFFFFFF on 64\-bit platforms),
7396 however, this could possibly break the perl interpreter in some constructs,
7397 including causing it to hang in a few cases.
7398 .Sp
7399 If your code is to run on various platforms, keep in mind that the upper
7400 limit depends on the platform. It is much larger on 64\-bit word sizes
7401 than 32\-bit ones.
7402 .Sp
7403 The use of out of range code points was deprecated in Perl 5.24, and
7404 became a fatal error in Perl 5.28.
7405 .IP "Use of \fBeach()\fR on hash after insertion without resetting hash iterator results in undefined behavior" 4
7406 .IX Item "Use of each() on hash after insertion without resetting hash iterator results in undefined behavior"
7407 (S internal) The behavior of \f(CWeach()\fR after insertion is undefined;
7408 it may skip items, or visit items more than once. Consider using
7409 \&\f(CWkeys()\fR instead of \f(CWeach()\fR.
7410 .IP "Use of := for an empty attribute list is not allowed" 4
7411 .IX Item "Use of := for an empty attribute list is not allowed"
7412 (F) The construction \f(CW\*(C`my $x := 42\*(C'\fR used to parse as equivalent to
7413 \&\f(CW\*(C`my $x : = 42\*(C'\fR (applying an empty attribute list to \f(CW$x\fR).
7414 This construct was deprecated in 5.12.0, and has now been made a syntax
7415 error, so \f(CW\*(C`:=\*(C'\fR can be reclaimed as a new operator in the future.
7416 .Sp
7417 If you need an empty attribute list, for example in a code generator, add
7418 a space before the \f(CW\*(C`=\*(C'\fR.
7419 .ie n .IP "Use of %s for non\-UTF\-8 locale is wrong. Assuming a UTF\-8 locale" 4
7420 .el .IP "Use of \f(CW%s\fR for non\-UTF\-8 locale is wrong. Assuming a UTF\-8 locale" 4
7421 .IX Item "Use of %s for non-UTF-8 locale is wrong. Assuming a UTF-8 locale"
7422 (W locale) You are matching a regular expression using locale rules,
7423 and the specified construct was encountered. This construct is only
7424 valid for UTF\-8 locales, which the current locale isn\*(Aqt. This doesn\*(Aqt
7425 make sense. Perl will continue, assuming a Unicode (UTF\-8) locale, but
7426 the results are likely to be wrong.
7427 .IP "Use of freed value in iteration" 4
7428 .IX Item "Use of freed value in iteration"
7429 (F) Perhaps you modified the iterated array within the loop?
7430 This error is typically caused by code like the following:
7431 .Sp
7432 .Vb 2
7433 \& @a = (3,4);
7434 \& @a = () for (1,2,@a);
7435 .Ve
7436 .Sp
7437 You are not supposed to modify arrays while they are being iterated over.
7438 For speed and efficiency reasons, Perl internally does not do full
7439 reference\-counting of iterated items, hence deleting such an item in the
7440 middle of an iteration causes Perl to see a freed value.
7441 .IP "Use of /g modifier is meaningless in split" 4
7442 .IX Item "Use of /g modifier is meaningless in split"
7443 (W regexp) You used the /g modifier on the pattern for a \f(CW\*(C`split\*(C'\fR
7444 operator. Since \f(CW\*(C`split\*(C'\fR always tries to match the pattern
7445 repeatedly, the \f(CW\*(C`/g\*(C'\fR has no effect.
7446 .ie n .IP "Use of \*(Aq%s\*(Aq in \ep{} or \eP{} is deprecated because: %s" 4
7447 .el .IP "Use of \*(Aq%s\*(Aq in \ep{} or \eP{} is deprecated because: \f(CW%s\fR" 4
7448 .IX Item "Use of '%s' in p{} or P{} is deprecated because: %s"
7449 (D deprecated::unicode_property_name) Certain properties are deprecated
7450 by Unicode, and may eventually be removed from the Standard, at which
7451 time Perl will follow along. In the meantime, this message is raised to
7452 notify you.
7453 .ie n .IP "Use of inherited AUTOLOAD for non\-method %s::%s() is no longer allowed" 4
7454 .el .IP "Use of inherited AUTOLOAD for non\-method \f(CW%s::\fR%s() is no longer allowed" 4
7455 .IX Item "Use of inherited AUTOLOAD for non-method %s::%s() is no longer allowed"
7456 (F) As an accidental feature, \f(CW\*(C`AUTOLOAD\*(C'\fR subroutines were looked up as
7457 methods (using the \f(CW@ISA\fR hierarchy), even when the subroutines to be
7458 autoloaded were called as plain functions (e.g. \f(CWFoo::bar()\fR), not as
7459 methods (e.g. \f(CW\*(C`Foo\->bar()\*(C'\fR or \f(CW\*(C`$obj\->bar()\*(C'\fR).
7460 .Sp
7461 This was deprecated in Perl 5.004, and was made fatal in Perl 5.28.
7462 .ie n .IP "Use of %s in printf format not supported" 4
7463 .el .IP "Use of \f(CW%s\fR in printf format not supported" 4
7464 .IX Item "Use of %s in printf format not supported"
7465 (F) You attempted to use a feature of printf that is accessible from
7466 only C. This usually means there\*(Aqs a better way to do it in Perl.
7467 .IP "Use of \*(Aq%s\*(Aq is deprecated as a string delimiter" 4
7468 .IX Item "Use of '%s' is deprecated as a string delimiter"
7469 (D deprecated::delimiter_will_be_paired) You used the given character as
7470 a starting delimiter of a string outside the scope of
7471 \&\f(CW\*(C`use\ feature\ \*(Aqextra_paired_delimiters\*(Aq\*(C'\fR. This character is the
7472 mirror image of another Unicode character; within the scope of that
7473 feature, the two are considered a pair for delimiting strings. It is
7474 planned to make that feature the default, at which point this usage
7475 would become illegal; hence this warning.
7476 .Sp
7477 For now, you may live with this warning, or turn it off, but this code
7478 will no longer compile in a future version of Perl. Or you can turn on
7479 \&\f(CW\*(C`use\ feature\ \*(Aqextra_paired_delimiters\*(Aq\*(C'\fR and use the character that
7480 is the mirror image of this one for the closing string delimiter.
7481 .IP "Use of \*(Aq%s\*(Aq is experimental as a string delimiter" 4
7482 .IX Item "Use of '%s' is experimental as a string delimiter"
7483 (S experimental::extra_paired_delimiters) This warning is emitted if
7484 you use as a string delimiter one of the non\-ASCII mirror image ones
7485 enabled by \f(CW\*(C`use\ feature\ \*(Aqextra_paired_delimiters\*(Aq\*(C'\fR. Simply suppress
7486 the warning if you want to use the feature, but know that in doing so
7487 you are taking the risk of using an experimental feature which may
7488 change or be removed in a future Perl version:
7489 .ie n .IP "Use of %s is not allowed in Unicode property wildcard subpatterns in regex; marked by <\-\-\ HERE in m/%s/" 4
7490 .el .IP "Use of \f(CW%s\fR is not allowed in Unicode property wildcard subpatterns in regex; marked by <\-\-\ HERE in m/%s/" 4
7491 .IX Item "Use of %s is not allowed in Unicode property wildcard subpatterns in regex; marked by <-- HERE in m/%s/"
7492 (F) You were using a wildcard subpattern a Unicode property value, and
7493 the subpattern contained something that is illegal. Not all regular
7494 expression capabilities are legal in such subpatterns, and this is one.
7495 Rewrite your subpattern to not use the offending construct.
7496 See "Wildcards in Property Values" in perlunicode.
7497 .IP "Use of \-l on filehandle%s" 4
7498 .IX Item "Use of -l on filehandle%s"
7499 (W io) A filehandle represents an opened file, and when you opened the file
7500 it already went past any symlink you are presumably trying to look for.
7501 The operation returned \f(CW\*(C`undef\*(C'\fR. Use a filename instead.
7502 .IP "Use of non\-ASCII character 0x%X illegal when \*(Aquse source::encoding ""ascii""\*(Aq is in effect" 4
7503 .IX Item "Use of non-ASCII character 0x%X illegal when 'use source::encoding ""ascii""' is in effect"
7504 (F) This pragma forbids non\-ASCII characters within its scope.
7505 .IP "Use of reference ""%s"" as array index" 4
7506 .IX Item "Use of reference ""%s"" as array index"
7507 (W misc) You tried to use a reference as an array index; this probably
7508 isn\*(Aqt what you mean, because references in numerical context tend
7509 to be huge numbers, and so usually indicates programmer error.
7510 .Sp
7511 If you really do mean it, explicitly numify your reference, like so:
7512 \&\f(CW$array[0+$ref]\fR. This warning is not given for overloaded objects,
7513 however, because you can overload the numification and stringification
7514 operators and then you presumably know what you are doing.
7515 .ie n .IP "Use of strings with code points over 0xFF as arguments to %s operator is not allowed" 4
7516 .el .IP "Use of strings with code points over 0xFF as arguments to \f(CW%s\fR operator is not allowed" 4
7517 .IX Item "Use of strings with code points over 0xFF as arguments to %s operator is not allowed"
7518 (F) You tried to use one of the string bitwise operators (\f(CW\*(C`&\*(C'\fR or \f(CW\*(C`|\*(C'\fR or \f(CW\*(C`^\*(C'\fR or
7519 \&\f(CW\*(C`~\*(C'\fR) on a string containing a code point over 0xFF. The string bitwise
7520 operators treat their operands as strings of bytes, and values beyond
7521 0xFF are nonsensical in this context.
7522 .Sp
7523 Certain instances became fatal in Perl 5.28; others in perl 5.32.
7524 .IP "Use of strings with code points over 0xFF as arguments to vec is forbidden" 4
7525 .IX Item "Use of strings with code points over 0xFF as arguments to vec is forbidden"
7526 (F) You tried to use \f(CW\*(C`vec\*(C'\fR
7527 on a string containing a code point over 0xFF, which is nonsensical here.
7528 .Sp
7529 This became fatal in Perl 5.32.
7530 .ie n .IP "Use of tainted arguments in %s is deprecated" 4
7531 .el .IP "Use of tainted arguments in \f(CW%s\fR is deprecated" 4
7532 .IX Item "Use of tainted arguments in %s is deprecated"
7533 (W taint, deprecated) You have supplied \f(CWsystem()\fR or \f(CWexec()\fR with multiple
7534 arguments and at least one of them is tainted. This used to be allowed
7535 but will become a fatal error in a future version of perl. Untaint your
7536 arguments. See perlsec.
7537 .IP "Use of unassigned code point or non\-standalone grapheme for a delimiter is not allowed" 4
7538 .IX Item "Use of unassigned code point or non-standalone grapheme for a delimiter is not allowed"
7539 (F)
7540 A grapheme is what appears to a native\-speaker of a language to be a
7541 character. In Unicode (and hence Perl) a grapheme may actually be
7542 several adjacent characters that together form a complete grapheme. For
7543 example, there can be a base character, like "R" and an accent, like a
7544 circumflex "^", that appear when displayed to be a single character with
7545 the circumflex hovering over the "R". Perl currently allows things like
7546 that circumflex to be delimiters of strings, patterns, \fIetc\fR. When
7547 displayed, the circumflex would look like it belongs to the character
7548 just to the left of it. In order to move the language to be able to
7549 accept graphemes as delimiters, we cannot allow the use of
7550 delimiters which aren\*(Aqt graphemes by themselves. Also, a delimiter must
7551 already be assigned (or known to be never going to be assigned) to try
7552 to future\-proof code, for otherwise code that works today would fail to
7553 compile if the currently unassigned delimiter ends up being something
7554 that isn\*(Aqt a stand\-alone grapheme. Because Unicode is never going to
7555 assign
7556 non\-character code points, nor
7557 code points that are above the legal Unicode
7558 maximum, those can be delimiters,
7559 and their use is legal.
7560 .IP "Use of uninitialized value%s" 4
7561 .IX Item "Use of uninitialized value%s"
7562 (W uninitialized) An undefined value was used as if it were already
7563 defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
7564 To suppress this warning assign a defined value to your variables.
7565 .Sp
7566 To help you figure out what was undefined, perl will try to tell you
7567 the name of the variable (if any) that was undefined. In some cases
7568 it cannot do this, so it also tells you what operation you used the
7569 undefined value in. Note, however, that perl optimizes your program
7570 and the operation displayed in the warning may not necessarily appear
7571 literally in your program. For example, \f(CW"that $foo"\fR is usually
7572 optimized into \f(CW\*(C`"that " . $foo\*(C'\fR, and the warning will refer to the
7573 \&\f(CW\*(C`concatenation (.)\*(C'\fR operator, even though there is no \f(CW\*(C`.\*(C'\fR in
7574 your program.
7575 .IP """use re \*(Aqstrict\*(Aq"" is experimental" 4
7576 .IX Item """use re 'strict'"" is experimental"
7577 (S experimental::re_strict) The things that are different when a regular
7578 expression pattern is compiled under \f(CW\*(Aqstrict\*(Aq\fR are subject to change
7579 in future Perl releases in incompatible ways. This means that a pattern
7580 that compiles today may not in a future Perl release. This warning is
7581 to alert you to that risk.
7582 .IP "use VERSION is not permitted while another use VERSION of 5.39 or above is in scope" 4
7583 .IX Item "use VERSION is not permitted while another use VERSION of 5.39 or above is in scope"
7584 (F) Once you have a \f(CW\*(C`use VERSION\*(C'\fR declaration that calls for a Perl version
7585 of at least 5.39, you cannot have a subsequent one while the first is visible,
7586 even if it requests a later version.
7587 .IP "use VERSION of 5.39 or above is not permitted while another use VERSION is in scope" 4
7588 .IX Item "use VERSION of 5.39 or above is not permitted while another use VERSION is in scope"
7589 (F) Once you have a \f(CW\*(C`use VERSION\*(C'\fR declaration in scope, you cannot have a
7590 subsequent one that calls for a Perl version of at least 5.39 while the first
7591 is visible.
7592 .IP "Use \ex{...} for more than two hex characters in regex; marked by <\-\-\ HERE in m/%s/" 4
7593 .IX Item "Use x{...} for more than two hex characters in regex; marked by <-- HERE in m/%s/"
7594 (F) In a regular expression, you said something like
7595 .Sp
7596 .Vb 1
7597 \& (?[ [ \exBEEF ] ])
7598 .Ve
7599 .Sp
7600 Perl isn\*(Aqt sure if you meant this
7601 .Sp
7602 .Vb 1
7603 \& (?[ [ \ex{BEEF} ] ])
7604 .Ve
7605 .Sp
7606 or if you meant this
7607 .Sp
7608 .Vb 1
7609 \& (?[ [ \ex{BE} E F ] ])
7610 .Ve
7611 .Sp
7612 You need to add either braces or blanks to disambiguate.
7613 .IP "Using just the first character returned by \eN{} in character class in regex; marked by <\-\-\ HERE in m/%s/" 4
7614 .IX Item "Using just the first character returned by N{} in character class in regex; marked by <-- HERE in m/%s/"
7615 (W regexp) Named Unicode character escapes \f(CW\*(C`(\eN{...})\*(C'\fR may return
7616 a multi\-character sequence. Even though a character class is
7617 supposed to match just one character of input, perl will match
7618 the whole thing correctly, except when the class is inverted
7619 (\f(CW\*(C`[^...]\*(C'\fR), or the escape is the beginning or final end point of
7620 a range. For these, what should happen isn\*(Aqt clear at all. In
7621 these circumstances, Perl discards all but the first character
7622 of the returned sequence, which is not likely what you want.
7623 .IP "Using just the single character results returned by \ep{} in (?[...]) in regex; marked by <\-\-\ HERE in m/%s/" 4
7624 .IX Item "Using just the single character results returned by p{} in (?[...]) in regex; marked by <-- HERE in m/%s/"
7625 (W regexp) Extended character classes currently cannot handle operands
7626 that evaluate to more than one character. These are removed from the
7627 results of the expansion of the \f(CW\*(C`\ep{}\*(C'\fR.
7628 .Sp
7629 This situation can happen, for example, in
7630 .Sp
7631 .Vb 1
7632 \& (?[ \ep{name=/KATAKANA/} ])
7633 .Ve
7634 .Sp
7635 "KATAKANA LETTER AINU P" is a legal Unicode name (technically a "named
7636 sequence"), but it is actually two characters. The above expression
7637 with match only the Unicode names containing KATAKANA that represent
7638 single characters.
7639 .IP "Using /u for \*(Aq%s\*(Aq instead of /%s in regex; marked by <\-\-\ HERE in m/%s/" 4
7640 .IX Item "Using /u for '%s' instead of /%s in regex; marked by <-- HERE in m/%s/"
7641 (W regexp) You used a Unicode boundary (\f(CW\*(C`\eb{...}\*(C'\fR or \f(CW\*(C`\eB{...}\*(C'\fR) in a
7642 portion of a regular expression where the character set modifiers \f(CW\*(C`/a\*(C'\fR
7643 or \f(CW\*(C`/aa\*(C'\fR are in effect. These two modifiers indicate an ASCII
7644 interpretation, and this doesn\*(Aqt make sense for a Unicode definition.
7645 The generated regular expression will compile so that the boundary uses
7646 all of Unicode. No other portion of the regular expression is affected.
7647 .ie n .IP "Using !~ with %s doesn\*(Aqt make sense" 4
7648 .el .IP "Using !~ with \f(CW%s\fR doesn\*(Aqt make sense" 4
7649 .IX Item "Using !~ with %s doesn't make sense"
7650 (F) Using the \f(CW\*(C`!~\*(C'\fR operator with \f(CW\*(C`s///r\*(C'\fR, \f(CW\*(C`tr///r\*(C'\fR or \f(CW\*(C`y///r\*(C'\fR is
7651 currently reserved for future use, as the exact behavior has not
7652 been decided. (Simply returning the boolean opposite of the
7653 modified string is usually not particularly useful.)
7654 .IP "UTF\-16 surrogate U+%X" 4
7655 .IX Item "UTF-16 surrogate U+%X"
7656 (S surrogate) You had a UTF\-16 surrogate in a context where they are
7657 not considered acceptable. These code points, between U+D800 and
7658 U+DFFF (inclusive), are used by Unicode only for UTF\-16. However, Perl
7659 internally allows all unsigned integer code points (up to the size limit
7660 available on your platform), including surrogates. But these can cause
7661 problems when being input or output, which is likely where this message
7662 came from. If you really really know what you are doing you can turn
7663 off this warning by \f(CW\*(C`no warnings \*(Aqsurrogate\*(Aq;\*(C'\fR.
7664 .ie n .IP "Value of %s can be ""0""; test with \fBdefined()\fR" 4
7665 .el .IP "Value of \f(CW%s\fR can be ""0""; test with \fBdefined()\fR" 4
7666 .IX Item "Value of %s can be ""0""; test with defined()"
7667 (W misc) In a conditional expression, you used <HANDLE>, <*> (glob),
7668 \&\f(CWeach()\fR, or \f(CWreaddir()\fR as a boolean value. Each of these constructs
7669 can return a value of "0"; that would make the conditional expression
7670 false, which is probably not what you intended. When using these
7671 constructs in conditional expressions, test their values with the
7672 \&\f(CW\*(C`defined\*(C'\fR operator.
7673 .IP "Value of CLI symbol ""%s"" too long" 4
7674 .IX Item "Value of CLI symbol ""%s"" too long"
7675 (W misc) A warning peculiar to VMS. Perl tried to read the value of an
7676 \&\f(CW%ENV\fR element from a CLI symbol table, and found a resultant string
7677 longer than 1024 characters. The return value has been truncated to
7678 1024 characters.
7679 .IP "Variable ""%s"" is not available" 4
7680 .IX Item "Variable ""%s"" is not available"
7681 (W closure) During compilation, an inner named subroutine or eval is
7682 attempting to capture an outer lexical that is not currently available.
7683 This can happen for one of two reasons. First, the outer lexical may be
7684 declared in an outer anonymous subroutine that has not yet been created.
7685 (Remember that named subs are created at compile time, while anonymous
7686 subs are created at run\-time.) For example,
7687 .Sp
7688 .Vb 1
7689 \& sub { my $x; sub f { $x } }
7690 .Ve
7691 .Sp
7692 At the time that f is created, it can\*(Aqt capture the current value of \f(CW$x\fR,
7693 since the anonymous subroutine hasn\*(Aqt been created yet. Conversely,
7694 the following won\*(Aqt give a warning since the anonymous subroutine has by
7695 now been created and is live:
7696 .Sp
7697 .Vb 1
7698 \& sub { my $x; eval \*(Aqsub f { $x }\*(Aq }\->();
7699 .Ve
7700 .Sp
7701 The second situation is caused by an eval accessing a variable that has
7702 gone out of scope, for example,
7703 .Sp
7704 .Vb 5
7705 \& sub f {
7706 \& my $x;
7707 \& sub { eval \*(Aq$x\*(Aq }
7708 \& }
7709 \& f()\->();
7710 .Ve
7711 .Sp
7712 Here, when the \*(Aq$x\*(Aq in the eval is being compiled, f() is not currently
7713 being executed, so its \f(CW$x\fR is not available for capture.
7714 .IP "Variable ""%s"" is not imported%s" 4
7715 .IX Item "Variable ""%s"" is not imported%s"
7716 (S misc) With "use strict" in effect, you referred to a global variable
7717 that you apparently thought was imported from another module, because
7718 something else of the same name (usually a subroutine) is exported by
7719 that module. It usually means you put the wrong funny character on the
7720 front of your variable. It is also possible you used an "our" variable
7721 whose scope has ended.
7722 .IP "Variable length lookbehind not implemented in regex m/%s/" 4
7723 .IX Item "Variable length lookbehind not implemented in regex m/%s/"
7724 (F) \fBThis message no longer should be raised as of Perl 5.30.\fR It is
7725 retained in this document as a convenience for people using an earlier
7726 Perl version.
7727 .Sp
7728 In Perl 5.30 and earlier, lookbehind is allowed
7729 only for subexpressions whose length is fixed and
7730 known at compile time. For positive lookbehind, you can use the \f(CW\*(C`\eK\*(C'\fR
7731 regex construct as a way to get the equivalent functionality. See
7732 (?<=pattern) and \eK in perlre.
7733 .Sp
7734 Starting in Perl 5.18, there are non\-obvious Unicode rules under \f(CW\*(C`/i\*(C'\fR
7735 that can match variably, but which you might not think could. For
7736 example, the substring \f(CW"ss"\fR can match the single character LATIN
7737 SMALL LETTER SHARP S. Here\*(Aqs a complete list of the current ones
7738 affecting ASCII characters:
7739 .Sp
7740 .Vb 11
7741 \& ASCII
7742 \& sequence Matches single letter under /i
7743 \& FF U+FB00 LATIN SMALL LIGATURE FF
7744 \& FFI U+FB03 LATIN SMALL LIGATURE FFI
7745 \& FFL U+FB04 LATIN SMALL LIGATURE FFL
7746 \& FI U+FB01 LATIN SMALL LIGATURE FI
7747 \& FL U+FB02 LATIN SMALL LIGATURE FL
7748 \& SS U+00DF LATIN SMALL LETTER SHARP S
7749 \& U+1E9E LATIN CAPITAL LETTER SHARP S
7750 \& ST U+FB06 LATIN SMALL LIGATURE ST
7751 \& U+FB05 LATIN SMALL LIGATURE LONG S T
7752 .Ve
7753 .Sp
7754 This list is subject to change, but is quite unlikely to.
7755 Each ASCII sequence can be any combination of upper\- and lowercase.
7756 .Sp
7757 You can avoid this by using a bracketed character class in the
7758 lookbehind assertion, like
7759 .Sp
7760 .Vb 2
7761 \& (?<![sS]t)
7762 \& (?<![fF]f[iI])
7763 .Ve
7764 .Sp
7765 This fools Perl into not matching the ligatures.
7766 .Sp
7767 Another option for Perls starting with 5.16, if you only care about
7768 ASCII matches, is to add the \f(CW\*(C`/aa\*(C'\fR modifier to the regex. This will
7769 exclude all these non\-obvious matches, thus getting rid of this message.
7770 You can also say
7771 .Sp
7772 .Vb 1
7773 \& use if $] ge 5.016, re => \*(Aq/aa\*(Aq;
7774 .Ve
7775 .Sp
7776 to apply \f(CW\*(C`/aa\*(C'\fR to all regular expressions compiled within its scope.
7777 See re.
7778 .IP "Variable length positive lookbehind with capturing is experimental in regex m/%s/" 4
7779 .IX Item "Variable length positive lookbehind with capturing is experimental in regex m/%s/"
7780 (W) Variable length positive lookbehind with capturing is not well defined. This
7781 warning alerts you to the fact that you are using a construct which may
7782 change in a future version of perl. See the
7783 documentation of Positive Lookbehind in perlre
7784 for details. You may silence this warning with the following:
7785 .Sp
7786 .Vb 1
7787 \& no warnings \*(Aqexperimental::vlb\*(Aq;
7788 .Ve
7789 .IP "Variable length negative lookbehind with capturing is experimental in regex m/%s/" 4
7790 .IX Item "Variable length negative lookbehind with capturing is experimental in regex m/%s/"
7791 (W) Variable length negative lookbehind with capturing is not well defined. This
7792 warning alerts you to the fact that you are using a construct which may
7793 change in a future version of perl. See the
7794 documentation of Negative Lookbehind in perlre
7795 for details. You may silence this warning with the following:
7796 .Sp
7797 .Vb 1
7798 \& no warnings \*(Aqexperimental::vlb\*(Aq;
7799 .Ve
7800 .ie n .IP """%s"" variable %s masks earlier declaration in same %s" 4
7801 .el .IP """%s"" variable \f(CW%s\fR masks earlier declaration in same \f(CW%s\fR" 4
7802 .IX Item """%s"" variable %s masks earlier declaration in same %s"
7803 (W shadow) A "my", "our", "state" or "field" variable has been redeclared in
7804 the current scope or statement, effectively eliminating all access to the
7805 previous instance. This is almost always a typographical error. Note
7806 that the earlier variable will still exist until the end of the scope
7807 or until all closure references to it are destroyed.
7808 .IP "Variable syntax" 4
7809 .IX Item "Variable syntax"
7810 (A) You\*(Aqve accidentally run your script through \fBcsh\fR instead
7811 of Perl. Check the #! line, or manually feed your script into
7812 Perl yourself.
7813 .IP "Variable ""%s"" will not stay shared" 4
7814 .IX Item "Variable ""%s"" will not stay shared"
7815 (W closure) An inner (nested) \fInamed\fR subroutine is referencing a
7816 lexical variable defined in an outer named subroutine.
7817 .Sp
7818 When the inner subroutine is called, it will see the value of
7819 the outer subroutine\*(Aqs variable as it was before and during the *first*
7820 call to the outer subroutine; in this case, after the first call to the
7821 outer subroutine is complete, the inner and outer subroutines will no
7822 longer share a common value for the variable. In other words, the
7823 variable will no longer be shared.
7824 .Sp
7825 This problem can usually be solved by making the inner subroutine
7826 anonymous, using the \f(CW\*(C`sub {}\*(C'\fR syntax. When inner anonymous subs that
7827 reference variables in outer subroutines are created, they
7828 are automatically rebound to the current values of such variables.
7829 .IP "vector argument not supported with alpha versions" 4
7830 .IX Item "vector argument not supported with alpha versions"
7831 (S printf) The \f(CW%vd\fR (s)printf format does not support version objects
7832 with alpha parts.
7833 .IP "Verb pattern \*(Aq%s\*(Aq has a mandatory argument in regex; marked by <\-\-\ HERE in m/%s/" 4
7834 .IX Item "Verb pattern '%s' has a mandatory argument in regex; marked by <-- HERE in m/%s/"
7835 (F) You used a verb pattern that requires an argument. Supply an
7836 argument or check that you are using the right verb.
7837 .IP "Verb pattern \*(Aq%s\*(Aq may not have an argument in regex; marked by <\-\-\ HERE in m/%s/" 4
7838 .IX Item "Verb pattern '%s' may not have an argument in regex; marked by <-- HERE in m/%s/"
7839 (F) You used a verb pattern that is not allowed an argument. Remove the
7840 argument or check that you are using the right verb.
7841 .IP "Version control conflict marker" 4
7842 .IX Item "Version control conflict marker"
7843 (F) The parser found a line starting with \f(CW\*(C`<<<<<<<\*(C'\fR,
7844 \&\f(CW\*(C`>>>>>>>\*(C'\fR, or \f(CW\*(C`=======\*(C'\fR. These may be left by a
7845 version control system to mark conflicts after a failed merge operation.
7846 .IP "Version number must be a constant number" 4
7847 .IX Item "Version number must be a constant number"
7848 (P) The attempt to translate a \f(CW\*(C`use Module n.n LIST\*(C'\fR statement into
7849 its equivalent \f(CW\*(C`BEGIN\*(C'\fR block found an internal inconsistency with
7850 the version number.
7851 .IP "Version string \*(Aq%s\*(Aq contains invalid data; ignoring: \*(Aq%s\*(Aq" 4
7852 .IX Item "Version string '%s' contains invalid data; ignoring: '%s'"
7853 (W misc) The version string contains invalid characters at the end, which
7854 are being ignored.
7855 .IP "Warning: something\*(Aqs wrong" 4
7856 .IX Item "Warning: something's wrong"
7857 (W) You passed \fBwarn()\fR an empty string (the equivalent of \f(CW\*(C`warn ""\*(C'\fR) or
7858 you called it with no args and \f(CW$@\fR was empty.
7859 .ie n .IP "Warning: unable to close filehandle %s properly" 4
7860 .el .IP "Warning: unable to close filehandle \f(CW%s\fR properly" 4
7861 .IX Item "Warning: unable to close filehandle %s properly"
7862 (S) The implicit \fBclose()\fR done by an \fBopen()\fR got an error indication on
7863 the \fBclose()\fR. This usually indicates your file system ran out of disk
7864 space.
7865 .ie n .IP "Warning: unable to close filehandle properly: %s" 4
7866 .el .IP "Warning: unable to close filehandle properly: \f(CW%s\fR" 4
7867 .IX Item "Warning: unable to close filehandle properly: %s"
7868 .PD 0
7869 .ie n .IP "Warning: unable to close filehandle %s properly: %s" 4
7870 .el .IP "Warning: unable to close filehandle \f(CW%s\fR properly: \f(CW%s\fR" 4
7871 .IX Item "Warning: unable to close filehandle %s properly: %s"
7872 .PD
7873 (S io) There were errors during the implicit \fBclose()\fR done on a filehandle
7874 when its reference count reached zero while it was still open, e.g.:
7875 .Sp
7876 .Vb 4
7877 \& {
7878 \& open my $fh, \*(Aq>\*(Aq, $file or die "open: \*(Aq$file\*(Aq: $!\en";
7879 \& print $fh $data or die "print: $!";
7880 \& } # implicit close here
7881 .Ve
7882 .Sp
7883 Because various errors may only be detected by \fBclose()\fR (e.g. buffering could
7884 allow the \f(CW\*(C`print\*(C'\fR in this example to return true even when the disk is full),
7885 it is dangerous to ignore its result. So when it happens implicitly, perl
7886 will signal errors by warning.
7887 .Sp
7888 \&\fBPrior to version 5.22.0, perl ignored such errors\fR, so the common idiom shown
7889 above was liable to cause \fBsilent data loss\fR.
7890 .IP "Warning: Use of ""%s"" without parentheses is ambiguous" 4
7891 .IX Item "Warning: Use of ""%s"" without parentheses is ambiguous"
7892 (S ambiguous) You wrote a unary operator followed by something that
7893 looks like a binary operator that could also have been interpreted as a
7894 term or unary operator. For instance, if you know that the rand
7895 function has a default argument of 1.0, and you write
7896 .Sp
7897 .Vb 1
7898 \& rand + 5;
7899 .Ve
7900 .Sp
7901 you may THINK you wrote the same thing as
7902 .Sp
7903 .Vb 1
7904 \& rand() + 5;
7905 .Ve
7906 .Sp
7907 but in actual fact, you got
7908 .Sp
7909 .Vb 1
7910 \& rand(+5);
7911 .Ve
7912 .Sp
7913 So put in parentheses to say what you really mean.
7914 .ie n .IP "Wide character in %s" 4
7915 .el .IP "Wide character in \f(CW%s\fR" 4
7916 .IX Item "Wide character in %s"
7917 (S utf8) Perl met a wide character (ordinal >255) when it wasn\*(Aqt
7918 expecting one. This warning is by default on for I/O (like print).
7919 .Sp
7920 If this warning does come from I/O, the easiest
7921 way to quiet it is simply to add the \f(CW\*(C`:utf8\*(C'\fR layer, \fIe.g.\fR,
7922 \&\f(CW\*(C`binmode\ STDOUT,\ \*(Aq:utf8\*(Aq\*(C'\fR. Another way to turn off the warning is
7923 to add \f(CW\*(C`no\ warnings\ \*(Aqutf8\*(Aq;\*(C'\fR but that is often closer to
7924 cheating. In general, you are supposed to explicitly mark the
7925 filehandle with an encoding, see open and "binmode" in perlfunc.
7926 .Sp
7927 If the warning comes from other than I/O, this diagnostic probably
7928 indicates that incorrect results are being obtained. You should examine
7929 your code to determine how a wide character is getting to an operation
7930 that doesn\*(Aqt handle them.
7931 .ie n .IP "Wide character (U+%X) in %s" 4
7932 .el .IP "Wide character (U+%X) in \f(CW%s\fR" 4
7933 .IX Item "Wide character (U+%X) in %s"
7934 (W locale) While in a single\-byte locale (\fIi.e.\fR, a non\-UTF\-8
7935 one), a multi\-byte character was encountered. Perl considers this
7936 character to be the specified Unicode code point. Combining non\-UTF\-8
7937 locales and Unicode is dangerous. Almost certainly some characters
7938 will have two different representations. For example, in the ISO 8859\-7
7939 (Greek) locale, the code point 0xC3 represents a Capital Gamma. But so
7940 also does 0x393. This will make string comparisons unreliable.
7941 .Sp
7942 You likely need to figure out how this multi\-byte character got mixed up
7943 with your single\-byte locale (or perhaps you thought you had a UTF\-8
7944 locale, but Perl disagrees).
7945 .IP "Within []\-length \*(Aq%c\*(Aq not allowed" 4
7946 .IX Item "Within []-length '%c' not allowed"
7947 (F) The count in the (un)pack template may be replaced by \f(CW\*(C`[TEMPLATE]\*(C'\fR
7948 only if \f(CW\*(C`TEMPLATE\*(C'\fR always matches the same amount of packed bytes that
7949 can be determined from the template alone. This is not possible if
7950 it contains any of the codes @, /, U, u, w or a *\-length. Redesign
7951 the template.
7952 .ie n .IP "While trying to resolve method call %s\->%s() can not locate package ""%s"" yet it is mentioned in @%s::ISA (perhaps you forgot to load ""%s""?)" 4
7953 .el .IP "While trying to resolve method call \f(CW%s\fR\->%s() can not locate package ""%s"" yet it is mentioned in @%s::ISA (perhaps you forgot to load ""%s""?)" 4
7954 .IX Item "While trying to resolve method call %s->%s() can not locate package ""%s"" yet it is mentioned in @%s::ISA (perhaps you forgot to load ""%s""?)"
7955 (W syntax) It is possible that the \f(CW@ISA\fR contains a misspelled or never loaded
7956 package name, which can result in perl choosing an unexpected parent
7957 class\*(Aqs method to resolve the method call. If this is deliberate you
7958 can do something like
7959 .Sp
7960 .Vb 1
7961 \& @Missing::Package::ISA = ();
7962 .Ve
7963 .Sp
7964 to silence the warnings, otherwise you should correct the package name, or
7965 ensure that the package is loaded prior to the method call.
7966 .IP "%s() with negative argument" 4
7967 .IX Item "%s() with negative argument"
7968 (S misc) Certain operations make no sense with negative arguments.
7969 Warning is given and the operation is not done.
7970 .ie n .IP "\fBwrite()\fR on closed filehandle %s" 4
7971 .el .IP "\fBwrite()\fR on closed filehandle \f(CW%s\fR" 4
7972 .IX Item "write() on closed filehandle %s"
7973 (W closed) The filehandle you\*(Aqre writing to got itself closed sometime
7974 before now. Check your control flow.
7975 .IP "wrong alignment in \fBfree()\fR" 4
7976 .IX Item "wrong alignment in free()"
7977 (P) An invalid pointer was passed to \f(CW\*(C`Perl_mfree\*(C'\fR (also known as \f(CW\*(C`Safefree\*(C'\fR).
7978 .ie n .IP "%s ""\ex%X"" does not map to Unicode" 4
7979 .el .IP "\f(CW%s\fR ""\ex%X"" does not map to Unicode" 4
7980 .IX Item "%s ""x%X"" does not map to Unicode"
7981 (S utf8) When reading in different encodings, Perl tries to
7982 map everything into Unicode characters. The bytes you read
7983 in are not legal in this encoding. For example
7984 .Sp
7985 .Vb 1
7986 \& utf8 "\exE4" does not map to Unicode
7987 .Ve
7988 .Sp
7989 if you try to read in the a\-diaereses Latin\-1 as UTF\-8.
7990 .IP "\*(AqX\*(Aq outside of string" 4
7991 .IX Item "'X' outside of string"
7992 (F) You had a (un)pack template that specified a relative position before
7993 the beginning of the string being (un)packed. See "pack" in perlfunc.
7994 .IP "\*(Aqx\*(Aq outside of string in unpack" 4
7995 .IX Item "'x' outside of string in unpack"
7996 (F) You had an unpack template that specified a relative position after
7997 the end of the string being unpacked. See "pack" in perlfunc.
7998 .IP "YOU HAVEN\*(AqT DISABLED SET\-ID SCRIPTS IN THE KERNEL YET!" 4
7999 .IX Item "YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!"
8000 (F) And you probably never will, because you probably don\*(Aqt have the
8001 sources to your kernel, and your vendor probably doesn\*(Aqt give a rip
8002 about what you want. There is a vulnerability anywhere that you have a
8003 set\-id script, and to close it you need to remove the set\-id bit from
8004 the script that you\*(Aqre attempting to run. To actually run the script
8005 set\-id, your best bet is to put a set\-id C wrapper around your script.
8006 .IP "You need to quote ""%s""" 4
8007 .IX Item "You need to quote ""%s"""
8008 (W syntax) You assigned a bareword as a signal handler name:
8009 .Sp
8010 .Vb 1
8011 \& $SIG{...} = foo;
8012 .Ve
8013 .Sp
8014 However, this will not make \f(CW\*(C`sub foo\*(C'\fR the signal handler. Instead, Perl
8015 will call the subroutine when the assignment is executed and use the
8016 returned value as the signal handler, which is probably not what you want.
8017 (If it \fIis\fR what you want, put \f(CW\*(C`()\*(C'\fR after the subroutine name to avoid
8018 the warning.)
8019 .Sp
8020 To register the subroutine as the signal handler, take a reference to it:
8021 .Sp
8022 .Vb 1
8023 \& $SIG{...} = \e&foo;
8024 .Ve
8025 .IP "Your random numbers are not that random" 4
8026 .IX Item "Your random numbers are not that random"
8027 (F) When trying to initialize the random seed for hashes, Perl could
8028 not get any randomness out of your system. This usually indicates
8029 Something Very Wrong.
8030 .IP "Zero length \eN{} in regex; marked by <\-\-\ HERE in m/%s/" 4
8031 .IX Item "Zero length N{} in regex; marked by <-- HERE in m/%s/"
8032 (F) Named Unicode character escapes (\f(CW\*(C`\eN{...}\*(C'\fR) may return a zero\-length
8033 sequence. Such an escape was used in an extended character class, i.e.
8034 \&\f(CW\*(C`(?[...])\*(C'\fR, or under \f(CW\*(C`use re \*(Aqstrict\*(Aq\*(C'\fR, which is not permitted. Check
8035 that the correct escape has been used, and the correct charnames handler
8036 is in scope. The <\-\-\ HERE shows whereabouts in the regular
8037 expression the problem was discovered.
8038 .SH "SEE ALSO"
8039 .IX Header "SEE ALSO"
8040 warnings, diagnostics.