Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / man / man1 / perldiag.1
CommitLineData
86530b38
AT
1.\" Automatically generated by Pod::Man v1.34, Pod::Parser v1.13
2.\"
3.\" Standard preamble:
4.\" ========================================================================
5.de Sh \" Subsection heading
6.br
7.if t .Sp
8.ne 5
9.PP
10\fB\\$1\fR
11.PP
12..
13.de Sp \" Vertical space (when we can't use .PP)
14.if t .sp .5v
15.if n .sp
16..
17.de Vb \" Begin verbatim text
18.ft CW
19.nf
20.ne \\$1
21..
22.de Ve \" End verbatim text
23.ft R
24.fi
25..
26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31.\" expand to `' in nroff, nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\
35. ds -- \(*W-
36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39. ds L" ""
40. ds R" ""
41. ds C` ""
42. ds C' ""
43'br\}
44.el\{\
45. ds -- \|\(em\|
46. ds PI \(*p
47. ds L" ``
48. ds R" ''
49'br\}
50.\"
51.\" If the F register is turned on, we'll generate index entries on stderr for
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53.\" entries marked with X<> in POD. Of course, you'll have to process the
54.\" output yourself in some meaningful fashion.
55.if \nF \{\
56. de IX
57. tm Index:\\$1\t\\n%\t"\\$2"
58..
59. nr % 0
60. rr F
61.\}
62.\"
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes
64.\" way too many mistakes in technical documents.
65.hy 0
66.if n .na
67.\"
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69.\" Fear. Run. Save yourself. No user-serviceable parts.
70. \" fudge factors for nroff and troff
71.if n \{\
72. ds #H 0
73. ds #V .8m
74. ds #F .3m
75. ds #[ \f1
76. ds #] \fP
77.\}
78.if t \{\
79. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80. ds #V .6m
81. ds #F 0
82. ds #[ \&
83. ds #] \&
84.\}
85. \" simple accents for nroff and troff
86.if n \{\
87. ds ' \&
88. ds ` \&
89. ds ^ \&
90. ds , \&
91. ds ~ ~
92. ds /
93.\}
94.if t \{\
95. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101.\}
102. \" troff and (daisy-wheel) nroff accents
103.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110.ds ae a\h'-(\w'a'u*4/10)'e
111.ds Ae A\h'-(\w'A'u*4/10)'E
112. \" corrections for vroff
113.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115. \" for low resolution devices (crt and lpr)
116.if \n(.H>23 .if \n(.V>19 \
117\{\
118. ds : e
119. ds 8 ss
120. ds o a
121. ds d- d\h'-1'\(ga
122. ds D- D\h'-1'\(hy
123. ds th \o'bp'
124. ds Th \o'LP'
125. ds ae ae
126. ds Ae AE
127.\}
128.rm #[ #] #H #V #F C
129.\" ========================================================================
130.\"
131.IX Title "PERLDIAG 1"
132.TH PERLDIAG 1 "2002-06-08" "perl v5.8.0" "Perl Programmers Reference Guide"
133.SH "NAME"
134perldiag \- various Perl diagnostics
135.SH "DESCRIPTION"
136.IX Header "DESCRIPTION"
137These messages are classified as follows (listed in increasing order of
138desperation):
139.PP
140.Vb 7
141\& (W) A warning (optional).
142\& (D) A deprecation (optional).
143\& (S) A severe warning (default).
144\& (F) A fatal error (trappable).
145\& (P) An internal error you should never see (trappable).
146\& (X) A very fatal error (nontrappable).
147\& (A) An alien error message (not generated by Perl).
148.Ve
149.PP
150The majority of messages from the first three classifications above
151(W, D & S) can be controlled using the \f(CW\*(C`warnings\*(C'\fR pragma.
152.PP
153If a message can be controlled by the \f(CW\*(C`warnings\*(C'\fR pragma, its warning
154category is included with the classification letter in the description
155below.
156.PP
157Optional warnings are enabled by using the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-w\fR
158and \fB\-W\fR switches. Warnings may be captured by setting \f(CW$SIG{_\|_WARN_\|_}\fR
159to a reference to a routine that will be called on each warning instead
160of printing it. See perlvar.
161.PP
162Default warnings are always enabled unless they are explicitly disabled
163with the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-X\fR switch.
164.PP
165Trappable errors may be trapped using the eval operator. See
166\&\*(L"eval\*(R" in perlfunc. In almost all cases, warnings may be selectively
167disabled or promoted to fatal errors using the \f(CW\*(C`warnings\*(C'\fR pragma.
168See warnings.
169.PP
170The messages are in alphabetical order, without regard to upper or
171lower\-case. Some of these messages are generic. Spots that vary are
172denoted with a \f(CW%s\fR or other printf-style escape. These escapes are
173ignored by the alphabetical order, as are all characters other than
174letters. To look up your message, just ignore anything that is not a
175letter.
176.ie n .IP "A thread exited while %d other threads were still running" 4
177.el .IP "A thread exited while \f(CW%d\fR other threads were still running" 4
178.IX Item "A thread exited while %d other threads were still running"
179(W) When using threaded Perl, a thread (not necessarily the main
180thread) exited while there were still other threads running.
181Usually it's a good idea to first collect the return values of the
182created threads by joining them, and only then exit from the main
183thread. See threads.
184.ie n .IP "\fIaccept()\fR on closed socket %s" 4
185.el .IP "\fIaccept()\fR on closed socket \f(CW%s\fR" 4
186.IX Item "accept() on closed socket %s"
187(W closed) You tried to do an accept on a closed socket. Did you forget
188to check the return value of your \fIsocket()\fR call? See
189\&\*(L"accept\*(R" in perlfunc.
190.ie n .IP "Allocation too large: %lx" 4
191.el .IP "Allocation too large: \f(CW%lx\fR" 4
192.IX Item "Allocation too large: %lx"
193(X) You can't allocate more than 64K on an MS-DOS machine.
194.ie n .IP "'!' allowed only after types %s" 4
195.el .IP "'!' allowed only after types \f(CW%s\fR" 4
196.IX Item "'!' allowed only after types %s"
197(F) The '!' is allowed in \fIpack()\fR and \fIunpack()\fR only after certain types.
198See \*(L"pack\*(R" in perlfunc.
199.IP "Ambiguous call resolved as CORE::%s(), qualify as such or use &" 4
200.IX Item "Ambiguous call resolved as CORE::%s(), qualify as such or use &"
201(W ambiguous) A subroutine you have declared has the same name as a Perl
202keyword, and you have used the name without qualification for calling
203one or the other. Perl decided to call the builtin because the
204subroutine is not imported.
205.Sp
206To force interpretation as a subroutine call, either put an ampersand
207before the subroutine name, or qualify the name with its package.
208Alternatively, you can import the subroutine (or pretend that it's
209imported with the \f(CW\*(C`use subs\*(C'\fR pragma).
210.Sp
211To silently interpret it as the Perl operator, use the \f(CW\*(C`CORE::\*(C'\fR prefix
212on the operator (e.g. \f(CW\*(C`CORE::log($x)\*(C'\fR) or declare the subroutine
213to be an object method (see \*(L"Subroutine Attributes\*(R" in perlsub or
214attributes).
215.IP "Ambiguous range in transliteration operator" 4
216.IX Item "Ambiguous range in transliteration operator"
217(F) You wrote something like \f(CW\*(C`tr/a\-z\-0//\*(C'\fR which doesn't mean anything at
218all. To include a \f(CW\*(C`\-\*(C'\fR character in a transliteration, put it either
219first or last. (In the past, \f(CW\*(C`tr/a\-z\-0//\*(C'\fR was synonymous with
220\&\f(CW\*(C`tr/a\-y//\*(C'\fR, which was probably not what you would have expected.)
221.ie n .IP "Ambiguous use of %s\fR resolved as \f(CW%s" 4
222.el .IP "Ambiguous use of \f(CW%s\fR resolved as \f(CW%s\fR" 4
223.IX Item "Ambiguous use of %s resolved as %s"
224(W ambiguous)(S) You said something that may not be interpreted the way
225you thought. Normally it's pretty easy to disambiguate it by supplying
226a missing quote, operator, parenthesis pair or declaration.
227.IP "'|' and '<' may not both be specified on command line" 4
228.IX Item "'|' and '<' may not both be specified on command line"
229(F) An error peculiar to \s-1VMS\s0. Perl does its own command line
230redirection, and found that \s-1STDIN\s0 was a pipe, and that you also tried to
231redirect \s-1STDIN\s0 using '<'. Only one \s-1STDIN\s0 stream to a customer, please.
232.IP "'|' and '>' may not both be specified on command line" 4
233.IX Item "'|' and '>' may not both be specified on command line"
234(F) An error peculiar to \s-1VMS\s0. Perl does its own command line
235redirection, and thinks you tried to redirect stdout both to a file and
236into a pipe to another command. You need to choose one or the other,
237though nothing's stopping you from piping into a program or Perl script
238which 'splits' output into two streams, such as
239.Sp
240.Vb 6
241\& open(OUT,">$ARGV[0]") or die "Can't write to $ARGV[0]: $!";
242\& while (<STDIN>) {
243\& print;
244\& print OUT;
245\& }
246\& close OUT;
247.Ve
248.ie n .IP "Applying %s\fR to \f(CW%s will act on scalar(%s)" 4
249.el .IP "Applying \f(CW%s\fR to \f(CW%s\fR will act on scalar(%s)" 4
250.IX Item "Applying %s to %s will act on scalar(%s)"
251(W misc) The pattern match (\f(CW\*(C`//\*(C'\fR), substitution (\f(CW\*(C`s///\*(C'\fR), and
252transliteration (\f(CW\*(C`tr///\*(C'\fR) operators work on scalar values. If you apply
253one of them to an array or a hash, it will convert the array or hash to
254a scalar value \*(-- the length of an array, or the population info of a
255hash \*(-- and then work on that scalar value. This is probably not what
256you meant to do. See \*(L"grep\*(R" in perlfunc and \*(L"map\*(R" in perlfunc for
257alternatives.
258.IP "Args must match #! line" 4
259.IX Item "Args must match #! line"
260(F) The setuid emulator requires that the arguments Perl was invoked
261with match the arguments specified on the #! line. Since some systems
262impose a one-argument limit on the #! line, try combining switches;
263for example, turn \f(CW\*(C`\-w \-U\*(C'\fR into \f(CW\*(C`\-wU\*(C'\fR.
264.IP "Arg too short for msgsnd" 4
265.IX Item "Arg too short for msgsnd"
266(F) \fImsgsnd()\fR requires a string at least as long as sizeof(long).
267.IP "%s argument is not a \s-1HASH\s0 or \s-1ARRAY\s0 element" 4
268.IX Item "%s argument is not a HASH or ARRAY element"
269(F) The argument to \fIexists()\fR must be a hash or array element, such as:
270.Sp
271.Vb 2
272\& $foo{$bar}
273\& $ref->{"susie"}[12]
274.Ve
275.IP "%s argument is not a \s-1HASH\s0 or \s-1ARRAY\s0 element or slice" 4
276.IX Item "%s argument is not a HASH or ARRAY element or slice"
277(F) The argument to \fIdelete()\fR must be either a hash or array element,
278such as:
279.Sp
280.Vb 2
281\& $foo{$bar}
282\& $ref->{"susie"}[12]
283.Ve
284.Sp
285or a hash or array slice, such as:
286.Sp
287.Vb 2
288\& @foo[$bar, $baz, $xyzzy]
289\& @{$ref->[12]}{"susie", "queue"}
290.Ve
291.IP "%s argument is not a subroutine name" 4
292.IX Item "%s argument is not a subroutine name"
293(F) The argument to \fIexists()\fR for \f(CW\*(C`exists &sub\*(C'\fR must be a subroutine
294name, and not a subroutine call. \f(CW\*(C`exists &sub()\*(C'\fR will generate this
295error.
296.ie n .IP "Argument ""%s"" isn't numeric%s" 4
297.el .IP "Argument ``%s'' isn't numeric%s" 4
298.IX Item "Argument %s isn't numeric%s"
299(W numeric) The indicated string was fed as an argument to an operator
300that expected a numeric value instead. If you're fortunate the message
301will identify which operator was so unfortunate.
302.ie n .IP "Array @%s missing the @ in argument %d of %s()" 4
303.el .IP "Array @%s missing the @ in argument \f(CW%d\fR of %s()" 4
304.IX Item "Array @%s missing the @ in argument %d of %s()"
305(D deprecated) Really old Perl let you omit the @ on array names in some
306spots. This is now heavily deprecated.
307.ie n .IP "assertion botched: %s" 4
308.el .IP "assertion botched: \f(CW%s\fR" 4
309.IX Item "assertion botched: %s"
310(P) The malloc package that comes with Perl had an internal failure.
311.ie n .IP "Assertion failed: file ""%s""" 4
312.el .IP "Assertion failed: file ``%s''" 4
313.IX Item "Assertion failed: file %s"
314(P) A general assertion failed. The file in question must be examined.
315.IP "Assignment to both a list and a scalar" 4
316.IX Item "Assignment to both a list and a scalar"
317(F) If you assign to a conditional operator, the 2nd and 3rd arguments
318must either both be scalars or both be lists. Otherwise Perl won't
319know which context to supply to the right side.
320.IP "Attempt to access disallowed key '%s' in a restricted hash" 4
321.IX Item "Attempt to access disallowed key '%s' in a restricted hash"
322(F) The failing code has attempted to get or set a key which is not in
323the current set of allowed keys of a restricted hash.
324.IP "Attempt to clear a restricted hash" 4
325.IX Item "Attempt to clear a restricted hash"
326(F) It is currently not allowed to clear a restricted hash, even if the
327new hash would contain the same keys as before. This may change in
328the future.
329.IP "Attempt to delete readonly key '%s' from a restricted hash" 4
330.IX Item "Attempt to delete readonly key '%s' from a restricted hash"
331(F) The failing code attempted to delete a key whose value has been
332declared readonly from a restricted hash.
333.IP "Attempt to delete disallowed key '%s' from a restricted hash" 4
334.IX Item "Attempt to delete disallowed key '%s' from a restricted hash"
335(F) The failing code attempted to delete from a restricted hash a key
336which is not in its key set.
337.IP "Attempt to bless into a reference" 4
338.IX Item "Attempt to bless into a reference"
339(F) The \s-1CLASSNAME\s0 argument to the \fIbless()\fR operator is expected to be
340the name of the package to bless the resulting object into. You've
341supplied instead a reference to something: perhaps you wrote
342.Sp
343.Vb 1
344\& bless $self, $proto;
345.Ve
346.Sp
347when you intended
348.Sp
349.Vb 1
350\& bless $self, ref($proto) || $proto;
351.Ve
352.Sp
353If you actually want to bless into the stringified version
354of the reference supplied, you need to stringify it yourself, for
355example by:
356.Sp
357.Vb 1
358\& bless $self, "$proto";
359.Ve
360.IP "Attempt to free non-arena \s-1SV:\s0 0x%lx" 4
361.IX Item "Attempt to free non-arena SV: 0x%lx"
362(P internal) All \s-1SV\s0 objects are supposed to be allocated from arenas
363that will be garbage collected on exit. An \s-1SV\s0 was discovered to be
364outside any of those arenas.
365.IP "Attempt to free nonexistent shared string" 4
366.IX Item "Attempt to free nonexistent shared string"
367(P internal) Perl maintains a reference counted internal table of
368strings to optimize the storage and access of hash keys and other
369strings. This indicates someone tried to decrement the reference count
370of a string that can no longer be found in the table.
371.IP "Attempt to free temp prematurely" 4
372.IX Item "Attempt to free temp prematurely"
373(W debugging) Mortalized values are supposed to be freed by the
374\&\fIfree_tmps()\fR routine. This indicates that something else is freeing the
375\&\s-1SV\s0 before the \fIfree_tmps()\fR routine gets a chance, which means that the
376\&\fIfree_tmps()\fR routine will be freeing an unreferenced scalar when it does
377try to free it.
378.IP "Attempt to free unreferenced glob pointers" 4
379.IX Item "Attempt to free unreferenced glob pointers"
380(P internal) The reference counts got screwed up on symbol aliases.
381.IP "Attempt to free unreferenced scalar" 4
382.IX Item "Attempt to free unreferenced scalar"
383(W internal) Perl went to decrement the reference count of a scalar to
384see if it would go to 0, and discovered that it had already gone to 0
385earlier, and should have been freed, and in fact, probably was freed.
386This could indicate that \fISvREFCNT_dec()\fR was called too many times, or
387that \fISvREFCNT_inc()\fR was called too few times, or that the \s-1SV\s0 was
388mortalized when it shouldn't have been, or that memory has been
389corrupted.
390.IP "Attempt to join self" 4
391.IX Item "Attempt to join self"
392(F) You tried to join a thread from within itself, which is an
393impossible task. You may be joining the wrong thread, or you may need
394to move the \fIjoin()\fR to some other thread.
395.IP "Attempt to pack pointer to temporary value" 4
396.IX Item "Attempt to pack pointer to temporary value"
397(W pack) You tried to pass a temporary value (like the result of a
398function, or a computed expression) to the \*(L"p\*(R" \fIpack()\fR template. This
399means the result contains a pointer to a location that could become
400invalid anytime, even before the end of the current statement. Use
401literals or global values as arguments to the \*(L"p\*(R" \fIpack()\fR template to
402avoid this warning.
403.IP "Attempt to use reference as lvalue in substr" 4
404.IX Item "Attempt to use reference as lvalue in substr"
405(W substr) You supplied a reference as the first argument to \fIsubstr()\fR
406used as an lvalue, which is pretty strange. Perhaps you forgot to
407dereference it first. See \*(L"substr\*(R" in perlfunc.
408.ie n .IP "Bad arg length for %s\fR, is \f(CW%d\fR, should be \f(CW%s" 4
409.el .IP "Bad arg length for \f(CW%s\fR, is \f(CW%d\fR, should be \f(CW%s\fR" 4
410.IX Item "Bad arg length for %s, is %d, should be %s"
411(F) You passed a buffer of the wrong size to one of \fImsgctl()\fR, \fIsemctl()\fR
412or \fIshmctl()\fR. In C parlance, the correct sizes are, respectively,
413sizeof(struct\ msqid_ds\ *), sizeof(struct\ semid_ds\ *), and
414sizeof(struct\ shmid_ds\ *).
415.IP "Bad evalled substitution pattern" 4
416.IX Item "Bad evalled substitution pattern"
417(F) You've used the \f(CW\*(C`/e\*(C'\fR switch to evaluate the replacement for a
418substitution, but perl found a syntax error in the code to evaluate,
419most likely an unexpected right brace '}'.
420.ie n .IP "Bad filehandle: %s" 4
421.el .IP "Bad filehandle: \f(CW%s\fR" 4
422.IX Item "Bad filehandle: %s"
423(F) A symbol was passed to something wanting a filehandle, but the
424symbol has no filehandle associated with it. Perhaps you didn't do an
425\&\fIopen()\fR, or did it in another package.
426.IP "Bad \fIfree()\fR ignored" 4
427.IX Item "Bad free() ignored"
428(S malloc) An internal routine called \fIfree()\fR on something that had never
429been \fImalloc()\fRed in the first place. Mandatory, but can be disabled by
430setting environment variable \f(CW\*(C`PERL_BADFREE\*(C'\fR to 0.
431.Sp
432This message can be seen quite often with DB_File on systems with \*(L"hard\*(R"
433dynamic 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
434which is left unnoticed if \f(CW\*(C`DB\*(C'\fR uses \fIforgiving\fR system \fImalloc()\fR.
435.IP "Bad hash" 4
436.IX Item "Bad hash"
437(P) One of the internal hash routines was passed a null \s-1HV\s0 pointer.
438.IP "Bad index while coercing array into hash" 4
439.IX Item "Bad index while coercing array into hash"
440(F) The index looked up in the hash found as the 0'th element of a
441pseudo-hash is not legal. Index values must be at 1 or greater.
442See perlref.
443.IP "Badly placed ()'s" 4
444.IX Item "Badly placed ()'s"
445(A) You've accidentally run your script through \fBcsh\fR instead
446of Perl. Check the #! line, or manually feed your script into
447Perl yourself.
448.ie n .IP "Bad name after %s::" 4
449.el .IP "Bad name after \f(CW%s::\fR" 4
450.IX Item "Bad name after %s::"
451(F) You started to name a symbol by using a package prefix, and then
452didn't finish the symbol. In particular, you can't interpolate outside
453of quotes, so
454.Sp
455.Vb 2
456\& $var = 'myvar';
457\& $sym = mypack::$var;
458.Ve
459.Sp
460is not the same as
461.Sp
462.Vb 2
463\& $var = 'myvar';
464\& $sym = "mypack::$var";
465.Ve
466.IP "Bad \fIrealloc()\fR ignored" 4
467.IX Item "Bad realloc() ignored"
468(S malloc) An internal routine called \fIrealloc()\fR on something that had
469never been \fImalloc()\fRed in the first place. Mandatory, but can be disabled
470by setting environment variable \f(CW\*(C`PERL_BADFREE\*(C'\fR to 1.
471.IP "Bad symbol for array" 4
472.IX Item "Bad symbol for array"
473(P) An internal request asked to add an array entry to something that
474wasn't a symbol table entry.
475.IP "Bad symbol for filehandle" 4
476.IX Item "Bad symbol for filehandle"
477(P) An internal request asked to add a filehandle entry to something
478that wasn't a symbol table entry.
479.IP "Bad symbol for hash" 4
480.IX Item "Bad symbol for hash"
481(P) An internal request asked to add a hash entry to something that
482wasn't a symbol table entry.
483.IP "Bareword found in conditional" 4
484.IX Item "Bareword found in conditional"
485(W bareword) The compiler found a bareword where it expected a
486conditional, which often indicates that an || or && was parsed as part
487of the last argument of the previous construct, for example:
488.Sp
489.Vb 1
490\& open FOO || die;
491.Ve
492.Sp
493It may also indicate a misspelled constant that has been interpreted as
494a bareword:
495.Sp
496.Vb 2
497\& use constant TYPO => 1;
498\& if (TYOP) { print "foo" }
499.Ve
500.Sp
501The \f(CW\*(C`strict\*(C'\fR pragma is useful in avoiding such errors.
502.ie n .IP "Bareword ""%s"" not allowed while ""strict subs"" in use" 4
503.el .IP "Bareword ``%s'' not allowed while ``strict subs'' in use" 4
504.IX Item "Bareword %s not allowed while strict subs in use"
505(F) With \*(L"strict subs\*(R" in use, a bareword is only allowed as a
506subroutine identifier, in curly brackets or to the left of the \*(L"=>\*(R"
507symbol. Perhaps you need to predeclare a subroutine?
508.ie n .IP "Bareword ""%s"" refers to nonexistent package" 4
509.el .IP "Bareword ``%s'' refers to nonexistent package" 4
510.IX Item "Bareword %s refers to nonexistent package"
511(W bareword) You used a qualified bareword of the form \f(CW\*(C`Foo::\*(C'\fR, but the
512compiler saw no other uses of that namespace before that point. Perhaps
513you need to predeclare a package?
514.IP "\s-1BEGIN\s0 failed\*(--compilation aborted" 4
515.IX Item "BEGIN failedcompilation aborted"
516(F) An untrapped exception was raised while executing a \s-1BEGIN\s0
517subroutine. Compilation stops immediately and the interpreter is
518exited.
519.IP "\s-1BEGIN\s0 not safe after errors\*(--compilation aborted" 4
520.IX Item "BEGIN not safe after errorscompilation aborted"
521(F) Perl found a \f(CW\*(C`BEGIN {}\*(C'\fR subroutine (or a \f(CW\*(C`use\*(C'\fR directive, which
522implies a \f(CW\*(C`BEGIN {}\*(C'\fR) after one or more compilation errors had already
523occurred. Since the intended environment for the \f(CW\*(C`BEGIN {}\*(C'\fR could not
524be guaranteed (due to the errors), and since subsequent code likely
525depends on its correct operation, Perl just gave up.
526.ie n .IP "\e1 better written as $1" 4
527.el .IP "\e1 better written as \f(CW$1\fR" 4
528.IX Item "1 better written as $1"
529(W syntax) Outside of patterns, backreferences live on as variables.
530The use of backslashes is grandfathered on the right-hand side of a
531substitution, but stylistically it's better to use the variable form
532because other Perl programmers will expect it, and it works better if
533there are more than 9 backreferences.
534.IP "Binary number > 0b11111111111111111111111111111111 non-portable" 4
535.IX Item "Binary number > 0b11111111111111111111111111111111 non-portable"
536(W portable) The binary number you specified is larger than 2**32\-1
537(4294967295) and therefore non-portable between systems. See
538perlport for more on portability concerns.
539.ie n .IP "\fIbind()\fR on closed socket %s" 4
540.el .IP "\fIbind()\fR on closed socket \f(CW%s\fR" 4
541.IX Item "bind() on closed socket %s"
542(W closed) You tried to do a bind on a closed socket. Did you forget to
543check the return value of your \fIsocket()\fR call? See \*(L"bind\*(R" in perlfunc.
544.ie n .IP "\fIbinmode()\fR on closed filehandle %s" 4
545.el .IP "\fIbinmode()\fR on closed filehandle \f(CW%s\fR" 4
546.IX Item "binmode() on closed filehandle %s"
547(W unopened) You tried \fIbinmode()\fR on a filehandle that was never opened.
548Check you control flow and number of arguments.
549.IP "Bit vector size > 32 non-portable" 4
550.IX Item "Bit vector size > 32 non-portable"
551(W portable) Using bit vector sizes larger than 32 is non\-portable.
552.ie n .IP "Bizarre copy of %s\fR in \f(CW%s" 4
553.el .IP "Bizarre copy of \f(CW%s\fR in \f(CW%s\fR" 4
554.IX Item "Bizarre copy of %s in %s"
555(P) Perl detected an attempt to copy an internal value that is not
556copyable.
557.IP "\fB\-P\fR not allowed for setuid/setgid script" 4
558.IX Item "-P not allowed for setuid/setgid script"
559(F) The script would have to be opened by the C preprocessor by name,
560which provides a race condition that breaks security.
561.ie n .IP "Buffer overflow in prime_env_iter: %s" 4
562.el .IP "Buffer overflow in prime_env_iter: \f(CW%s\fR" 4
563.IX Item "Buffer overflow in prime_env_iter: %s"
564(W internal) A warning peculiar to \s-1VMS\s0. While Perl was preparing to
565iterate over \f(CW%ENV\fR, it encountered a logical name or symbol definition
566which was too long, so it was truncated to the string shown.
567.IP "Callback called exit" 4
568.IX Item "Callback called exit"
569(F) A subroutine invoked from an external package via \fIcall_sv()\fR
570exited by calling exit.
571.IP "%s() called too early to check prototype" 4
572.IX Item "%s() called too early to check prototype"
573(W prototype) You've called a function that has a prototype before the
574parser saw a definition or declaration for it, and Perl could not check
575that the call conforms to the prototype. You need to either add an
576early prototype declaration for the subroutine in question, or move the
577subroutine definition ahead of the call to get proper prototype
578checking. Alternatively, if you are certain that you're calling the
579function correctly, you may put an ampersand before the name to avoid
580the warning. See perlsub.
581.IP "/ cannot take a count" 4
582.IX Item "/ cannot take a count"
583(F) You had an unpack template indicating a counted-length string, but
584you have also specified an explicit size for the string. See
585\&\*(L"pack\*(R" in perlfunc.
586.IP "Can't bless non-reference value" 4
587.IX Item "Can't bless non-reference value"
588(F) Only hard references may be blessed. This is how Perl \*(L"enforces\*(R"
589encapsulation of objects. See perlobj.
590.ie n .IP "Can't call method ""%s"" in empty package ""%s""" 4
591.el .IP "Can't call method ``%s'' in empty package ``%s''" 4
592.IX Item "Can't call method %s in empty package %s"
593(F) You called a method correctly, and it correctly indicated a package
594functioning as a class, but that package doesn't have \s-1ANYTHING\s0 defined
595in it, let alone methods. See perlobj.
596.ie n .IP "Can't call method ""%s"" on an undefined value" 4
597.el .IP "Can't call method ``%s'' on an undefined value" 4
598.IX Item "Can't call method %s on an undefined value"
599(F) You used the syntax of a method call, but the slot filled by the
600object reference or package name contains an undefined value. Something
601like this will reproduce the error:
602.Sp
603.Vb 3
604\& $BADREF = undef;
605\& process $BADREF 1,2,3;
606\& $BADREF->process(1,2,3);
607.Ve
608.ie n .IP "Can't call method ""%s"" on unblessed reference" 4
609.el .IP "Can't call method ``%s'' on unblessed reference" 4
610.IX Item "Can't call method %s on unblessed reference"
611(F) A method call must know in what package it's supposed to run. It
612ordinarily finds this out from the object reference you supply, but you
613didn't supply an object reference in this case. A reference isn't an
614object reference until it has been blessed. See perlobj.
615.ie n .IP "Can't call method ""%s"" without a package or object reference" 4
616.el .IP "Can't call method ``%s'' without a package or object reference" 4
617.IX Item "Can't call method %s without a package or object reference"
618(F) You used the syntax of a method call, but the slot filled by the
619object reference or package name contains an expression that returns a
620defined value which is neither an object reference nor a package name.
621Something like this will reproduce the error:
622.Sp
623.Vb 3
624\& $BADREF = 42;
625\& process $BADREF 1,2,3;
626\& $BADREF->process(1,2,3);
627.Ve
628.ie n .IP "Can't chdir to %s" 4
629.el .IP "Can't chdir to \f(CW%s\fR" 4
630.IX Item "Can't chdir to %s"
631(F) You called \f(CW\*(C`perl \-x/foo/bar\*(C'\fR, but \f(CW\*(C`/foo/bar\*(C'\fR is not a directory
632that you can chdir to, possibly because it doesn't exist.
633.ie n .IP "Can't check filesystem of script ""%s"" for nosuid" 4
634.el .IP "Can't check filesystem of script ``%s'' for nosuid" 4
635.IX Item "Can't check filesystem of script %s for nosuid"
636(P) For some reason you can't check the filesystem of the script for
637nosuid.
638.IP "Can't coerce array into hash" 4
639.IX Item "Can't coerce array into hash"
640(F) You used an array where a hash was expected, but the array has no
641information on how to map from keys to array indices. You can do that
642only with arrays that have a hash reference at index 0.
643.ie n .IP "Can't coerce %s\fR to integer in \f(CW%s" 4
644.el .IP "Can't coerce \f(CW%s\fR to integer in \f(CW%s\fR" 4
645.IX Item "Can't coerce %s to integer in %s"
646(F) Certain types of SVs, in particular real symbol table entries
647(typeglobs), can't be forced to stop being what they are. So you can't
648say things like:
649.Sp
650.Vb 1
651\& *foo += 1;
652.Ve
653.Sp
654You \s-1CAN\s0 say
655.Sp
656.Vb 2
657\& $foo = *foo;
658\& $foo += 1;
659.Ve
660.Sp
661but then \f(CW$foo\fR no longer contains a glob.
662.ie n .IP "Can't coerce %s\fR to number in \f(CW%s" 4
663.el .IP "Can't coerce \f(CW%s\fR to number in \f(CW%s\fR" 4
664.IX Item "Can't coerce %s to number in %s"
665(F) Certain types of SVs, in particular real symbol table entries
666(typeglobs), can't be forced to stop being what they are.
667.ie n .IP "Can't coerce %s\fR to string in \f(CW%s" 4
668.el .IP "Can't coerce \f(CW%s\fR to string in \f(CW%s\fR" 4
669.IX Item "Can't coerce %s to string in %s"
670(F) Certain types of SVs, in particular real symbol table entries
671(typeglobs), can't be forced to stop being what they are.
672.IP "Can't create pipe mailbox" 4
673.IX Item "Can't create pipe mailbox"
674(P) An error peculiar to \s-1VMS\s0. The process is suffering from exhausted
675quotas or other plumbing problems.
676.ie n .IP "Can't declare class for non-scalar %s in ""%s""" 4
677.el .IP "Can't declare class for non-scalar \f(CW%s\fR in ``%s''" 4
678.IX Item "Can't declare class for non-scalar %s in %s"
679(F) Currently, only scalar variables can be declared with a specific
680class qualifier in a \*(L"my\*(R" or \*(L"our\*(R" declaration. The semantics may be
681extended for other types of variables in future.
682.ie n .IP "Can't declare %s in ""%s""" 4
683.el .IP "Can't declare \f(CW%s\fR in ``%s''" 4
684.IX Item "Can't declare %s in %s"
685(F) Only scalar, array, and hash variables may be declared as \*(L"my\*(R" or
686\&\*(L"our\*(R" variables. They must have ordinary identifiers as names.
687.ie n .IP "Can't do inplace edit: %s is not a regular file" 4
688.el .IP "Can't do inplace edit: \f(CW%s\fR is not a regular file" 4
689.IX Item "Can't do inplace edit: %s is not a regular file"
690(S inplace) You tried to use the \fB\-i\fR switch on a special file, such as
691a file in /dev, or a \s-1FIFO\s0. The file was ignored.
692.ie n .IP "Can't do inplace edit on %s:\fR \f(CW%s" 4
693.el .IP "Can't do inplace edit on \f(CW%s:\fR \f(CW%s\fR" 4
694.IX Item "Can't do inplace edit on %s: %s"
695(S inplace) The creation of the new file failed for the indicated
696reason.
697.IP "Can't do inplace edit without backup" 4
698.IX Item "Can't do inplace edit without backup"
699(F) You're on a system such as MS-DOS that gets confused if you try
700reading from a deleted (but still opened) file. You have to say
701\&\f(CW\*(C`\-i.bak\*(C'\fR, or some such.
702.ie n .IP "Can't do inplace edit: %s would not be unique" 4
703.el .IP "Can't do inplace edit: \f(CW%s\fR would not be unique" 4
704.IX Item "Can't do inplace edit: %s would not be unique"
705(S inplace) Your filesystem does not support filenames longer than 14
706characters and Perl was unable to create a unique filename during
707inplace editing with the \fB\-i\fR switch. The file was ignored.
708.IP "Can't do {n,m} with n > m in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
709.IX Item "Can't do {n,m} with n > m in regex; marked by <-- HERE in m/%s/"
710(F) Minima must be less than or equal to maxima. If you really want your
711regexp to match something 0 times, just put {0}. The <\-\- \s-1HERE\s0 shows in the
712regular expression about where the problem was discovered. See perlre.
713.IP "Can't do setegid!" 4
714.IX Item "Can't do setegid!"
715(P) The \fIsetegid()\fR call failed for some reason in the setuid emulator of
716suidperl.
717.IP "Can't do seteuid!" 4
718.IX Item "Can't do seteuid!"
719(P) The setuid emulator of suidperl failed for some reason.
720.IP "Can't do setuid" 4
721.IX Item "Can't do setuid"
722(F) This typically means that ordinary perl tried to exec suidperl to do
723setuid emulation, but couldn't exec it. It looks for a name of the form
724sperl5.000 in the same directory that the perl executable resides under
725the name perl5.000, typically /usr/local/bin on Unix machines. If the
726file is there, check the execute permissions. If it isn't, ask your
727sysadmin why he and/or she removed it.
728.IP "Can't do waitpid with flags" 4
729.IX Item "Can't do waitpid with flags"
730(F) This machine doesn't have either \fIwaitpid()\fR or \fIwait4()\fR, so only
731\&\fIwaitpid()\fR without flags is emulated.
732.IP "Can't emulate \-%s on #! line" 4
733.IX Item "Can't emulate -%s on #! line"
734(F) The #! line specifies a switch that doesn't make sense at this
735point. For example, it'd be kind of silly to put a \fB\-x\fR on the #!
736line.
737.ie n .IP "Can't exec ""%s"": %s" 4
738.el .IP "Can't exec ``%s'': \f(CW%s\fR" 4
739.IX Item "Can't exec %s: %s"
740(W exec) A \fIsystem()\fR, \fIexec()\fR, or piped open call could not execute the
741named program for the indicated reason. Typical reasons include: the
742permissions were wrong on the file, the file wasn't found in
743\&\f(CW$ENV{PATH}\fR, the executable in question was compiled for another
744architecture, or the #! line in a script points to an interpreter that
745can't be run for similar reasons. (Or maybe your system doesn't support
746#! at all.)
747.ie n .IP "Can't exec %s" 4
748.el .IP "Can't exec \f(CW%s\fR" 4
749.IX Item "Can't exec %s"
750(F) Perl was trying to execute the indicated program for you because
751that's what the #! line said. If that's not what you wanted, you may
752need to mention \*(L"perl\*(R" on the #! line somewhere.
753.ie n .IP "Can't execute %s" 4
754.el .IP "Can't execute \f(CW%s\fR" 4
755.IX Item "Can't execute %s"
756(F) You used the \fB\-S\fR switch, but the copies of the script to execute
757found in the \s-1PATH\s0 did not have correct permissions.
758.ie n .IP "Can't find an opnumber for ""%s""" 4
759.el .IP "Can't find an opnumber for ``%s''" 4
760.IX Item "Can't find an opnumber for %s"
761(F) A string of a form \f(CW\*(C`CORE::word\*(C'\fR was given to \fIprototype()\fR, but there
762is no builtin with the name \f(CW\*(C`word\*(C'\fR.
763.ie n .IP "Can't find %s character property ""%s""" 4
764.el .IP "Can't find \f(CW%s\fR character property ``%s''" 4
765.IX Item "Can't find %s character property %s"
766(F) You used \f(CW\*(C`\ep{}\*(C'\fR or \f(CW\*(C`\eP{}\*(C'\fR but the character property by that name
767could not be found. Maybe you misspelled the name of the property
768(remember that the names of character properties consist only of
769alphanumeric characters), or maybe you forgot the \f(CW\*(C`Is\*(C'\fR or \f(CW\*(C`In\*(C'\fR prefix?
770.ie n .IP "Can't find label %s" 4
771.el .IP "Can't find label \f(CW%s\fR" 4
772.IX Item "Can't find label %s"
773(F) You said to goto a label that isn't mentioned anywhere that it's
774possible for us to go to. See \*(L"goto\*(R" in perlfunc.
775.ie n .IP "Can't find %s on \s-1PATH\s0" 4
776.el .IP "Can't find \f(CW%s\fR on \s-1PATH\s0" 4
777.IX Item "Can't find %s on PATH"
778(F) You used the \fB\-S\fR switch, but the script to execute could not be
779found in the \s-1PATH\s0.
780.ie n .IP "Can't find %s on \s-1PATH\s0, '.' not in \s-1PATH\s0" 4
781.el .IP "Can't find \f(CW%s\fR on \s-1PATH\s0, '.' not in \s-1PATH\s0" 4
782.IX Item "Can't find %s on PATH, '.' not in PATH"
783(F) You used the \fB\-S\fR switch, but the script to execute could not be
784found in the \s-1PATH\s0, or at least not with the correct permissions. The
785script exists in the current directory, but \s-1PATH\s0 prohibits running it.
786.ie n .IP "Can't find string terminator %s anywhere before \s-1EOF\s0" 4
787.el .IP "Can't find string terminator \f(CW%s\fR anywhere before \s-1EOF\s0" 4
788.IX Item "Can't find string terminator %s anywhere before EOF"
789(F) Perl strings can stretch over multiple lines. This message means
790that the closing delimiter was omitted. Because bracketed quotes count
791nesting levels, the following is missing its final parenthesis:
792.Sp
793.Vb 1
794\& print q(The character '(' starts a side comment.);
795.Ve
796.Sp
797If you're getting this error from a here\-document, you may have included
798unseen whitespace before or after your closing tag. A good programmer's
799editor will have a way to help you find these characters.
800.ie n .IP "Can't find %s\fR property definition \f(CW%s" 4
801.el .IP "Can't find \f(CW%s\fR property definition \f(CW%s\fR" 4
802.IX Item "Can't find %s property definition %s"
803(F) You may have tried to use \f(CW\*(C`\ep\*(C'\fR which means a Unicode property (for
804example \f(CW\*(C`\ep{Lu}\*(C'\fR is all uppercase letters). If you did mean to use a
805Unicode property, see perlunicode for the list of known properties.
806If you didn't mean to use a Unicode property, escape the \f(CW\*(C`\ep\*(C'\fR, either
807by \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, until
808possible \f(CW\*(C`\eE\*(C'\fR).
809.IP "Can't fork" 4
810.IX Item "Can't fork"
811(F) A fatal error occurred while trying to fork while opening a
812pipeline.
813.IP "Can't get filespec \- stale stat buffer?" 4
814.IX Item "Can't get filespec - stale stat buffer?"
815(S) A warning peculiar to \s-1VMS\s0. This arises because of the difference
816between access checks under \s-1VMS\s0 and under the Unix model Perl assumes.
817Under \s-1VMS\s0, access checks are done by filename, rather than by bits in
818the stat buffer, so that ACLs and other protections can be taken into
819account. Unfortunately, Perl assumes that the stat buffer contains all
820the necessary information, and passes it, instead of the filespec, to
821the access checking routine. It will try to retrieve the filespec using
822the device name and \s-1FID\s0 present in the stat buffer, but this works only
823if you haven't made a subsequent call to the \s-1CRTL\s0 \fIstat()\fR routine,
824because the device name is overwritten with each call. If this warning
825appears, the name lookup failed, and the access checking routine gave up
826and returned \s-1FALSE\s0, just to be conservative. (Note: The access checking
827routine knows about the Perl \f(CW\*(C`stat\*(C'\fR operator and file tests, so you
828shouldn't ever see this warning in response to a Perl command; it arises
829only if some internal code takes stat buffers lightly.)
830.IP "Can't get pipe mailbox device name" 4
831.IX Item "Can't get pipe mailbox device name"
832(P) An error peculiar to \s-1VMS\s0. After creating a mailbox to act as a
833pipe, Perl can't retrieve its name for later use.
834.IP "Can't get \s-1SYSGEN\s0 parameter value for \s-1MAXBUF\s0" 4
835.IX Item "Can't get SYSGEN parameter value for MAXBUF"
836(P) An error peculiar to \s-1VMS\s0. Perl asked \f(CW$GETSYI\fR how big you want your
837mailbox buffers to be, and didn't get an answer.
838.ie n .IP "Can't ""goto"" into the middle of a foreach loop" 4
839.el .IP "Can't ``goto'' into the middle of a foreach loop" 4
840.IX Item "Can't goto into the middle of a foreach loop"
841(F) A \*(L"goto\*(R" statement was executed to jump into the middle of a foreach
842loop. You can't get there from here. See \*(L"goto\*(R" in perlfunc.
843.ie n .IP "Can't ""goto"" out of a pseudo block" 4
844.el .IP "Can't ``goto'' out of a pseudo block" 4
845.IX Item "Can't goto out of a pseudo block"
846(F) A \*(L"goto\*(R" statement was executed to jump out of what might look like
847a block, except that it isn't a proper block. This usually occurs if
848you tried to jump out of a \fIsort()\fR block or subroutine, which is a no\-no.
849See \*(L"goto\*(R" in perlfunc.
850.IP "Can't goto subroutine from an eval-string" 4
851.IX Item "Can't goto subroutine from an eval-string"
852(F) The \*(L"goto subroutine\*(R" call can't be used to jump out of an eval
853\&\*(L"string\*(R". (You can use it to jump out of an eval {\s-1BLOCK\s0}, but you
854probably don't want to.)
855.IP "Can't goto subroutine outside a subroutine" 4
856.IX Item "Can't goto subroutine outside a subroutine"
857(F) The deeply magical \*(L"goto subroutine\*(R" call can only replace one
858subroutine call for another. It can't manufacture one out of whole
859cloth. In general you should be calling it out of only an \s-1AUTOLOAD\s0
860routine anyway. See \*(L"goto\*(R" in perlfunc.
861.IP "Can't ignore signal \s-1CHLD\s0, forcing to default" 4
862.IX Item "Can't ignore signal CHLD, forcing to default"
863(W signal) Perl has detected that it is being run with the \s-1SIGCHLD\s0
864signal (sometimes known as \s-1SIGCLD\s0) disabled. Since disabling this
865signal will interfere with proper determination of exit status of child
866processes, Perl has reset the signal to its default value. This
867situation typically indicates that the parent program under which Perl
868may be running (e.g. cron) is being very careless.
869.ie n .IP "Can't ""last"" outside a loop block" 4
870.el .IP "Can't ``last'' outside a loop block" 4
871.IX Item "Can't last outside a loop block"
872(F) A \*(L"last\*(R" statement was executed to break out of the current block,
873except that there's this itty bitty problem called there isn't a current
874block. Note that an \*(L"if\*(R" or \*(L"else\*(R" block doesn't count as a \*(L"loopish\*(R"
875block, as doesn't a block given to \fIsort()\fR, \fImap()\fR or \fIgrep()\fR. You can
876usually double the curlies to get the same effect though, because the
877inner curlies will be considered a block that loops once. See
878\&\*(L"last\*(R" in perlfunc.
879.ie n .IP "Can't localize lexical variable %s" 4
880.el .IP "Can't localize lexical variable \f(CW%s\fR" 4
881.IX Item "Can't localize lexical variable %s"
882(F) You used local on a variable name that was previously declared as a
883lexical variable using \*(L"my\*(R". This is not allowed. If you want to
884localize a package variable of the same name, qualify it with the
885package name.
886.IP "Can't localize pseudo-hash element" 4
887.IX Item "Can't localize pseudo-hash element"
888(F) You said something like \f(CW\*(C`local $ar\->{'key'}\*(C'\fR, where \f(CW$ar\fR is a
889reference to a pseudo\-hash. That hasn't been implemented yet, but you
890can get a similar effect by localizing the corresponding array element
891directly \*(-- \f(CW\*(C`local $ar\->[$ar\->[0]{'key'}]\*(C'\fR.
892.IP "Can't localize through a reference" 4
893.IX Item "Can't localize through a reference"
894(F) You said something like \f(CW\*(C`local $$ref\*(C'\fR, which Perl can't currently
895handle, because when it goes to restore the old value of whatever \f(CW$ref\fR
896pointed to after the scope of the \fIlocal()\fR is finished, it can't be sure
897that \f(CW$ref\fR will still be a reference.
898.ie n .IP "Can't locate %s" 4
899.el .IP "Can't locate \f(CW%s\fR" 4
900.IX Item "Can't locate %s"
901(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't be
902found. Perl looks for the file in all the locations mentioned in \f(CW@INC\fR,
903unless the file name included the full path to the file. Perhaps you
904need to set the \s-1PERL5LIB\s0 or \s-1PERL5OPT\s0 environment variable to say where
905the extra library is, or maybe the script needs to add the library name
906to \f(CW@INC\fR. Or maybe you just misspelled the name of the file. See
907\&\*(L"require\*(R" in perlfunc and lib.
908.ie n .IP "Can't locate auto/%s.al in @INC" 4
909.el .IP "Can't locate auto/%s.al in \f(CW@INC\fR" 4
910.IX Item "Can't locate auto/%s.al in @INC"
911(F) A function (or method) was called in a package which allows
912autoload, but there is no function to autoload. Most probable causes
913are a misprint in a function/method name or a failure to \f(CW\*(C`AutoSplit\*(C'\fR
914the file, say, by doing \f(CW\*(C`make install\*(C'\fR.
915.ie n .IP "Can't locate object method ""%s"" via package ""%s""" 4
916.el .IP "Can't locate object method ``%s'' via package ``%s''" 4
917.IX Item "Can't locate object method %s via package %s"
918(F) You called a method correctly, and it correctly indicated a package
919functioning as a class, but that package doesn't define that particular
920method, nor does any of its base classes. See perlobj.
921.IP "Can't locate PerlIO%s" 4
922.IX Item "Can't locate PerlIO%s"
923(F) You tried to use in \fIopen()\fR a PerlIO layer that does not exist,
924e.g. open(\s-1FH\s0, \*(L">:nosuchlayer\*(R", \*(L"somefile\*(R").
925.ie n .IP "(perhaps you forgot to load ""%s""?)" 4
926.el .IP "(perhaps you forgot to load ``%s''?)" 4
927.IX Item "(perhaps you forgot to load %s?)"
928(F) This is an educated guess made in conjunction with the message
929\&\*(L"Can't locate object method \e\*(R"%s\e\*(L" via package \e\*(R"%s\e"". It often means
930that a method requires a package that has not been loaded.
931.ie n .IP "Can't locate package %s for @%s::ISA" 4
932.el .IP "Can't locate package \f(CW%s\fR for @%s::ISA" 4
933.IX Item "Can't locate package %s for @%s::ISA"
934(W syntax) The \f(CW@ISA\fR array contained the name of another package that
935doesn't seem to exist.
936.IP "Can't make list assignment to \e%ENV on this system" 4
937.IX Item "Can't make list assignment to %ENV on this system"
938(F) List assignment to \f(CW%ENV\fR is not supported on some systems, notably
939\&\s-1VMS\s0.
940.ie n .IP "Can't modify %s\fR in \f(CW%s" 4
941.el .IP "Can't modify \f(CW%s\fR in \f(CW%s\fR" 4
942.IX Item "Can't modify %s in %s"
943(F) You aren't allowed to assign to the item indicated, or otherwise try
944to change it, such as with an auto\-increment.
945.IP "Can't modify nonexistent substring" 4
946.IX Item "Can't modify nonexistent substring"
947(P) The internal routine that does assignment to a \fIsubstr()\fR was handed
948a \s-1NULL\s0.
949.IP "Can't modify non-lvalue subroutine call" 4
950.IX Item "Can't modify non-lvalue subroutine call"
951(F) Subroutines meant to be used in lvalue context should be declared as
952such, see \*(L"Lvalue subroutines\*(R" in perlsub.
953.IP "Can't msgrcv to read-only var" 4
954.IX Item "Can't msgrcv to read-only var"
955(F) The target of a msgrcv must be modifiable to be used as a receive
956buffer.
957.ie n .IP "Can't ""next"" outside a loop block" 4
958.el .IP "Can't ``next'' outside a loop block" 4
959.IX Item "Can't next outside a loop block"
960(F) A \*(L"next\*(R" statement was executed to reiterate the current block, but
961there isn't a current block. Note that an \*(L"if\*(R" or \*(L"else\*(R" block doesn't
962count as a \*(L"loopish\*(R" block, as doesn't a block given to \fIsort()\fR, \fImap()\fR or
963\&\fIgrep()\fR. You can usually double the curlies to get the same effect
964though, because the inner curlies will be considered a block that loops
965once. See \*(L"next\*(R" in perlfunc.
966.ie n .IP "Can't open %s:\fR \f(CW%s" 4
967.el .IP "Can't open \f(CW%s:\fR \f(CW%s\fR" 4
968.IX Item "Can't open %s: %s"
969(S inplace) The implicit opening of a file through use of the \f(CW\*(C`<>\*(C'\fR
970filehandle, either implicitly under the \f(CW\*(C`\-n\*(C'\fR or \f(CW\*(C`\-p\*(C'\fR command-line
971switches, or explicitly, failed for the indicated reason. Usually this
972is because you don't have read permission for a file which you named on
973the command line.
974.IP "Can't open a reference" 4
975.IX Item "Can't open a reference"
976(W io) You tried to open a scalar reference for reading or writing,
977using the 3\-arg \fIopen()\fR syntax :
978.Sp
979.Vb 1
980\& open FH, '>', $ref;
981.Ve
982.Sp
983but your version of perl is compiled without perlio, and this form of
984open is not supported.
985.IP "Can't open bidirectional pipe" 4
986.IX Item "Can't open bidirectional pipe"
987(W pipe) You tried to say \f(CW\*(C`open(CMD, "|cmd|")\*(C'\fR, which is not supported.
988You can try any of several modules in the Perl library to do this, such
989as IPC::Open2. Alternately, direct the pipe's output to a file using
990\&\*(L">\*(R", and then read it in under a different file handle.
991.ie n .IP "Can't open error file %s as stderr" 4
992.el .IP "Can't open error file \f(CW%s\fR as stderr" 4
993.IX Item "Can't open error file %s as stderr"
994(F) An error peculiar to \s-1VMS\s0. Perl does its own command line
995redirection, and couldn't open the file specified after '2>' or '2>>' on
996the command line for writing.
997.ie n .IP "Can't open input file %s as stdin" 4
998.el .IP "Can't open input file \f(CW%s\fR as stdin" 4
999.IX Item "Can't open input file %s as stdin"
1000(F) An error peculiar to \s-1VMS\s0. Perl does its own command line
1001redirection, and couldn't open the file specified after '<' on the
1002command line for reading.
1003.ie n .IP "Can't open output file %s as stdout" 4
1004.el .IP "Can't open output file \f(CW%s\fR as stdout" 4
1005.IX Item "Can't open output file %s as stdout"
1006(F) An error peculiar to \s-1VMS\s0. Perl does its own command line
1007redirection, and couldn't open the file specified after '>' or '>>' on
1008the command line for writing.
1009.ie n .IP "Can't open output pipe (name: %s)" 4
1010.el .IP "Can't open output pipe (name: \f(CW%s\fR)" 4
1011.IX Item "Can't open output pipe (name: %s)"
1012(P) An error peculiar to \s-1VMS\s0. Perl does its own command line
1013redirection, and couldn't open the pipe into which to send data destined
1014for stdout.
1015.ie n .IP "Can't open perl script%s: %s" 4
1016.el .IP "Can't open perl script%s: \f(CW%s\fR" 4
1017.IX Item "Can't open perl script%s: %s"
1018(F) The script you specified can't be opened for the indicated reason.
1019.IP "Can't read \s-1CRTL\s0 environ" 4
1020.IX Item "Can't read CRTL environ"
1021(S) A warning peculiar to \s-1VMS\s0. Perl tried to read an element of \f(CW%ENV\fR
1022from the \s-1CRTL\s0's internal environment array and discovered the array was
1023missing. You need to figure out where your \s-1CRTL\s0 misplaced its environ
1024or define \fI\s-1PERL_ENV_TABLES\s0\fR (see perlvms) so that environ is not
1025searched.
1026.ie n .IP "Can't redefine active sort subroutine %s" 4
1027.el .IP "Can't redefine active sort subroutine \f(CW%s\fR" 4
1028.IX Item "Can't redefine active sort subroutine %s"
1029(F) Perl optimizes the internal handling of sort subroutines and keeps
1030pointers into them. You tried to redefine one such sort subroutine when
1031it was currently active, which is not allowed. If you really want to do
1032this, you should write \f(CW\*(C`sort { &func } @x\*(C'\fR instead of \f(CW\*(C`sort func @x\*(C'\fR.
1033.ie n .IP "Can't ""redo"" outside a loop block" 4
1034.el .IP "Can't ``redo'' outside a loop block" 4
1035.IX Item "Can't redo outside a loop block"
1036(F) A \*(L"redo\*(R" statement was executed to restart the current block, but
1037there isn't a current block. Note that an \*(L"if\*(R" or \*(L"else\*(R" block doesn't
1038count as a \*(L"loopish\*(R" block, as doesn't a block given to \fIsort()\fR, \fImap()\fR
1039or \fIgrep()\fR. You can usually double the curlies to get the same effect
1040though, because the inner curlies will be considered a block that
1041loops once. See \*(L"redo\*(R" in perlfunc.
1042.ie n .IP "Can't remove %s:\fR \f(CW%s, skipping file" 4
1043.el .IP "Can't remove \f(CW%s:\fR \f(CW%s\fR, skipping file" 4
1044.IX Item "Can't remove %s: %s, skipping file"
1045(S inplace) You requested an inplace edit without creating a backup
1046file. Perl was unable to remove the original file to replace it with
1047the modified file. The file was left unmodified.
1048.ie n .IP "Can't rename %s\fR to \f(CW%s:\fR \f(CW%s, skipping file" 4
1049.el .IP "Can't rename \f(CW%s\fR to \f(CW%s:\fR \f(CW%s\fR, skipping file" 4
1050.IX Item "Can't rename %s to %s: %s, skipping file"
1051(S inplace) The rename done by the \fB\-i\fR switch failed for some reason,
1052probably because you don't have write permission to the directory.
1053.ie n .IP "Can't reopen input pipe (name: %s) in binary mode" 4
1054.el .IP "Can't reopen input pipe (name: \f(CW%s\fR) in binary mode" 4
1055.IX Item "Can't reopen input pipe (name: %s) in binary mode"
1056(P) An error peculiar to \s-1VMS\s0. Perl thought stdin was a pipe, and tried
1057to reopen it to accept binary data. Alas, it failed.
1058.IP "Can't resolve method `%s' overloading `%s' in package `%s'" 4
1059.IX Item "Can't resolve method `%s' overloading `%s' in package `%s'"
1060(F|P) Error resolving overloading specified by a method name (as opposed
1061to a subroutine reference): no such method callable via the package. If
1062method name is \f(CW\*(C`???\*(C'\fR, this is an internal error.
1063.IP "Can't reswap uid and euid" 4
1064.IX Item "Can't reswap uid and euid"
1065(P) The \fIsetreuid()\fR call failed for some reason in the setuid emulator of
1066suidperl.
1067.ie n .IP "Can't return %s from lvalue subroutine" 4
1068.el .IP "Can't return \f(CW%s\fR from lvalue subroutine" 4
1069.IX Item "Can't return %s from lvalue subroutine"
1070(F) Perl detected an attempt to return illegal lvalues (such as
1071temporary or readonly values) from a subroutine used as an lvalue. This
1072is not allowed.
1073.ie n .IP "Can't return %s to lvalue scalar context" 4
1074.el .IP "Can't return \f(CW%s\fR to lvalue scalar context" 4
1075.IX Item "Can't return %s to lvalue scalar context"
1076(F) You tried to return a complete array or hash from an lvalue subroutine,
1077but you called the subroutine in a way that made Perl think you meant
1078to return only one value. You probably meant to write parentheses around
1079the call to the subroutine, which tell Perl that the call should be in
1080list context.
1081.IP "Can't return outside a subroutine" 4
1082.IX Item "Can't return outside a subroutine"
1083(F) The return statement was executed in mainline code, that is, where
1084there was no subroutine call to return out of. See perlsub.
1085.ie n .IP "Can't stat script ""%s""" 4
1086.el .IP "Can't stat script ``%s''" 4
1087.IX Item "Can't stat script %s"
1088(P) For some reason you can't \fIfstat()\fR the script even though you have it
1089open already. Bizarre.
1090.IP "Can't swap uid and euid" 4
1091.IX Item "Can't swap uid and euid"
1092(P) The \fIsetreuid()\fR call failed for some reason in the setuid emulator of
1093suidperl.
1094.ie n .IP "Can't take log of %g" 4
1095.el .IP "Can't take log of \f(CW%g\fR" 4
1096.IX Item "Can't take log of %g"
1097(F) For ordinary real numbers, you can't take the logarithm of a
1098negative number or zero. There's a Math::Complex package that comes
1099standard with Perl, though, if you really want to do that for the
1100negative numbers.
1101.ie n .IP "Can't take sqrt of %g" 4
1102.el .IP "Can't take sqrt of \f(CW%g\fR" 4
1103.IX Item "Can't take sqrt of %g"
1104(F) For ordinary real numbers, you can't take the square root of a
1105negative number. There's a Math::Complex package that comes standard
1106with Perl, though, if you really want to do that.
1107.IP "Can't undef active subroutine" 4
1108.IX Item "Can't undef active subroutine"
1109(F) You can't undefine a routine that's currently running. You can,
1110however, redefine it while it's running, and you can even undef the
1111redefined subroutine while the old routine is running. Go figure.
1112.IP "Can't unshift" 4
1113.IX Item "Can't unshift"
1114(F) You tried to unshift an \*(L"unreal\*(R" array that can't be unshifted, such
1115as the main Perl stack.
1116.IP "Can't upgrade that kind of scalar" 4
1117.IX Item "Can't upgrade that kind of scalar"
1118(P) The internal sv_upgrade routine adds \*(L"members\*(R" to an \s-1SV\s0, making it
1119into a more specialized kind of \s-1SV\s0. The top several \s-1SV\s0 types are so
1120specialized, however, that they cannot be interconverted. This message
1121indicates that such a conversion was attempted.
1122.IP "Can't upgrade to undef" 4
1123.IX Item "Can't upgrade to undef"
1124(P) The undefined \s-1SV\s0 is the bottom of the totem pole, in the scheme of
1125upgradability. Upgrading to undef indicates an error in the code
1126calling sv_upgrade.
1127.ie n .IP "Can't use an undefined value as %s reference" 4
1128.el .IP "Can't use an undefined value as \f(CW%s\fR reference" 4
1129.IX Item "Can't use an undefined value as %s reference"
1130(F) A value used as either a hard reference or a symbolic reference must
1131be a defined value. This helps to delurk some insidious errors.
1132.IP "Can't use anonymous symbol table for method lookup" 4
1133.IX Item "Can't use anonymous symbol table for method lookup"
1134(P) The internal routine that does method lookup was handed a symbol
1135table that doesn't have a name. Symbol tables can become anonymous
1136for example by undefining stashes: \f(CW\*(C`undef %Some::Package::\*(C'\fR.
1137.ie n .IP "Can't use bareword (""%s"") as %s ref while ""strict refs"" in use" 4
1138.el .IP "Can't use bareword (``%s'') as \f(CW%s\fR ref while ``strict refs'' in use" 4
1139.IX Item "Can't use bareword (%s) as %s ref while strict refs in use"
1140(F) Only hard references are allowed by \*(L"strict refs\*(R". Symbolic
1141references are disallowed. See perlref.
1142.IP "Can't use %! because Errno.pm is not available" 4
1143.IX Item "Can't use %! because Errno.pm is not available"
1144(F) The first time the %! hash is used, perl automatically loads the
1145Errno.pm module. The Errno module is expected to tie the %! hash to
1146provide symbolic names for \f(CW$!\fR errno values.
1147.ie n .IP "Can't use %s for loop variable" 4
1148.el .IP "Can't use \f(CW%s\fR for loop variable" 4
1149.IX Item "Can't use %s for loop variable"
1150(F) Only a simple scalar variable may be used as a loop variable on a
1151foreach.
1152.ie n .IP "Can't use global %s in ""my""" 4
1153.el .IP "Can't use global \f(CW%s\fR in ``my''" 4
1154.IX Item "Can't use global %s in my"
1155(F) You tried to declare a magical variable as a lexical variable. This
1156is not allowed, because the magic can be tied to only one location
1157(namely the global variable) and it would be incredibly confusing to
1158have variables in your program that looked like magical variables but
1159weren't.
1160.ie n .IP "Can't use ""my %s"" in sort comparison" 4
1161.el .IP "Can't use ``my \f(CW%s\fR'' in sort comparison" 4
1162.IX Item "Can't use my %s in sort comparison"
1163(F) The global variables \f(CW$a\fR and \f(CW$b\fR are reserved for sort comparisons.
1164You mentioned \f(CW$a\fR or \f(CW$b\fR in the same line as the <=> or cmp operator,
1165and the variable had earlier been declared as a lexical variable.
1166Either qualify the sort variable with the package name, or rename the
1167lexical variable.
1168.ie n .IP "Can't use %s\fR ref as \f(CW%s ref" 4
1169.el .IP "Can't use \f(CW%s\fR ref as \f(CW%s\fR ref" 4
1170.IX Item "Can't use %s ref as %s ref"
1171(F) You've mixed up your reference types. You have to dereference a
1172reference of the type needed. You can use the \fIref()\fR function to
1173test the type of the reference, if need be.
1174.ie n .IP "Can't use string (""%s"") as %s ref while ""strict refs"" in use" 4
1175.el .IP "Can't use string (``%s'') as \f(CW%s\fR ref while ``strict refs'' in use" 4
1176.IX Item "Can't use string (%s) as %s ref while strict refs in use"
1177(F) Only hard references are allowed by \*(L"strict refs\*(R". Symbolic
1178references are disallowed. See perlref.
1179.ie n .IP "Can't use subscript on %s" 4
1180.el .IP "Can't use subscript on \f(CW%s\fR" 4
1181.IX Item "Can't use subscript on %s"
1182(F) The compiler tried to interpret a bracketed expression as a
1183subscript. But to the left of the brackets was an expression that
1184didn't look like an array reference, or anything else subscriptable.
1185.IP "Can't use \e%c to mean $%c in expression" 4
1186.IX Item "Can't use %c to mean $%c in expression"
1187(W syntax) In an ordinary expression, backslash is a unary operator that
1188creates a reference to its argument. The use of backslash to indicate a
1189backreference to a matched substring is valid only as part of a regular
1190expression pattern. Trying to do this in ordinary Perl code produces a
1191value that prints out looking like \s-1\fISCALAR\s0\fR\|(0xdecaf). Use the \f(CW$1\fR form
1192instead.
1193.IP "Can't weaken a nonreference" 4
1194.IX Item "Can't weaken a nonreference"
1195(F) You attempted to weaken something that was not a reference. Only
1196references can be weakened.
1197.IP "Can't x= to read-only value" 4
1198.IX Item "Can't x= to read-only value"
1199(F) You tried to repeat a constant value (often the undefined value)
1200with an assignment operator, which implies modifying the value itself.
1201Perhaps you need to copy the value to a temporary, and repeat that.
1202.ie n .IP "Character in ""C"" format wrapped" 4
1203.el .IP "Character in ``C'' format wrapped" 4
1204.IX Item "Character in C format wrapped"
1205(W pack) You said
1206.Sp
1207.Vb 1
1208\& pack("C", $x)
1209.Ve
1210.Sp
1211where \f(CW$x\fR is either less than 0 or more than 255; the \f(CW"C"\fR format is
1212only for encoding native operating system characters (\s-1ASCII\s0, \s-1EBCDIC\s0,
1213and so on) and not for Unicode characters, so Perl behaved as if you meant
1214.Sp
1215.Vb 1
1216\& pack("C", $x & 255)
1217.Ve
1218.Sp
1219If you actually want to pack Unicode codepoints, use the \f(CW"U"\fR format
1220instead.
1221.ie n .IP "Character in ""c"" format wrapped" 4
1222.el .IP "Character in ``c'' format wrapped" 4
1223.IX Item "Character in c format wrapped"
1224(W pack) You said
1225.Sp
1226.Vb 1
1227\& pack("c", $x)
1228.Ve
1229.Sp
1230where \f(CW$x\fR is either less than \-128 or more than 127; the \f(CW"c"\fR format
1231is only for encoding native operating system characters (\s-1ASCII\s0, \s-1EBCDIC\s0,
1232and so on) and not for Unicode characters, so Perl behaved as if you meant
1233.Sp
1234.Vb 1
1235\& pack("c", $x & 255);
1236.Ve
1237.Sp
1238If you actually want to pack Unicode codepoints, use the \f(CW"U"\fR format
1239instead.
1240.ie n .IP "\fIclose()\fR on unopened filehandle %s" 4
1241.el .IP "\fIclose()\fR on unopened filehandle \f(CW%s\fR" 4
1242.IX Item "close() on unopened filehandle %s"
1243(W unopened) You tried to close a filehandle that was never opened.
1244.IP "%s: Command not found" 4
1245.IX Item "%s: Command not found"
1246(A) You've accidentally run your script through \fBcsh\fR instead of Perl.
1247Check the #! line, or manually feed your script into Perl yourself.
1248.IP "Compilation failed in require" 4
1249.IX Item "Compilation failed in require"
1250(F) Perl could not compile a file specified in a \f(CW\*(C`require\*(C'\fR statement.
1251Perl uses this generic message when none of the errors that it
1252encountered were severe enough to halt compilation immediately.
1253.IP "Complex regular subexpression recursion limit (%d) exceeded" 4
1254.IX Item "Complex regular subexpression recursion limit (%d) exceeded"
1255(W regexp) The regular expression engine uses recursion in complex
1256situations where back-tracking is required. Recursion depth is limited
1257to 32766, or perhaps less in architectures where the stack cannot grow
1258arbitrarily. (\*(L"Simple\*(R" and \*(L"medium\*(R" situations are handled without
1259recursion and are not subject to a limit.) Try shortening the string
1260under examination; looping in Perl code (e.g. with \f(CW\*(C`while\*(C'\fR) rather than
1261in the regular expression engine; or rewriting the regular expression so
1262that it is simpler or backtracks less. (See perlfaq2 for information
1263on \fIMastering Regular Expressions\fR.)
1264.IP "\fIcond_broadcast()\fR called on unlocked variable" 4
1265.IX Item "cond_broadcast() called on unlocked variable"
1266(W threads) Within a thread-enabled program, you tried to call
1267\&\fIcond_broadcast()\fR on a variable which wasn't locked. The \fIcond_broadcast()\fR
1268function is used to wake up another thread that is waiting in a
1269\&\fIcond_wait()\fR. To ensure that the signal isn't sent before the other thread
1270has a chance to enter the wait, it is usual for the signaling thread to
1271first wait for a lock on variable. This lock attempt will only succeed
1272after the other thread has entered \fIcond_wait()\fR and thus relinquished the
1273lock.
1274.IP "\fIcond_signal()\fR called on unlocked variable" 4
1275.IX Item "cond_signal() called on unlocked variable"
1276(W threads) Within a thread-enabled program, you tried to call
1277\&\fIcond_signal()\fR on a variable which wasn't locked. The \fIcond_signal()\fR
1278function is used to wake up another thread that is waiting in a
1279\&\fIcond_wait()\fR. To ensure that the signal isn't sent before the other thread
1280has a chance to enter the wait, it is usual for the signaling thread to
1281first wait for a lock on variable. This lock attempt will only succeed
1282after the other thread has entered \fIcond_wait()\fR and thus relinquished the
1283lock.
1284.ie n .IP "\fIconnect()\fR on closed socket %s" 4
1285.el .IP "\fIconnect()\fR on closed socket \f(CW%s\fR" 4
1286.IX Item "connect() on closed socket %s"
1287(W closed) You tried to do a connect on a closed socket. Did you forget
1288to check the return value of your \fIsocket()\fR call? See
1289\&\*(L"connect\*(R" in perlfunc.
1290.ie n .IP "Constant(%s)%s: %s" 4
1291.el .IP "Constant(%s)%s: \f(CW%s\fR" 4
1292.IX Item "Constant(%s)%s: %s"
1293(F) The parser found inconsistencies either while attempting to define
1294an overloaded constant, or when trying to find the character name
1295specified in the \f(CW\*(C`\eN{...}\*(C'\fR escape. Perhaps you forgot to load the
1296corresponding \f(CW\*(C`overload\*(C'\fR or \f(CW\*(C`charnames\*(C'\fR pragma? See charnames and
1297overload.
1298.ie n .IP "Constant is not %s reference" 4
1299.el .IP "Constant is not \f(CW%s\fR reference" 4
1300.IX Item "Constant is not %s reference"
1301(F) A constant value (perhaps declared using the \f(CW\*(C`use constant\*(C'\fR pragma)
1302is being dereferenced, but it amounts to the wrong type of reference.
1303The message indicates the type of reference that was expected. This
1304usually indicates a syntax error in dereferencing the constant value.
1305See \*(L"Constant Functions\*(R" in perlsub and constant.
1306.ie n .IP "Constant subroutine %s redefined" 4
1307.el .IP "Constant subroutine \f(CW%s\fR redefined" 4
1308.IX Item "Constant subroutine %s redefined"
1309(S) You redefined a subroutine which had previously been
1310eligible for inlining. See \*(L"Constant Functions\*(R" in perlsub for
1311commentary and workarounds.
1312.ie n .IP "Constant subroutine %s undefined" 4
1313.el .IP "Constant subroutine \f(CW%s\fR undefined" 4
1314.IX Item "Constant subroutine %s undefined"
1315(W misc) You undefined a subroutine which had previously been eligible
1316for inlining. See \*(L"Constant Functions\*(R" in perlsub for commentary and
1317workarounds.
1318.IP "Copy method did not return a reference" 4
1319.IX Item "Copy method did not return a reference"
1320(F) The method which overloads \*(L"=\*(R" is buggy. See
1321\&\*(L"Copy Constructor\*(R" in overload.
1322.IP "CORE::%s is not a keyword" 4
1323.IX Item "CORE::%s is not a keyword"
1324(F) The \s-1CORE::\s0 namespace is reserved for Perl keywords.
1325.IP "corrupted regexp pointers" 4
1326.IX Item "corrupted regexp pointers"
1327(P) The regular expression engine got confused by what the regular
1328expression compiler gave it.
1329.IP "corrupted regexp program" 4
1330.IX Item "corrupted regexp program"
1331(P) The regular expression engine got passed a regexp program without a
1332valid magic number.
1333.IP "Corrupt malloc ptr 0x%lx at 0x%lx" 4
1334.IX Item "Corrupt malloc ptr 0x%lx at 0x%lx"
1335(P) The malloc package that comes with Perl had an internal failure.
1336.ie n .IP """\-p""\fR destination: \f(CW%s" 4
1337.el .IP "\f(CW\-p\fR destination: \f(CW%s\fR" 4
1338.IX Item "-p destination: %s"
1339(F) An error occurred during the implicit output invoked by the \f(CW\*(C`\-p\*(C'\fR
1340command-line switch. (This output goes to \s-1STDOUT\s0 unless you've
1341redirected it with \fIselect()\fR.)
1342.ie n .IP """\-T""\fR and \f(CW""\-B"" not implemented on filehandles" 4
1343.el .IP "\f(CW\-T\fR and \f(CW\-B\fR not implemented on filehandles" 4
1344.IX Item "-T and -B not implemented on filehandles"
1345(F) Perl can't peek at the stdio buffer of filehandles when it doesn't
1346know about your kind of stdio. You'll have to use a filename instead.
1347.ie n .IP "Deep recursion on subroutine ""%s""" 4
1348.el .IP "Deep recursion on subroutine ``%s''" 4
1349.IX Item "Deep recursion on subroutine %s"
1350(W recursion) This subroutine has called itself (directly or indirectly)
1351100 times more than it has returned. This probably indicates an
1352infinite recursion, unless you're writing strange benchmark programs, in
1353which case it indicates something else.
1354.IP "defined(@array) is deprecated" 4
1355.IX Item "defined(@array) is deprecated"
1356(D deprecated) \fIdefined()\fR is not usually useful on arrays because it
1357checks for an undefined \fIscalar\fR value. If you want to see if the
1358array is empty, just use \f(CW\*(C`if (@array) { # not empty }\*(C'\fR for example.
1359.IP "defined(%hash) is deprecated" 4
1360.IX Item "defined(%hash) is deprecated"
1361(D deprecated) \fIdefined()\fR is not usually useful on hashes because it
1362checks for an undefined \fIscalar\fR value. If you want to see if the hash
1363is empty, just use \f(CW\*(C`if (%hash) { # not empty }\*(C'\fR for example.
1364.IP "%s defines neither package nor VERSION\*(--version check failed" 4
1365.IX Item "%s defines neither package nor VERSIONversion check failed"
1366(F) You said something like \*(L"use Module 42\*(R" but in the Module file
1367there are neither package declarations nor a \f(CW$VERSION\fR.
1368.IP "Delimiter for here document is too long" 4
1369.IX Item "Delimiter for here document is too long"
1370(F) In a here document construct like \f(CW\*(C`<<FOO\*(C'\fR, the label \f(CW\*(C`FOO\*(C'\fR is too
1371long for Perl to handle. You have to be seriously twisted to write code
1372that triggers this error.
1373.IP "Did not produce a valid header" 4
1374.IX Item "Did not produce a valid header"
1375See Server error.
1376.IP "%s did not return a true value" 4
1377.IX Item "%s did not return a true value"
1378(F) A required (or used) file must return a true value to indicate that
1379it compiled correctly and ran its initialization code correctly. It's
1380traditional to end such a file with a \*(L"1;\*(R", though any true value would
1381do. See \*(L"require\*(R" in perlfunc.
1382.IP "(Did you mean &%s instead?)" 4
1383.IX Item "(Did you mean &%s instead?)"
1384(W) You probably referred to an imported subroutine &FOO as \f(CW$FOO\fR or some
1385such.
1386.ie n .IP "(Did you mean ""local"" instead of ""our""?)" 4
1387.el .IP "(Did you mean ``local'' instead of ``our''?)" 4
1388.IX Item "(Did you mean local instead of our?)"
1389(W misc) Remember that \*(L"our\*(R" does not localize the declared global
1390variable. You have declared it again in the same lexical scope, which
1391seems superfluous.
1392.IP "(Did you mean $ or @ instead of %?)" 4
1393.IX Item "(Did you mean $ or @ instead of %?)"
1394(W) You probably said \f(CW%hash\fR{$key} when you meant \f(CW$hash\fR{$key} or
1395\&\f(CW@hash\fR{@keys}. On the other hand, maybe you just meant \f(CW%hash\fR and got
1396carried away.
1397.IP "Died" 4
1398.IX Item "Died"
1399(F) You passed \fIdie()\fR an empty string (the equivalent of \f(CW\*(C`die ""\*(C'\fR) or
1400you called it with no args and both \f(CW$@\fR and \f(CW$_\fR were empty.
1401.IP "Document contains no data" 4
1402.IX Item "Document contains no data"
1403See Server error.
1404.ie n .IP "%s does not define %s::VERSION\*(--version check failed" 4
1405.el .IP "%s does not define \f(CW%s::VERSION\fR\*(--version check failed" 4
1406.IX Item "%s does not define %s::VERSIONversion check failed"
1407(F) You said something like \*(L"use Module 42\*(R" but the Module did not
1408define a \f(CW\*(C`$VERSION.\*(C'\fR
1409.IP "Don't know how to handle magic of type '%s'" 4
1410.IX Item "Don't know how to handle magic of type '%s'"
1411(P) The internal handling of magical variables has been cursed.
1412.IP "do_study: out of memory" 4
1413.IX Item "do_study: out of memory"
1414(P) This should have been caught by \fIsafemalloc()\fR instead.
1415.ie n .IP "(Do you need to predeclare %s?)" 4
1416.el .IP "(Do you need to predeclare \f(CW%s\fR?)" 4
1417.IX Item "(Do you need to predeclare %s?)"
1418(S) This is an educated guess made in conjunction with the message \*(L"%s
1419found where operator expected\*(R". It often means a subroutine or module
1420name is being referenced that hasn't been declared yet. This may be
1421because of ordering problems in your file, or because of a missing
1422\&\*(L"sub\*(R", \*(L"package\*(R", \*(L"require\*(R", or \*(L"use\*(R" statement. If you're referencing
1423something that isn't defined yet, you don't actually have to define the
1424subroutine or package before the current location. You can use an empty
1425\&\*(L"sub foo;\*(R" or \*(L"package \s-1FOO\s0;\*(R" to enter a \*(L"forward\*(R" declaration.
1426.IP "\fIdump()\fR better written as \fICORE::dump()\fR" 4
1427.IX Item "dump() better written as CORE::dump()"
1428(W misc) You used the obsolescent \f(CW\*(C`dump()\*(C'\fR built-in function, without fully
1429qualifying it as \f(CW\*(C`CORE::dump()\*(C'\fR. Maybe it's a typo. See \*(L"dump\*(R" in perlfunc.
1430.IP "Duplicate \fIfree()\fR ignored" 4
1431.IX Item "Duplicate free() ignored"
1432(S malloc) An internal routine called \fIfree()\fR on something that had
1433already been freed.
1434.IP "elseif should be elsif" 4
1435.IX Item "elseif should be elsif"
1436(S) There is no keyword \*(L"elseif\*(R" in Perl because Larry thinks it's ugly.
1437Your code will be interpreted as an attempt to call a method named
1438\&\*(L"elseif\*(R" for the class returned by the following block. This is
1439unlikely to be what you want.
1440.ie n .IP "Empty %s" 4
1441.el .IP "Empty \f(CW%s\fR" 4
1442.IX Item "Empty %s"
1443(F) \f(CW\*(C`\ep\*(C'\fR and \f(CW\*(C`\eP\*(C'\fR are used to introduce a named Unicode property, as
1444described in perlunicode and perlre. You used \f(CW\*(C`\ep\*(C'\fR or \f(CW\*(C`\eP\*(C'\fR in
1445a regular expression without specifying the property name.
1446.ie n .IP "entering effective %s failed" 4
1447.el .IP "entering effective \f(CW%s\fR failed" 4
1448.IX Item "entering effective %s failed"
1449(F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, switching the real and
1450effective uids or gids failed.
1451.ie n .IP "Error converting file specification %s" 4
1452.el .IP "Error converting file specification \f(CW%s\fR" 4
1453.IX Item "Error converting file specification %s"
1454(F) An error peculiar to \s-1VMS\s0. Because Perl may have to deal with file
1455specifications in either \s-1VMS\s0 or Unix syntax, it converts them to a
1456single form when it must operate on them directly. Either you've passed
1457an invalid file specification to Perl, or you've found a case the
1458conversion routines don't handle. Drat.
1459.IP "%s: Eval-group in insecure regular expression" 4
1460.IX Item "%s: Eval-group in insecure regular expression"
1461(F) Perl detected tainted data when trying to compile a regular
1462expression that contains the \f(CW\*(C`(?{ ... })\*(C'\fR zero-width assertion, which
1463is unsafe. See \*(L"(?{ code })\*(R" in perlre, and perlsec.
1464.IP "%s: Eval-group not allowed at run time" 4
1465.IX Item "%s: Eval-group not allowed at run time"
1466(F) Perl tried to compile a regular expression containing the
1467\&\f(CW\*(C`(?{ ... })\*(C'\fR zero-width assertion at run time, as it would when the
1468pattern contains interpolated values. Since that is a security risk, it
1469is not allowed. If you insist, you may still do this by explicitly
1470building the pattern from an interpolated string at run time and using
1471that in an \fIeval()\fR. See \*(L"(?{ code })\*(R" in perlre.
1472.IP "%s: Eval-group not allowed, use re 'eval'" 4
1473.IX Item "%s: Eval-group not allowed, use re 'eval'"
1474(F) A regular expression contained the \f(CW\*(C`(?{ ... })\*(C'\fR zero-width
1475assertion, but that construct is only allowed when the \f(CW\*(C`use re 'eval'\*(C'\fR
1476pragma is in effect. See \*(L"(?{ code })\*(R" in perlre.
1477.IP "Excessively long <> operator" 4
1478.IX Item "Excessively long <> operator"
1479(F) The contents of a <> operator may not exceed the maximum size of a
1480Perl identifier. If you're just trying to glob a long list of
1481filenames, try using the \fIglob()\fR operator, or put the filenames into a
1482variable and glob that.
1483.IP "exec? I'm not *that* kind of operating system" 4
1484.IX Item "exec? I'm not *that* kind of operating system"
1485(F) The \f(CW\*(C`exec\*(C'\fR function is not implemented in MacPerl. See perlport.
1486.ie n .IP "Execution of %s aborted due to compilation errors" 4
1487.el .IP "Execution of \f(CW%s\fR aborted due to compilation errors" 4
1488.IX Item "Execution of %s aborted due to compilation errors"
1489(F) The final summary message when a Perl compilation fails.
1490.ie n .IP "Exiting eval via %s" 4
1491.el .IP "Exiting eval via \f(CW%s\fR" 4
1492.IX Item "Exiting eval via %s"
1493(W exiting) You are exiting an eval by unconventional means, such as a
1494goto, or a loop control statement.
1495.ie n .IP "Exiting format via %s" 4
1496.el .IP "Exiting format via \f(CW%s\fR" 4
1497.IX Item "Exiting format via %s"
1498(W exiting) You are exiting a format by unconventional means, such as a
1499goto, or a loop control statement.
1500.ie n .IP "Exiting pseudo-block via %s" 4
1501.el .IP "Exiting pseudo-block via \f(CW%s\fR" 4
1502.IX Item "Exiting pseudo-block via %s"
1503(W exiting) You are exiting a rather special block construct (like a
1504sort block or subroutine) by unconventional means, such as a goto, or a
1505loop control statement. See \*(L"sort\*(R" in perlfunc.
1506.ie n .IP "Exiting subroutine via %s" 4
1507.el .IP "Exiting subroutine via \f(CW%s\fR" 4
1508.IX Item "Exiting subroutine via %s"
1509(W exiting) You are exiting a subroutine by unconventional means, such
1510as a goto, or a loop control statement.
1511.ie n .IP "Exiting substitution via %s" 4
1512.el .IP "Exiting substitution via \f(CW%s\fR" 4
1513.IX Item "Exiting substitution via %s"
1514(W exiting) You are exiting a substitution by unconventional means, such
1515as a return, a goto, or a loop control statement.
1516.IP "Explicit blessing to '' (assuming package main)" 4
1517.IX Item "Explicit blessing to '' (assuming package main)"
1518(W misc) You are blessing a reference to a zero length string. This has
1519the effect of blessing the reference into the package main. This is
1520usually not what you want. Consider providing a default target package,
1521e.g. bless($ref, \f(CW$p\fR || 'MyPackage');
1522.IP "%s: Expression syntax" 4
1523.IX Item "%s: Expression syntax"
1524(A) You've accidentally run your script through \fBcsh\fR instead of Perl.
1525Check the #! line, or manually feed your script into Perl yourself.
1526.IP "%s failed\*(--call queue aborted" 4
1527.IX Item "%s failedcall queue aborted"
1528(F) An untrapped exception was raised while executing a \s-1CHECK\s0, \s-1INIT\s0, or
1529\&\s-1END\s0 subroutine. Processing of the remainder of the queue of such
1530routines has been prematurely ended.
1531.ie n .IP "False [] range ""%s"" in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1532.el .IP "False [] range ``%s'' in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1533.IX Item "False [] range %s in regex; marked by <-- HERE in m/%s/"
1534(W regexp) A character class range must start and end at a literal
1535character, not another character class like \f(CW\*(C`\ed\*(C'\fR or \f(CW\*(C`[:alpha:]\*(C'\fR. The \*(L"\-\*(R"
1536in your false range is interpreted as a literal \*(L"\-\*(R". Consider quoting the
1537\&\*(L"\-\*(R", \*(L"\e\-\*(R". The <\-\- \s-1HERE\s0 shows in the regular expression about where the
1538problem was discovered. See perlre.
1539.ie n .IP "Fatal \s-1VMS\s0 error at %s\fR, line \f(CW%d" 4
1540.el .IP "Fatal \s-1VMS\s0 error at \f(CW%s\fR, line \f(CW%d\fR" 4
1541.IX Item "Fatal VMS error at %s, line %d"
1542(P) An error peculiar to \s-1VMS\s0. Something untoward happened in a \s-1VMS\s0
1543system service or \s-1RTL\s0 routine; Perl's exit status should provide more
1544details. The filename in \*(L"at \f(CW%s\fR\*(R" and the line number in \*(L"line \f(CW%d\fR\*(R" tell
1545you which section of the Perl source code is distressed.
1546.IP "fcntl is not implemented" 4
1547.IX Item "fcntl is not implemented"
1548(F) Your machine apparently doesn't implement \fIfcntl()\fR. What is this, a
1549\&\s-1PDP\-11\s0 or something?
1550.ie n .IP "Filehandle %s opened only for input" 4
1551.el .IP "Filehandle \f(CW%s\fR opened only for input" 4
1552.IX Item "Filehandle %s opened only for input"
1553(W io) You tried to write on a read-only filehandle. If you intended it
1554to be a read-write filehandle, you needed to open it with \*(L"+<\*(R" or \*(L"+>\*(R"
1555or \*(L"+>>\*(R" instead of with \*(L"<\*(R" or nothing. If you intended only to write
1556the file, use \*(L">\*(R" or \*(L">>\*(R". See \*(L"open\*(R" in perlfunc.
1557The warning will also occur if \s-1STDOUT\s0 (file descriptor 1) or \s-1STDERR\s0
1558(file descriptor 2) is opened for input, this is a pre-emptive warning in
1559case some other part of your program or a child process is expecting \s-1STDOUT\s0
1560and \s-1STDERR\s0 to be writable. This can happen accidentally if you
1561\&\f(CW\*(C`close(STDOUT)\*(C'\fR or \s-1STDERR\s0 and then \f(CW\*(C`open\*(C'\fR an unrelated handle which
1562will resuse the lowest numbered available descriptor.
1563.ie n .IP "Filehandle %s opened only for output" 4
1564.el .IP "Filehandle \f(CW%s\fR opened only for output" 4
1565.IX Item "Filehandle %s opened only for output"
1566(W io) You tried to read from a filehandle opened only for writing.
1567If you intended it to be a read/write filehandle, you needed to open it
1568with \*(L"+<\*(R" or \*(L"+>\*(R" or \*(L"+>>\*(R" instead of with \*(L"<\*(R" or nothing. If you
1569intended only to read from the file, use \*(L"<\*(R". See \*(L"open\*(R" in perlfunc.
1570The warning will also occur if \s-1STDIN\s0 (file descriptor 0) is opened
1571for output \- this is a pre-emptive warning in case some other part of your
1572program or a child process is expecting \s-1STDIN\s0 to be readable.
1573This can happen accidentally if you \f(CW\*(C`close(STDIN)\*(C'\fR and then \f(CW\*(C`open\*(C'\fR an
1574unrelated handle which will resuse the lowest numbered available
1575descriptor.
1576.ie n .IP "Final $ should be \e$ or $name" 4
1577.el .IP "Final $ should be \e$ or \f(CW$name\fR" 4
1578.IX Item "Final $ should be $ or $name"
1579(F) You must now decide whether the final $ in a string was meant to be
1580a literal dollar sign, or was meant to introduce a variable name that
1581happens to be missing. So you have to put either the backslash or the
1582name.
1583.ie n .IP "Final @ should be \e@ or @name" 4
1584.el .IP "Final @ should be \e@ or \f(CW@name\fR" 4
1585.IX Item "Final @ should be @ or @name"
1586(F) You must now decide whether the final @ in a string was meant to be
1587a literal \*(L"at\*(R" sign, or was meant to introduce a variable name that
1588happens to be missing. So you have to put either the backslash or the
1589name.
1590.ie n .IP "\fIflock()\fR on closed filehandle %s" 4
1591.el .IP "\fIflock()\fR on closed filehandle \f(CW%s\fR" 4
1592.IX Item "flock() on closed filehandle %s"
1593(W closed) The filehandle you're attempting to \fIflock()\fR got itself closed
1594some time before now. Check your control flow. \fIflock()\fR operates on
1595filehandles. Are you attempting to call \fIflock()\fR on a dirhandle by the
1596same name?
1597.IP "Quantifier follows nothing in regex;" 4
1598.IX Item "Quantifier follows nothing in regex;"
1599marked by <\-\- \s-1HERE\s0 in m/%s/
1600.Sp
1601(F) You started a regular expression with a quantifier. Backslash it if you
1602meant it literally. The <\-\- \s-1HERE\s0 shows in the regular expression about
1603where the problem was discovered. See perlre.
1604.IP "Format not terminated" 4
1605.IX Item "Format not terminated"
1606(F) A format must be terminated by a line with a solitary dot. Perl got
1607to the end of your file without finding such a line.
1608.ie n .IP "Format %s redefined" 4
1609.el .IP "Format \f(CW%s\fR redefined" 4
1610.IX Item "Format %s redefined"
1611(W redefine) You redefined a format. To suppress this warning, say
1612.Sp
1613.Vb 4
1614\& {
1615\& no warnings 'redefine';
1616\& eval "format NAME =...";
1617\& }
1618.Ve
1619.IP "Found = in conditional, should be ==" 4
1620.IX Item "Found = in conditional, should be =="
1621(W syntax) You said
1622.Sp
1623.Vb 1
1624\& if ($foo = 123)
1625.Ve
1626.Sp
1627when you meant
1628.Sp
1629.Vb 1
1630\& if ($foo == 123)
1631.Ve
1632.Sp
1633(or something like that).
1634.IP "%s found where operator expected" 4
1635.IX Item "%s found where operator expected"
1636(S) The Perl lexer knows whether to expect a term or an operator. If it
1637sees what it knows to be a term when it was expecting to see an
1638operator, it gives you this warning. Usually it indicates that an
1639operator or delimiter was omitted, such as a semicolon.
1640.ie n .IP "gdbm store returned %d\fR, errno \f(CW%d, key ""%s""" 4
1641.el .IP "gdbm store returned \f(CW%d\fR, errno \f(CW%d\fR, key ``%s''" 4
1642.IX Item "gdbm store returned %d, errno %d, key %s"
1643(S) A warning from the GDBM_File extension that a store failed.
1644.IP "gethostent not implemented" 4
1645.IX Item "gethostent not implemented"
1646(F) Your C library apparently doesn't implement \fIgethostent()\fR, probably
1647because if it did, it'd feel morally obligated to return every hostname
1648on the Internet.
1649.ie n .IP "get%\fIsname()\fR on closed socket %s" 4
1650.el .IP "get%\fIsname()\fR on closed socket \f(CW%s\fR" 4
1651.IX Item "get%sname() on closed socket %s"
1652(W closed) You tried to get a socket or peer socket name on a closed
1653socket. Did you forget to check the return value of your \fIsocket()\fR call?
1654.ie n .IP "getpwnam returned invalid \s-1UIC\s0 %#o for user ""%s""" 4
1655.el .IP "getpwnam returned invalid \s-1UIC\s0 %#o for user ``%s''" 4
1656.IX Item "getpwnam returned invalid UIC %#o for user %s"
1657(S) A warning peculiar to \s-1VMS\s0. The call to \f(CW\*(C`sys$getuai\*(C'\fR underlying the
1658\&\f(CW\*(C`getpwnam\*(C'\fR operator returned an invalid \s-1UIC\s0.
1659.ie n .IP "\fIgetsockopt()\fR on closed socket %s" 4
1660.el .IP "\fIgetsockopt()\fR on closed socket \f(CW%s\fR" 4
1661.IX Item "getsockopt() on closed socket %s"
1662(W closed) You tried to get a socket option on a closed socket. Did you
1663forget to check the return value of your \fIsocket()\fR call? See
1664\&\*(L"getsockopt\*(R" in perlfunc.
1665.ie n .IP "Global symbol ""%s"" requires explicit package name" 4
1666.el .IP "Global symbol ``%s'' requires explicit package name" 4
1667.IX Item "Global symbol %s requires explicit package name"
1668(F) You've said \*(L"use strict vars\*(R", which indicates that all variables
1669must either be lexically scoped (using \*(L"my\*(R"), declared beforehand using
1670\&\*(L"our\*(R", or explicitly qualified to say which package the global variable
1671is in (using \*(L"::\*(R").
1672.IP "glob failed (%s)" 4
1673.IX Item "glob failed (%s)"
1674(W glob) Something went wrong with the external program(s) used for
1675\&\f(CW\*(C`glob\*(C'\fR and \f(CW\*(C`<*.c>\*(C'\fR. Usually, this means that you supplied a
1676\&\f(CW\*(C`glob\*(C'\fR pattern that caused the external program to fail and exit with a
1677nonzero status. If the message indicates that the abnormal exit
1678resulted in a coredump, this may also mean that your csh (C shell) is
1679broken. If so, you should change all of the csh-related variables in
1680config.sh: If you have tcsh, make the variables refer to it as if it
1681were csh (e.g. \f(CW\*(C`full_csh='/usr/bin/tcsh'\*(C'\fR); otherwise, make them all
1682empty (except that \f(CW\*(C`d_csh\*(C'\fR should be \f(CW'undef'\fR) so that Perl will
1683think csh is missing. In either case, after editing config.sh, run
1684\&\f(CW\*(C`./Configure \-S\*(C'\fR and rebuild Perl.
1685.IP "Glob not terminated" 4
1686.IX Item "Glob not terminated"
1687(F) The lexer saw a left angle bracket in a place where it was expecting
1688a term, so it's looking for the corresponding right angle bracket, and
1689not finding it. Chances are you left some needed parentheses out
1690earlier in the line, and you really meant a \*(L"less than\*(R".
1691.IP "Got an error from DosAllocMem" 4
1692.IX Item "Got an error from DosAllocMem"
1693(P) An error peculiar to \s-1OS/2\s0. Most probably you're using an obsolete
1694version of Perl, and this should not happen anyway.
1695.IP "goto must have label" 4
1696.IX Item "goto must have label"
1697(F) Unlike with \*(L"next\*(R" or \*(L"last\*(R", you're not allowed to goto an
1698unspecified destination. See \*(L"goto\*(R" in perlfunc.
1699.IP "%s\-group starts with a count" 4
1700.IX Item "%s-group starts with a count"
1701(F) In pack/unpack a ()\-group started with a count. A count is
1702supposed to follow something: a template character or a ()\-group.
1703.IP "%s had compilation errors" 4
1704.IX Item "%s had compilation errors"
1705(F) The final summary message when a \f(CW\*(C`perl \-c\*(C'\fR fails.
1706.ie n .IP "Had to create %s unexpectedly" 4
1707.el .IP "Had to create \f(CW%s\fR unexpectedly" 4
1708.IX Item "Had to create %s unexpectedly"
1709(S internal) A routine asked for a symbol from a symbol table that ought
1710to have existed already, but for some reason it didn't, and had to be
1711created on an emergency basis to prevent a core dump.
1712.ie n .IP "Hash %%s missing the % in argument %d of %s()" 4
1713.el .IP "Hash %%s missing the % in argument \f(CW%d\fR of %s()" 4
1714.IX Item "Hash %%s missing the % in argument %d of %s()"
1715(D deprecated) Really old Perl let you omit the % on hash names in some
1716spots. This is now heavily deprecated.
1717.IP "%s has too many errors" 4
1718.IX Item "%s has too many errors"
1719(F) The parser has given up trying to parse the program after 10 errors.
1720Further error messages would likely be uninformative.
1721.IP "Hexadecimal number > 0xffffffff non-portable" 4
1722.IX Item "Hexadecimal number > 0xffffffff non-portable"
1723(W portable) The hexadecimal number you specified is larger than 2**32\-1
1724(4294967295) and therefore non-portable between systems. See
1725perlport for more on portability concerns.
1726.IP "Identifier too long" 4
1727.IX Item "Identifier too long"
1728(F) Perl limits identifiers (names for variables, functions, etc.) to
1729about 250 characters for simple names, and somewhat more for compound
1730names (like \f(CW$A::B\fR). You've exceeded Perl's limits. Future versions
1731of Perl are likely to eliminate these arbitrary limitations.
1732.ie n .IP "Illegal binary digit %s" 4
1733.el .IP "Illegal binary digit \f(CW%s\fR" 4
1734.IX Item "Illegal binary digit %s"
1735(F) You used a digit other than 0 or 1 in a binary number.
1736.ie n .IP "Illegal binary digit %s ignored" 4
1737.el .IP "Illegal binary digit \f(CW%s\fR ignored" 4
1738.IX Item "Illegal binary digit %s ignored"
1739(W digit) You may have tried to use a digit other than 0 or 1 in a
1740binary number. Interpretation of the binary number stopped before the
1741offending digit.
1742.ie n .IP "Illegal character %s (carriage return)" 4
1743.el .IP "Illegal character \f(CW%s\fR (carriage return)" 4
1744.IX Item "Illegal character %s (carriage return)"
1745(F) Perl normally treats carriage returns in the program text as it
1746would any other whitespace, which means you should never see this error
1747when Perl was built using standard options. For some reason, your
1748version of Perl appears to have been built without this support. Talk
1749to your Perl administrator.
1750.ie n .IP "Illegal character in prototype for %s\fR : \f(CW%s" 4
1751.el .IP "Illegal character in prototype for \f(CW%s\fR : \f(CW%s\fR" 4
1752.IX Item "Illegal character in prototype for %s : %s"
1753(W syntax) An illegal character was found in a prototype declaration. Legal
1754characters in prototypes are $, @, %, *, ;, [, ], &, and \e.
1755.IP "Illegal division by zero" 4
1756.IX Item "Illegal division by zero"
1757(F) You tried to divide a number by 0. Either something was wrong in
1758your logic, or you need to put a conditional in to guard against
1759meaningless input.
1760.ie n .IP "Illegal hexadecimal digit %s ignored" 4
1761.el .IP "Illegal hexadecimal digit \f(CW%s\fR ignored" 4
1762.IX Item "Illegal hexadecimal digit %s ignored"
1763(W digit) You may have tried to use a character other than 0 \- 9 or
1764A \- F, a \- f in a hexadecimal number. Interpretation of the hexadecimal
1765number stopped before the illegal character.
1766.IP "Illegal modulus zero" 4
1767.IX Item "Illegal modulus zero"
1768(F) You tried to divide a number by 0 to get the remainder. Most
1769numbers don't take to this kindly.
1770.IP "Illegal number of bits in vec" 4
1771.IX Item "Illegal number of bits in vec"
1772(F) The number of bits in \fIvec()\fR (the third argument) must be a power of
1773two from 1 to 32 (or 64, if your platform supports that).
1774.ie n .IP "Illegal octal digit %s" 4
1775.el .IP "Illegal octal digit \f(CW%s\fR" 4
1776.IX Item "Illegal octal digit %s"
1777(F) You used an 8 or 9 in an octal number.
1778.ie n .IP "Illegal octal digit %s ignored" 4
1779.el .IP "Illegal octal digit \f(CW%s\fR ignored" 4
1780.IX Item "Illegal octal digit %s ignored"
1781(W digit) You may have tried to use an 8 or 9 in an octal number.
1782Interpretation of the octal number stopped before the 8 or 9.
1783.ie n .IP "Illegal switch in \s-1PERL5OPT:\s0 %s" 4
1784.el .IP "Illegal switch in \s-1PERL5OPT:\s0 \f(CW%s\fR" 4
1785.IX Item "Illegal switch in PERL5OPT: %s"
1786(X) The \s-1PERL5OPT\s0 environment variable may only be used to set the
1787following switches: \fB\-[DIMUdmtw]\fR.
1788.ie n .IP "Ill-formed \s-1CRTL\s0 environ value ""%s""" 4
1789.el .IP "Ill-formed \s-1CRTL\s0 environ value ``%s''" 4
1790.IX Item "Ill-formed CRTL environ value %s"
1791(W internal) A warning peculiar to \s-1VMS\s0. Perl tried to read the \s-1CRTL\s0's
1792internal environ array, and encountered an element without the \f(CW\*(C`=\*(C'\fR
1793delimiter used to separate keys from values. The element is ignored.
1794.IP "Ill-formed message in prime_env_iter: |%s|" 4
1795.IX Item "Ill-formed message in prime_env_iter: |%s|"
1796(W internal) A warning peculiar to \s-1VMS\s0. Perl tried to read a logical
1797name or \s-1CLI\s0 symbol definition when preparing to iterate over \f(CW%ENV\fR, and
1798didn't see the expected delimiter between key and value, so the line was
1799ignored.
1800.ie n .IP "(in cleanup) %s" 4
1801.el .IP "(in cleanup) \f(CW%s\fR" 4
1802.IX Item "(in cleanup) %s"
1803(W misc) This prefix usually indicates that a \s-1\fIDESTROY\s0()\fR method raised
1804the indicated exception. Since destructors are usually called by the
1805system at arbitrary points during execution, and often a vast number of
1806times, the warning is issued only once for any number of failures that
1807would otherwise result in the same message being repeated.
1808.Sp
1809Failure of user callbacks dispatched using the \f(CW\*(C`G_KEEPERR\*(C'\fR flag could
1810also result in this warning. See \*(L"G_KEEPERR\*(R" in perlcall.
1811.IP "In \s-1EBCDIC\s0 the v\-string components cannot exceed 2147483647" 4
1812.IX Item "In EBCDIC the v-string components cannot exceed 2147483647"
1813(F) An error peculiar to \s-1EBCDIC\s0. Internally, v\-strings are stored as
1814Unicode code points, and encoded in \s-1EBCDIC\s0 as \s-1UTF\-EBCDIC\s0. The UTF-EBCDIC
1815encoding is limited to code points no larger than 2147483647 (0x7FFFFFFF).
1816.ie n .IP "Insecure dependency in %s" 4
1817.el .IP "Insecure dependency in \f(CW%s\fR" 4
1818.IX Item "Insecure dependency in %s"
1819(F) You tried to do something that the tainting mechanism didn't like.
1820The tainting mechanism is turned on when you're running setuid or
1821setgid, or when you specify \fB\-T\fR to turn it on explicitly. The
1822tainting mechanism labels all data that's derived directly or indirectly
1823from the user, who is considered to be unworthy of your trust. If any
1824such data is used in a \*(L"dangerous\*(R" operation, you get this error. See
1825perlsec for more information.
1826.ie n .IP "Insecure directory in %s" 4
1827.el .IP "Insecure directory in \f(CW%s\fR" 4
1828.IX Item "Insecure directory in %s"
1829(F) You can't use \fIsystem()\fR, \fIexec()\fR, or a piped open in a setuid or
1830setgid script if \f(CW$ENV{PATH}\fR contains a directory that is writable by
1831the world. See perlsec.
1832.ie n .IP "Insecure $ENV\fR{%s} while running \f(CW%s" 4
1833.el .IP "Insecure \f(CW$ENV\fR{%s} while running \f(CW%s\fR" 4
1834.IX Item "Insecure $ENV{%s} while running %s"
1835(F) You can't use \fIsystem()\fR, \fIexec()\fR, or a piped open in a setuid or
1836setgid script if any of \f(CW$ENV{PATH}\fR, \f(CW$ENV{IFS}\fR, \f(CW$ENV{CDPATH}\fR,
1837\&\f(CW$ENV{ENV}\fR or \f(CW$ENV{BASH_ENV}\fR are derived from data supplied (or
1838potentially supplied) by the user. The script must set the path to a
1839known value, using trustworthy data. See perlsec.
1840.ie n .IP "Integer overflow in %s number" 4
1841.el .IP "Integer overflow in \f(CW%s\fR number" 4
1842.IX Item "Integer overflow in %s number"
1843(W overflow) The hexadecimal, octal or binary number you have specified
1844either as a literal or as an argument to \fIhex()\fR or \fIoct()\fR is too big for
1845your architecture, and has been converted to a floating point number.
1846On a 32\-bit architecture the largest hexadecimal, octal or binary number
1847representable without overflow is 0xFFFFFFFF, 037777777777, or
18480b11111111111111111111111111111111 respectively. Note that Perl
1849transparently promotes all numbers to a floating point representation
1850internally\*(--subject to loss of precision errors in subsequent
1851operations.
1852.IP "Internal disaster in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1853.IX Item "Internal disaster in regex; marked by <-- HERE in m/%s/"
1854(P) Something went badly wrong in the regular expression parser.
1855The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
1856discovered.
1857.IP "Internal inconsistency in tracking vforks" 4
1858.IX Item "Internal inconsistency in tracking vforks"
1859(S) A warning peculiar to \s-1VMS\s0. Perl keeps track of the number of times
1860you've called \f(CW\*(C`fork\*(C'\fR and \f(CW\*(C`exec\*(C'\fR, to determine whether the current call
1861to \f(CW\*(C`exec\*(C'\fR should affect the current script or a subprocess (see
1862\&\*(L"exec \s-1LIST\s0\*(R" in perlvms). Somehow, this count has become scrambled, so
1863Perl is making a guess and treating this \f(CW\*(C`exec\*(C'\fR as a request to
1864terminate the Perl script and execute the specified command.
1865.IP "Internal urp in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1866.IX Item "Internal urp in regex; marked by <-- HERE in m/%s/"
1867(P) Something went badly awry in the regular expression parser. The
1868<\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
1869discovered.
1870.IP "%s (...) interpreted as function" 4
1871.IX Item "%s (...) interpreted as function"
1872(W syntax) You've run afoul of the rule that says that any list operator
1873followed by parentheses turns into a function, with all the list
1874operators arguments found inside the parentheses. See
1875\&\*(L"Terms and List Operators (Leftward)\*(R" in perlop.
1876.ie n .IP "Invalid %s\fR attribute: \f(CW%s" 4
1877.el .IP "Invalid \f(CW%s\fR attribute: \f(CW%s\fR" 4
1878.IX Item "Invalid %s attribute: %s"
1879The indicated attribute for a subroutine or variable was not recognized
1880by Perl or by a user-supplied handler. See attributes.
1881.ie n .IP "Invalid %s\fR attributes: \f(CW%s" 4
1882.el .IP "Invalid \f(CW%s\fR attributes: \f(CW%s\fR" 4
1883.IX Item "Invalid %s attributes: %s"
1884The indicated attributes for a subroutine or variable were not
1885recognized by Perl or by a user-supplied handler. See attributes.
1886.ie n .IP "Invalid conversion in %s: ""%s""" 4
1887.el .IP "Invalid conversion in \f(CW%s:\fR ``%s''" 4
1888.IX Item "Invalid conversion in %s: %s"
1889(W printf) Perl does not understand the given format conversion. See
1890\&\*(L"sprintf\*(R" in perlfunc.
1891.ie n .IP "Invalid [] range ""%s"" in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1892.el .IP "Invalid [] range ``%s'' in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
1893.IX Item "Invalid [] range %s in regex; marked by <-- HERE in m/%s/"
1894(F) The range specified in a character class had a minimum character
1895greater than the maximum character. One possibility is that you forgot the
1896\&\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
1897up to \f(CW\*(C`ff\*(C'\fR. The <\-\- \s-1HERE\s0 shows in the regular expression about where the
1898problem was discovered. See perlre.
1899.ie n .IP "Invalid [] range ""%s"" in transliteration operator" 4
1900.el .IP "Invalid [] range ``%s'' in transliteration operator" 4
1901.IX Item "Invalid [] range %s in transliteration operator"
1902(F) The range specified in the tr/// or y/// operator had a minimum
1903character greater than the maximum character. See perlop.
1904.ie n .IP "Invalid separator character %s in attribute list" 4
1905.el .IP "Invalid separator character \f(CW%s\fR in attribute list" 4
1906.IX Item "Invalid separator character %s in attribute list"
1907(F) Something other than a colon or whitespace was seen between the
1908elements of an attribute list. If the previous attribute had a
1909parenthesised parameter list, perhaps that list was terminated too soon.
1910See attributes.
1911.IP "Invalid type in pack: '%s'" 4
1912.IX Item "Invalid type in pack: '%s'"
1913(F) The given character is not a valid pack type. See \*(L"pack\*(R" in perlfunc.
1914(W pack) The given character is not a valid pack type but used to be
1915silently ignored.
1916.IP "Invalid type in unpack: '%s'" 4
1917.IX Item "Invalid type in unpack: '%s'"
1918(F) The given character is not a valid unpack type. See
1919\&\*(L"unpack\*(R" in perlfunc.
1920(W unpack) The given character is not a valid unpack type but used to be
1921silently ignored.
1922.IP "ioctl is not implemented" 4
1923.IX Item "ioctl is not implemented"
1924(F) Your machine apparently doesn't implement \fIioctl()\fR, which is pretty
1925strange for a machine that supports C.
1926.ie n .IP "\fIioctl()\fR on unopened %s" 4
1927.el .IP "\fIioctl()\fR on unopened \f(CW%s\fR" 4
1928.IX Item "ioctl() on unopened %s"
1929(W unopened) You tried \fIioctl()\fR on a filehandle that was never opened.
1930Check you control flow and number of arguments.
1931.IP "IO::Socket::atmark not implemented on this architecture" 4
1932.IX Item "IO::Socket::atmark not implemented on this architecture"
1933(F) Your machine doesn't implement the \fIsockatmark()\fR functionality,
1934neither as a system call or an ioctl call (\s-1SIOCATMARK\s0).
1935.IP "`%s' is not a code reference" 4
1936.IX Item "`%s' is not a code reference"
1937(W overload) The second (fourth, sixth, ...) argument of overload::constant
1938needs to be a code reference. Either an anonymous subroutine, or a reference
1939to a subroutine.
1940.IP "`%s' is not an overloadable type" 4
1941.IX Item "`%s' is not an overloadable type"
1942(W overload) You tried to overload a constant type the overload package is
1943unaware of.
1944.IP "junk on end of regexp" 4
1945.IX Item "junk on end of regexp"
1946(P) The regular expression parser is confused.
1947.ie n .IP "Label not found for ""last %s""" 4
1948.el .IP "Label not found for ``last \f(CW%s\fR''" 4
1949.IX Item "Label not found for last %s"
1950(F) You named a loop to break out of, but you're not currently in a loop
1951of that name, not even if you count where you were called from. See
1952\&\*(L"last\*(R" in perlfunc.
1953.ie n .IP "Label not found for ""next %s""" 4
1954.el .IP "Label not found for ``next \f(CW%s\fR''" 4
1955.IX Item "Label not found for next %s"
1956(F) You named a loop to continue, but you're not currently in a loop of
1957that name, not even if you count where you were called from. See
1958\&\*(L"last\*(R" in perlfunc.
1959.ie n .IP "Label not found for ""redo %s""" 4
1960.el .IP "Label not found for ``redo \f(CW%s\fR''" 4
1961.IX Item "Label not found for redo %s"
1962(F) You named a loop to restart, but you're not currently in a loop of
1963that name, not even if you count where you were called from. See
1964\&\*(L"last\*(R" in perlfunc.
1965.ie n .IP "leaving effective %s failed" 4
1966.el .IP "leaving effective \f(CW%s\fR failed" 4
1967.IX Item "leaving effective %s failed"
1968(F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, switching the real and
1969effective uids or gids failed.
1970.ie n .IP "\fIlisten()\fR on closed socket %s" 4
1971.el .IP "\fIlisten()\fR on closed socket \f(CW%s\fR" 4
1972.IX Item "listen() on closed socket %s"
1973(W closed) You tried to do a listen on a closed socket. Did you forget
1974to check the return value of your \fIsocket()\fR call? See
1975\&\*(L"listen\*(R" in perlfunc.
1976.ie n .IP "\fIlstat()\fR on filehandle %s" 4
1977.el .IP "\fIlstat()\fR on filehandle \f(CW%s\fR" 4
1978.IX Item "lstat() on filehandle %s"
1979(W io) You tried to do an lstat on a filehandle. What did you mean
1980by that? \fIlstat()\fR makes sense only on filenames. (Perl did a \fIfstat()\fR
1981instead on the filehandle.)
1982.ie n .IP "Lvalue subs returning %s not implemented yet" 4
1983.el .IP "Lvalue subs returning \f(CW%s\fR not implemented yet" 4
1984.IX Item "Lvalue subs returning %s not implemented yet"
1985(F) Due to limitations in the current implementation, array and hash
1986values cannot be returned in subroutines used in lvalue context. See
1987\&\*(L"Lvalue subroutines\*(R" in perlsub.
1988.ie n .IP "Lookbehind longer than %d not implemented in regex;" 4
1989.el .IP "Lookbehind longer than \f(CW%d\fR not implemented in regex;" 4
1990.IX Item "Lookbehind longer than %d not implemented in regex;"
1991marked by <\-\- \s-1HERE\s0 in m/%s/
1992.Sp
1993(F) There is currently a limit on the length of string which lookbehind can
1994handle. This restriction may be eased in a future release. The <\-\- \s-1HERE\s0
1995shows in the regular expression about where the problem was discovered.
1996.IP "Malformed \s-1PERLLIB_PREFIX\s0" 4
1997.IX Item "Malformed PERLLIB_PREFIX"
1998(F) An error peculiar to \s-1OS/2\s0. \s-1PERLLIB_PREFIX\s0 should be of the form
1999.Sp
2000.Vb 1
2001\& prefix1;prefix2
2002.Ve
2003.Sp
2004or
2005 prefix1 prefix2
2006.Sp
2007with nonempty prefix1 and prefix2. If \f(CW\*(C`prefix1\*(C'\fR is indeed a prefix of
2008a builtin library search path, prefix2 is substituted. The error may
2009appear if components are not found, or are too long. See
2010\&\*(L"\s-1PERLLIB_PREFIX\s0\*(R" in perlos2.
2011.ie n .IP "Malformed prototype for %s:\fR \f(CW%s" 4
2012.el .IP "Malformed prototype for \f(CW%s:\fR \f(CW%s\fR" 4
2013.IX Item "Malformed prototype for %s: %s"
2014(F) You tried to use a function with a malformed prototype. The
2015syntax of function prototypes is given a brief compile-time check for
2016obvious errors like invalid characters. A more rigorous check is run
2017when the function is called.
2018.IP "Malformed \s-1UTF\-8\s0 character (%s)" 4
2019.IX Item "Malformed UTF-8 character (%s)"
2020Perl detected something that didn't comply with \s-1UTF\-8\s0 encoding rules.
2021.Sp
2022One possible cause is that you read in data that you thought to be in
2023\&\s-1UTF\-8\s0 but it wasn't (it was for example legacy 8\-bit data). Another
2024possibility is careless use of \fIutf8::upgrade()\fR.
2025.IP "Malformed \s-1UTF\-16\s0 surrogate" 4
2026.IX Item "Malformed UTF-16 surrogate"
2027Perl thought it was reading \s-1UTF\-16\s0 encoded character data but while
2028doing it Perl met a malformed Unicode surrogate.
2029.IP "%s matches null string many times in regex;" 4
2030.IX Item "%s matches null string many times in regex;"
2031marked by <\-\- \s-1HERE\s0 in m/%s/
2032.Sp
2033(W regexp) The pattern you've specified would be an infinite loop if the
2034regular expression engine didn't specifically check for that. The <\-\- \s-1HERE\s0
2035shows in the regular expression about where the problem was discovered.
2036See perlre.
2037.ie n .IP """%s"" may clash with future reserved word" 4
2038.el .IP "``%s'' may clash with future reserved word" 4
2039.IX Item "%s may clash with future reserved word"
2040(W) This warning may be due to running a perl5 script through a perl4
2041interpreter, especially if the word that is being warned about is
2042\&\*(L"use\*(R" or \*(L"my\*(R".
2043.IP "% may only be used in unpack" 4
2044.IX Item "% may only be used in unpack"
2045(F) You can't pack a string by supplying a checksum, because the
2046checksumming process loses information, and you can't go the other way.
2047See \*(L"unpack\*(R" in perlfunc.
2048.ie n .IP "Method for operation %s\fR not found in package \f(CW%s during blessing" 4
2049.el .IP "Method for operation \f(CW%s\fR not found in package \f(CW%s\fR during blessing" 4
2050.IX Item "Method for operation %s not found in package %s during blessing"
2051(F) An attempt was made to specify an entry in an overloading table that
2052doesn't resolve to a valid subroutine. See overload.
2053.ie n .IP "Method %s not permitted" 4
2054.el .IP "Method \f(CW%s\fR not permitted" 4
2055.IX Item "Method %s not permitted"
2056See Server error.
2057.ie n .IP "Might be a runaway multi-line %s\fR string starting on line \f(CW%d" 4
2058.el .IP "Might be a runaway multi-line \f(CW%s\fR string starting on line \f(CW%d\fR" 4
2059.IX Item "Might be a runaway multi-line %s string starting on line %d"
2060(S) An advisory indicating that the previous error may have been caused
2061by a missing delimiter on a string or pattern, because it eventually
2062ended earlier on the current line.
2063.IP "Misplaced _ in number" 4
2064.IX Item "Misplaced _ in number"
2065(W syntax) An underscore (underbar) in a numeric constant did not
2066separate two digits.
2067.ie n .IP "Missing %sbrace%s on \eN{}" 4
2068.el .IP "Missing \f(CW%sbrace\fR%s on \eN{}" 4
2069.IX Item "Missing %sbrace%s on N{}"
2070(F) Wrong syntax of character name literal \f(CW\*(C`\eN{charname}\*(C'\fR within
2071double-quotish context.
2072.ie n .IP "Missing comma after first argument to %s function" 4
2073.el .IP "Missing comma after first argument to \f(CW%s\fR function" 4
2074.IX Item "Missing comma after first argument to %s function"
2075(F) While certain functions allow you to specify a filehandle or an
2076\&\*(L"indirect object\*(R" before the argument list, this ain't one of them.
2077.IP "Missing command in piped open" 4
2078.IX Item "Missing command in piped open"
2079(W pipe) You used the \f(CW\*(C`open(FH, "| command")\*(C'\fR or
2080\&\f(CW\*(C`open(FH, "command |")\*(C'\fR construction, but the command was missing or
2081blank.
2082.ie n .IP "Missing name in ""my sub""" 4
2083.el .IP "Missing name in ``my sub''" 4
2084.IX Item "Missing name in my sub"
2085(F) The reserved syntax for lexically scoped subroutines requires that
2086they have a name with which they can be found.
2087.IP "Missing $ on loop variable" 4
2088.IX Item "Missing $ on loop variable"
2089(F) Apparently you've been programming in \fBcsh\fR too much. Variables
2090are always mentioned with the $ in Perl, unlike in the shells, where it
2091can vary from one line to the next.
2092.ie n .IP "(Missing operator before %s?)" 4
2093.el .IP "(Missing operator before \f(CW%s\fR?)" 4
2094.IX Item "(Missing operator before %s?)"
2095(S) This is an educated guess made in conjunction with the message \*(L"%s
2096found where operator expected\*(R". Often the missing operator is a comma.
2097.ie n .IP "Missing right brace on %s" 4
2098.el .IP "Missing right brace on \f(CW%s\fR" 4
2099.IX Item "Missing right brace on %s"
2100(F) Missing right brace in \f(CW\*(C`\ep{...}\*(C'\fR or \f(CW\*(C`\eP{...}\*(C'\fR.
2101.IP "Missing right curly or square bracket" 4
2102.IX Item "Missing right curly or square bracket"
2103(F) The lexer counted more opening curly or square brackets than closing
2104ones. As a general rule, you'll find it's missing near the place you
2105were last editing.
2106.IP "(Missing semicolon on previous line?)" 4
2107.IX Item "(Missing semicolon on previous line?)"
2108(S) This is an educated guess made in conjunction with the message \*(L"%s
2109found where operator expected\*(R". Don't automatically put a semicolon on
2110the previous line just because you saw this message.
2111.IP "Modification of a read-only value attempted" 4
2112.IX Item "Modification of a read-only value attempted"
2113(F) You tried, directly or indirectly, to change the value of a
2114constant. You didn't, of course, try \*(L"2 = 1\*(R", because the compiler
2115catches that. But an easy way to do the same thing is:
2116.Sp
2117.Vb 2
2118\& sub mod { $_[0] = 1 }
2119\& mod(2);
2120.Ve
2121.Sp
2122Another way is to assign to a \fIsubstr()\fR that's off the end of the string.
2123.Sp
2124Yet another way is to assign to a \f(CW\*(C`foreach\*(C'\fR loop \fI\s-1VAR\s0\fR when \fI\s-1VAR\s0\fR
2125is aliased to a constant in the look \fI\s-1LIST\s0\fR:
2126.Sp
2127.Vb 4
2128\& $x = 1;
2129\& foreach my $n ($x, 2) {
2130\& $n *= 2; # modifies the $x, but fails on attempt to modify the 2
2131\& }
2132.Ve
2133.ie n .IP "Modification of non-creatable array value attempted, %s" 4
2134.el .IP "Modification of non-creatable array value attempted, \f(CW%s\fR" 4
2135.IX Item "Modification of non-creatable array value attempted, %s"
2136(F) You tried to make an array value spring into existence, and the
2137subscript was probably negative, even counting from end of the array
2138backwards.
2139.ie n .IP "Modification of non-creatable hash value attempted, %s" 4
2140.el .IP "Modification of non-creatable hash value attempted, \f(CW%s\fR" 4
2141.IX Item "Modification of non-creatable hash value attempted, %s"
2142(P) You tried to make a hash value spring into existence, and it
2143couldn't be created for some peculiar reason.
2144.IP "Module name must be constant" 4
2145.IX Item "Module name must be constant"
2146(F) Only a bare module name is allowed as the first argument to a \*(L"use\*(R".
2147.IP "Module name required with \-%c option" 4
2148.IX Item "Module name required with -%c option"
2149(F) The \f(CW\*(C`\-M\*(C'\fR or \f(CW\*(C`\-m\*(C'\fR options say that Perl should load some module, but
2150you omitted the name of the module. Consult perlrun for full details
2151about \f(CW\*(C`\-M\*(C'\fR and \f(CW\*(C`\-m\*(C'\fR.
2152.IP "More than one argument to open" 4
2153.IX Item "More than one argument to open"
2154(F) The \f(CW\*(C`open\*(C'\fR function has been asked to open multiple files. This
2155can happen if you are trying to open a pipe to a command that takes a
2156list of arguments, but have forgotten to specify a piped open mode.
2157See \*(L"open\*(R" in perlfunc for details.
2158.IP "msg%s not implemented" 4
2159.IX Item "msg%s not implemented"
2160(F) You don't have System V message \s-1IPC\s0 on your system.
2161.ie n .IP "Multidimensional syntax %s not supported" 4
2162.el .IP "Multidimensional syntax \f(CW%s\fR not supported" 4
2163.IX Item "Multidimensional syntax %s not supported"
2164(W syntax) Multidimensional arrays aren't written like \f(CW$foo[1,2,3]\fR.
2165They're written like \f(CW$foo[1][2][3]\fR, as in C.
2166.IP "/ must be followed by a*, A* or Z*" 4
2167.IX Item "/ must be followed by a*, A* or Z*"
2168(F) You had a pack template indicating a counted-length string,
2169Currently the only things that can have their length counted are a*, A*
2170or Z*. See \*(L"pack\*(R" in perlfunc.
2171.IP "/ must be followed by a, A or Z" 4
2172.IX Item "/ must be followed by a, A or Z"
2173(F) You had an unpack template indicating a counted-length string, which
2174must be followed by one of the letters a, A or Z to indicate what sort
2175of string is to be unpacked. See \*(L"pack\*(R" in perlfunc.
2176.IP "/ must follow a numeric type" 4
2177.IX Item "/ must follow a numeric type"
2178(F) You had an unpack template that contained a '#', but this did not
2179follow some numeric unpack specification. See \*(L"pack\*(R" in perlfunc.
2180.ie n .IP """my sub"" not yet implemented" 4
2181.el .IP "``my sub'' not yet implemented" 4
2182.IX Item "my sub not yet implemented"
2183(F) Lexically scoped subroutines are not yet implemented. Don't try
2184that yet.
2185.ie n .IP """my"" variable %s can't be in a package" 4
2186.el .IP "``my'' variable \f(CW%s\fR can't be in a package" 4
2187.IX Item "my variable %s can't be in a package"
2188(F) Lexically scoped variables aren't in a package, so it doesn't make
2189sense to try to declare one with a package qualifier on the front. Use
2190\&\fIlocal()\fR if you want to localize a package variable.
2191.ie n .IP "Name ""%s::%s"" used only once: possible typo" 4
2192.el .IP "Name ``%s::%s'' used only once: possible typo" 4
2193.IX Item "Name %s::%s used only once: possible typo"
2194(W once) Typographical errors often show up as unique variable names.
2195If you had a good reason for having a unique name, then just mention it
2196again somehow to suppress the message. The \f(CW\*(C`our\*(C'\fR declaration is
2197provided for this purpose.
2198.IP "Negative length" 4
2199.IX Item "Negative length"
2200(F) You tried to do a read/write/send/recv operation with a buffer
2201length that is less than 0. This is difficult to imagine.
2202.IP "Negative offset to vec in lvalue context" 4
2203.IX Item "Negative offset to vec in lvalue context"
2204(F) When \f(CW\*(C`vec\*(C'\fR is called in an lvalue context, the second argument must be
2205greater than or equal to zero.
2206.IP "Nested quantifiers in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
2207.IX Item "Nested quantifiers in regex; marked by <-- HERE in m/%s/"
2208(F) You can't quantify a quantifier without intervening parentheses. So
2209things like ** or +* or ?* are illegal. The <\-\- \s-1HERE\s0 shows in the regular
2210expression about where the problem was discovered.
2211.Sp
2212Note that the minimal matching quantifiers, \f(CW\*(C`*?\*(C'\fR, \f(CW\*(C`+?\*(C'\fR, and
2213\&\f(CW\*(C`??\*(C'\fR appear to be nested quantifiers, but aren't. See perlre.
2214.IP "%s never introduced" 4
2215.IX Item "%s never introduced"
2216(S internal) The symbol in question was declared but somehow went out of
2217scope before it could possibly have been used.
2218.ie n .IP "No %s allowed while running setuid" 4
2219.el .IP "No \f(CW%s\fR allowed while running setuid" 4
2220.IX Item "No %s allowed while running setuid"
2221(F) Certain operations are deemed to be too insecure for a setuid or
2222setgid script to even be allowed to attempt. Generally speaking there
2223will be another way to do what you want that is, if not secure, at least
2224securable. See perlsec.
2225.IP "No \fB\-e\fR allowed in setuid scripts" 4
2226.IX Item "No -e allowed in setuid scripts"
2227(F) A setuid script can't be specified by the user.
2228.ie n .IP "No comma allowed after %s" 4
2229.el .IP "No comma allowed after \f(CW%s\fR" 4
2230.IX Item "No comma allowed after %s"
2231(F) A list operator that has a filehandle or \*(L"indirect object\*(R" is not
2232allowed to have a comma between that and the following arguments.
2233Otherwise it'd be just another one of the arguments.
2234.Sp
2235One possible cause for this is that you expected to have imported a
2236constant to your name space with \fBuse\fR or \fBimport\fR while no such
2237importing took place, it may for example be that your operating system
2238does not support that particular constant. Hopefully you did use an
2239explicit import list for the constants you expect to see, please see
2240\&\*(L"use\*(R" in perlfunc and \*(L"import\*(R" in perlfunc. While an explicit import list
2241would probably have caught this error earlier it naturally does not
2242remedy the fact that your operating system still does not support that
2243constant. Maybe you have a typo in the constants of the symbol import
2244list of \fBuse\fR or \fBimport\fR or in the constant name at the line where
2245this error was triggered?
2246.IP "No command into which to pipe on command line" 4
2247.IX Item "No command into which to pipe on command line"
2248(F) An error peculiar to \s-1VMS\s0. Perl handles its own command line
2249redirection, and found a '|' at the end of the command line, so it
2250doesn't know where you want to pipe the output from this command.
2251.IP "No \s-1DB::DB\s0 routine defined" 4
2252.IX Item "No DB::DB routine defined"
2253(F) The currently executing code was compiled with the \fB\-d\fR switch, but
2254for some reason the perl5db.pl file (or some facsimile thereof) didn't
2255define a routine to be called at the beginning of each statement. Which
2256is odd, because the file should have been required automatically, and
2257should have blown up the require if it didn't parse right.
2258.IP "No dbm on this machine" 4
2259.IX Item "No dbm on this machine"
2260(P) This is counted as an internal error, because every machine should
2261supply dbm nowadays, because Perl comes with \s-1SDBM\s0. See SDBM_File.
2262.IP "No DBsub routine" 4
2263.IX Item "No DBsub routine"
2264(F) The currently executing code was compiled with the \fB\-d\fR switch,
2265but for some reason the perl5db.pl file (or some facsimile thereof)
2266didn't define a DB::sub routine to be called at the beginning of each
2267ordinary subroutine call.
2268.IP "No error file after 2> or 2>> on command line" 4
2269.IX Item "No error file after 2> or 2>> on command line"
2270(F) An error peculiar to \s-1VMS\s0. Perl handles its own command line
2271redirection, and found a '2>' or a '2>>' on the command line, but can't
2272find the name of the file to which to write data destined for stderr.
2273.IP "No input file after < on command line" 4
2274.IX Item "No input file after < on command line"
2275(F) An error peculiar to \s-1VMS\s0. Perl handles its own command line
2276redirection, and found a '<' on the command line, but can't find the
2277name of the file from which to read data for stdin.
2278.IP "No #! line" 4
2279.IX Item "No #! line"
2280(F) The setuid emulator requires that scripts have a well-formed #! line
2281even on machines that don't support the #! construct.
2282.ie n .IP """no"" not allowed in expression" 4
2283.el .IP "``no'' not allowed in expression" 4
2284.IX Item "no not allowed in expression"
2285(F) The \*(L"no\*(R" keyword is recognized and executed at compile time, and
2286returns no useful value. See perlmod.
2287.IP "No output file after > on command line" 4
2288.IX Item "No output file after > on command line"
2289(F) An error peculiar to \s-1VMS\s0. Perl handles its own command line
2290redirection, and found a lone '>' at the end of the command line, so it
2291doesn't know where you wanted to redirect stdout.
2292.IP "No output file after > or >> on command line" 4
2293.IX Item "No output file after > or >> on command line"
2294(F) An error peculiar to \s-1VMS\s0. Perl handles its own command line
2295redirection, and found a '>' or a '>>' on the command line, but can't
2296find the name of the file to which to write data destined for stdout.
2297.ie n .IP "No package name allowed for variable %s in ""our""" 4
2298.el .IP "No package name allowed for variable \f(CW%s\fR in ``our''" 4
2299.IX Item "No package name allowed for variable %s in our"
2300(F) Fully qualified variable names are not allowed in \*(L"our\*(R"
2301declarations, because that doesn't make much sense under existing
2302semantics. Such syntax is reserved for future extensions.
2303.IP "No Perl script found in input" 4
2304.IX Item "No Perl script found in input"
2305(F) You called \f(CW\*(C`perl \-x\*(C'\fR, but no line was found in the file beginning
2306with #! and containing the word \*(L"perl\*(R".
2307.IP "No setregid available" 4
2308.IX Item "No setregid available"
2309(F) Configure didn't find anything resembling the \fIsetregid()\fR call for
2310your system.
2311.IP "No setreuid available" 4
2312.IX Item "No setreuid available"
2313(F) Configure didn't find anything resembling the \fIsetreuid()\fR call for
2314your system.
2315.IP "No space allowed after \-%c" 4
2316.IX Item "No space allowed after -%c"
2317(F) The argument to the indicated command line switch must follow
2318immediately after the switch, without intervening spaces.
2319.ie n .IP "No %s specified for \-%c" 4
2320.el .IP "No \f(CW%s\fR specified for \-%c" 4
2321.IX Item "No %s specified for -%c"
2322(F) The indicated command line switch needs a mandatory argument, but
2323you haven't specified one.
2324.ie n .IP "No such class %s" 4
2325.el .IP "No such class \f(CW%s\fR" 4
2326.IX Item "No such class %s"
2327(F) You provided a class qualifier in a \*(L"my\*(R" or \*(L"our\*(R" declaration, but
2328this class doesn't exist at this point in your program.
2329.IP "No such pipe open" 4
2330.IX Item "No such pipe open"
2331(P) An error peculiar to \s-1VMS\s0. The internal routine \fImy_pclose()\fR tried to
2332close a pipe which hadn't been opened. This should have been caught
2333earlier as an attempt to close an unopened filehandle.
2334.ie n .IP "No such pseudo-hash field ""%s""" 4
2335.el .IP "No such pseudo-hash field ``%s''" 4
2336.IX Item "No such pseudo-hash field %s"
2337(F) You tried to access an array as a hash, but the field name used is
2338not defined. The hash at index 0 should map all valid field names to
2339array indices for that to work.
2340.ie n .IP "No such pseudo-hash field ""%s"" in variable %s\fR of type \f(CW%s" 4
2341.el .IP "No such pseudo-hash field ``%s'' in variable \f(CW%s\fR of type \f(CW%s\fR" 4
2342.IX Item "No such pseudo-hash field %s in variable %s of type %s"
2343(F) You tried to access a field of a typed variable where the type does
2344not know about the field name. The field names are looked up in the
2345\&\f(CW%FIELDS\fR hash in the type package at compile time. The \f(CW%FIELDS\fR hash is
2346\&\f(CW%usually\fR set up with the 'fields' pragma.
2347.IP "No such signal: SIG%s" 4
2348.IX Item "No such signal: SIG%s"
2349(W signal) You specified a signal name as a subscript to \f(CW%SIG\fR that was
2350not recognized. Say \f(CW\*(C`kill \-l\*(C'\fR in your shell to see the valid signal
2351names on your system.
2352.IP "Not a \s-1CODE\s0 reference" 4
2353.IX Item "Not a CODE reference"
2354(F) Perl was trying to evaluate a reference to a code value (that is, a
2355subroutine), but found a reference to something else instead. You can
2356use the \fIref()\fR function to find out what kind of ref it really was. See
2357also perlref.
2358.IP "Not a format reference" 4
2359.IX Item "Not a format reference"
2360(F) I'm not sure how you managed to generate a reference to an anonymous
2361format, but this indicates you did, and that it didn't exist.
2362.IP "Not a \s-1GLOB\s0 reference" 4
2363.IX Item "Not a GLOB reference"
2364(F) Perl was trying to evaluate a reference to a \*(L"typeglob\*(R" (that is, a
2365symbol table entry that looks like \f(CW*foo\fR), but found a reference to
2366something else instead. You can use the \fIref()\fR function to find out what
2367kind of ref it really was. See perlref.
2368.IP "Not a \s-1HASH\s0 reference" 4
2369.IX Item "Not a HASH reference"
2370(F) Perl was trying to evaluate a reference to a hash value, but found a
2371reference to something else instead. You can use the \fIref()\fR function to
2372find out what kind of ref it really was. See perlref.
2373.IP "Not an \s-1ARRAY\s0 reference" 4
2374.IX Item "Not an ARRAY reference"
2375(F) Perl was trying to evaluate a reference to an array value, but found
2376a reference to something else instead. You can use the \fIref()\fR function
2377to find out what kind of ref it really was. See perlref.
2378.IP "Not a perl script" 4
2379.IX Item "Not a perl script"
2380(F) The setuid emulator requires that scripts have a well-formed #! line
2381even on machines that don't support the #! construct. The line must
2382mention perl.
2383.IP "Not a \s-1SCALAR\s0 reference" 4
2384.IX Item "Not a SCALAR reference"
2385(F) Perl was trying to evaluate a reference to a scalar value, but found
2386a reference to something else instead. You can use the \fIref()\fR function
2387to find out what kind of ref it really was. See perlref.
2388.IP "Not a subroutine reference" 4
2389.IX Item "Not a subroutine reference"
2390(F) Perl was trying to evaluate a reference to a code value (that is, a
2391subroutine), but found a reference to something else instead. You can
2392use the \fIref()\fR function to find out what kind of ref it really was. See
2393also perlref.
2394.IP "Not a subroutine reference in overload table" 4
2395.IX Item "Not a subroutine reference in overload table"
2396(F) An attempt was made to specify an entry in an overloading table that
2397doesn't somehow point to a valid subroutine. See overload.
2398.ie n .IP "Not enough arguments for %s" 4
2399.el .IP "Not enough arguments for \f(CW%s\fR" 4
2400.IX Item "Not enough arguments for %s"
2401(F) The function requires more arguments than you specified.
2402.IP "Not enough format arguments" 4
2403.IX Item "Not enough format arguments"
2404(W syntax) A format specified more picture fields than the next line
2405supplied. See perlform.
2406.IP "%s: not found" 4
2407.IX Item "%s: not found"
2408(A) You've accidentally run your script through the Bourne shell instead
2409of Perl. Check the #! line, or manually feed your script into Perl
2410yourself.
2411.IP "%s not allowed in length fields" 4
2412.IX Item "%s not allowed in length fields"
2413(F) The count in the (un)pack template may be replaced by \f(CW\*(C`[TEMPLATE]\*(C'\fR only if
2414\&\f(CW\*(C`TEMPLATE\*(C'\fR always matches the same amount of packed bytes. Redesign
2415the template.
2416.IP "no \s-1UTC\s0 offset information; assuming local time is \s-1UTC\s0" 4
2417.IX Item "no UTC offset information; assuming local time is UTC"
2418(S) A warning peculiar to \s-1VMS\s0. Perl was unable to find the local
2419timezone offset, so it's assuming that local system time is equivalent
2420to \s-1UTC\s0. If it's not, define the logical name
2421\&\fI\s-1SYS$TIMEZONE_DIFFERENTIAL\s0\fR to translate to the number of seconds which
2422need to be added to \s-1UTC\s0 to get local time.
2423.IP "Null filename used" 4
2424.IX Item "Null filename used"
2425(F) You can't require the null filename, especially because on many
2426machines that means the current directory! See \*(L"require\*(R" in perlfunc.
2427.IP "\s-1NULL\s0 \s-1OP\s0 \s-1IN\s0 \s-1RUN\s0" 4
2428.IX Item "NULL OP IN RUN"
2429(P debugging) Some internal routine called \fIrun()\fR with a null opcode
2430pointer.
2431.IP "Null picture in formline" 4
2432.IX Item "Null picture in formline"
2433(F) The first argument to formline must be a valid format picture
2434specification. It was found to be empty, which probably means you
2435supplied it an uninitialized value. See perlform.
2436.IP "Null realloc" 4
2437.IX Item "Null realloc"
2438(P) An attempt was made to realloc \s-1NULL\s0.
2439.IP "\s-1NULL\s0 regexp argument" 4
2440.IX Item "NULL regexp argument"
2441(P) The internal pattern matching routines blew it big time.
2442.IP "\s-1NULL\s0 regexp parameter" 4
2443.IX Item "NULL regexp parameter"
2444(P) The internal pattern matching routines are out of their gourd.
2445.IP "Number too long" 4
2446.IX Item "Number too long"
2447(F) Perl limits the representation of decimal numbers in programs to
2448about 250 characters. You've exceeded that length. Future
2449versions of Perl are likely to eliminate this arbitrary limitation. In
2450the meantime, try using scientific notation (e.g. \*(L"1e6\*(R" instead of
2451\&\*(L"1_000_000\*(R").
2452.IP "Octal number in vector unsupported" 4
2453.IX Item "Octal number in vector unsupported"
2454(F) Numbers with a leading \f(CW0\fR are not currently allowed in vectors.
2455The octal number interpretation of such numbers may be supported in a
2456future version.
2457.IP "Octal number > 037777777777 non-portable" 4
2458.IX Item "Octal number > 037777777777 non-portable"
2459(W portable) The octal number you specified is larger than 2**32\-1
2460(4294967295) and therefore non-portable between systems. See
2461perlport for more on portability concerns.
2462.Sp
2463See also perlport for writing portable code.
2464.IP "Odd number of arguments for overload::constant" 4
2465.IX Item "Odd number of arguments for overload::constant"
2466(W overload) The call to overload::constant contained an odd number of
2467arguments. The arguments should come in pairs.
2468.IP "Odd number of elements in anonymous hash" 4
2469.IX Item "Odd number of elements in anonymous hash"
2470(W misc) You specified an odd number of elements to initialize a hash,
2471which is odd, because hashes come in key/value pairs.
2472.IP "Odd number of elements in hash assignment" 4
2473.IX Item "Odd number of elements in hash assignment"
2474(W misc) You specified an odd number of elements to initialize a hash,
2475which is odd, because hashes come in key/value pairs.
2476.IP "Offset outside string" 4
2477.IX Item "Offset outside string"
2478(F) You tried to do a read/write/send/recv operation with an offset
2479pointing outside the buffer. This is difficult to imagine. The sole
2480exception to this is that \f(CW\*(C`sysread()\*(C'\fRing past the buffer will extend
2481the buffer and zero pad the new area.
2482.ie n .IP "\-%s on unopened filehandle %s" 4
2483.el .IP "\-%s on unopened filehandle \f(CW%s\fR" 4
2484.IX Item "-%s on unopened filehandle %s"
2485(W unopened) You tried to invoke a file test operator on a filehandle
2486that isn't open. Check your control flow. See also \*(L"\-X\*(R" in perlfunc.
2487.ie n .IP "%s() on unopened %s" 4
2488.el .IP "%s() on unopened \f(CW%s\fR" 4
2489.IX Item "%s() on unopened %s"
2490(W unopened) An I/O operation was attempted on a filehandle that was
2491never initialized. You need to do an \fIopen()\fR, a \fIsysopen()\fR, or a \fIsocket()\fR
2492call, or call a constructor from the FileHandle package.
2493.IP "oops: oopsAV" 4
2494.IX Item "oops: oopsAV"
2495(S internal) An internal warning that the grammar is screwed up.
2496.IP "oops: oopsHV" 4
2497.IX Item "oops: oopsHV"
2498(S internal) An internal warning that the grammar is screwed up.
2499.ie n .IP "Operation `%s': no method found, %s" 4
2500.el .IP "Operation `%s': no method found, \f(CW%s\fR" 4
2501.IX Item "Operation `%s': no method found, %s"
2502(F) An attempt was made to perform an overloaded operation for which no
2503handler was defined. While some handlers can be autogenerated in terms
2504of other handlers, there is no default handler for any operation, unless
2505\&\f(CW\*(C`fallback\*(C'\fR overloading key is specified to be true. See overload.
2506.ie n .IP "Operator or semicolon missing before %s" 4
2507.el .IP "Operator or semicolon missing before \f(CW%s\fR" 4
2508.IX Item "Operator or semicolon missing before %s"
2509(S ambiguous) You used a variable or subroutine call where the parser
2510was expecting an operator. The parser has assumed you really meant to
2511use an operator, but this is highly likely to be incorrect. For
2512example, if you say \*(L"*foo *foo\*(R" it will be interpreted as if you said
2513\&\*(L"*foo * 'foo'\*(R".
2514.ie n .IP """our"" variable %s redeclared" 4
2515.el .IP "``our'' variable \f(CW%s\fR redeclared" 4
2516.IX Item "our variable %s redeclared"
2517(W misc) You seem to have already declared the same global once before
2518in the current lexical scope.
2519.IP "Out of memory!" 4
2520.IX Item "Out of memory!"
2521(X) The \fImalloc()\fR function returned 0, indicating there was insufficient
2522remaining memory (or virtual memory) to satisfy the request. Perl has
2523no option but to exit immediately.
2524.ie n .IP "Out of memory during ""large"" request for %s" 4
2525.el .IP "Out of memory during ``large'' request for \f(CW%s\fR" 4
2526.IX Item "Out of memory during large request for %s"
2527(F) The \fImalloc()\fR function returned 0, indicating there was insufficient
2528remaining memory (or virtual memory) to satisfy the request. However,
2529the request was judged large enough (compile\-time default is 64K), so a
2530possibility to shut down by trapping this error is granted.
2531.ie n .IP "Out of memory during request for %s" 4
2532.el .IP "Out of memory during request for \f(CW%s\fR" 4
2533.IX Item "Out of memory during request for %s"
2534(X|F) The \fImalloc()\fR function returned 0, indicating there was
2535insufficient remaining memory (or virtual memory) to satisfy the
2536request.
2537.Sp
2538The request was judged to be small, so the possibility to trap it
2539depends on the way perl was compiled. By default it is not trappable.
2540However, if compiled for this, Perl may use the contents of \f(CW$^M\fR as an
2541emergency pool after \fIdie()\fRing with this message. In this case the error
2542is trappable \fIonce\fR, and the error message will include the line and file
2543where the failed request happened.
2544.IP "Out of memory during ridiculously large request" 4
2545.IX Item "Out of memory during ridiculously large request"
2546(F) You can't allocate more than 2^31+\*(L"small amount\*(R" bytes. This error
2547is most likely to be caused by a typo in the Perl program. e.g.,
2548\&\f(CW$arr[time]\fR instead of \f(CW$arr[$time]\fR.
2549.IP "Out of memory for yacc stack" 4
2550.IX Item "Out of memory for yacc stack"
2551(F) The yacc parser wanted to grow its stack so it could continue
2552parsing, but \fIrealloc()\fR wouldn't give it more memory, virtual or
2553otherwise.
2554.IP "@ outside of string" 4
2555.IX Item "@ outside of string"
2556(F) You had a pack template that specified an absolute position outside
2557the string being unpacked. See \*(L"pack\*(R" in perlfunc.
2558.ie n .IP "%s package attribute may clash with future reserved word: %s" 4
2559.el .IP "%s package attribute may clash with future reserved word: \f(CW%s\fR" 4
2560.IX Item "%s package attribute may clash with future reserved word: %s"
2561(W reserved) A lowercase attribute name was used that had a
2562package-specific handler. That name might have a meaning to Perl itself
2563some day, even though it doesn't yet. Perhaps you should use a
2564mixed-case attribute name, instead. See attributes.
2565.IP "page overflow" 4
2566.IX Item "page overflow"
2567(W io) A single call to \fIwrite()\fR produced more lines than can fit on a
2568page. See perlform.
2569.ie n .IP "panic: %s" 4
2570.el .IP "panic: \f(CW%s\fR" 4
2571.IX Item "panic: %s"
2572(P) An internal error.
2573.IP "panic: ck_grep" 4
2574.IX Item "panic: ck_grep"
2575(P) Failed an internal consistency check trying to compile a grep.
2576.IP "panic: ck_split" 4
2577.IX Item "panic: ck_split"
2578(P) Failed an internal consistency check trying to compile a split.
2579.IP "panic: corrupt saved stack index" 4
2580.IX Item "panic: corrupt saved stack index"
2581(P) The savestack was requested to restore more localized values than
2582there are in the savestack.
2583.IP "panic: del_backref" 4
2584.IX Item "panic: del_backref"
2585(P) Failed an internal consistency check while trying to reset a weak
2586reference.
2587.ie n .IP "panic: die %s" 4
2588.el .IP "panic: die \f(CW%s\fR" 4
2589.IX Item "panic: die %s"
2590(P) We popped the context stack to an eval context, and then discovered
2591it wasn't an eval context.
2592.IP "panic: pp_match%s" 4
2593.IX Item "panic: pp_match%s"
2594(P) The internal \fIpp_match()\fR routine was called with invalid operational
2595data.
2596.IP "panic: do_subst" 4
2597.IX Item "panic: do_subst"
2598(P) The internal \fIpp_subst()\fR routine was called with invalid operational
2599data.
2600.IP "panic: do_trans_%s" 4
2601.IX Item "panic: do_trans_%s"
2602(P) The internal do_trans routines were called with invalid operational
2603data.
2604.IP "panic: frexp" 4
2605.IX Item "panic: frexp"
2606(P) The library function \fIfrexp()\fR failed, making printf(\*(L"%f\*(R") impossible.
2607.IP "panic: goto" 4
2608.IX Item "panic: goto"
2609(P) We popped the context stack to a context with the specified label,
2610and then discovered it wasn't a context we know how to do a goto in.
2611.IP "panic: \s-1INTERPCASEMOD\s0" 4
2612.IX Item "panic: INTERPCASEMOD"
2613(P) The lexer got into a bad state at a case modifier.
2614.IP "panic: \s-1INTERPCONCAT\s0" 4
2615.IX Item "panic: INTERPCONCAT"
2616(P) The lexer got into a bad state parsing a string with brackets.
2617.IP "panic: kid popen errno read" 4
2618.IX Item "panic: kid popen errno read"
2619(F) forked child returned an incomprehensible message about its errno.
2620.IP "panic: last" 4
2621.IX Item "panic: last"
2622(P) We popped the context stack to a block context, and then discovered
2623it wasn't a block context.
2624.IP "panic: leave_scope clearsv" 4
2625.IX Item "panic: leave_scope clearsv"
2626(P) A writable lexical variable became read-only somehow within the
2627scope.
2628.IP "panic: leave_scope inconsistency" 4
2629.IX Item "panic: leave_scope inconsistency"
2630(P) The savestack probably got out of sync. At least, there was an
2631invalid enum on the top of it.
2632.IP "panic: magic_killbackrefs" 4
2633.IX Item "panic: magic_killbackrefs"
2634(P) Failed an internal consistency check while trying to reset all weak
2635references to an object.
2636.IP "panic: malloc" 4
2637.IX Item "panic: malloc"
2638(P) Something requested a negative number of bytes of malloc.
2639.IP "panic: mapstart" 4
2640.IX Item "panic: mapstart"
2641(P) The compiler is screwed up with respect to the \fImap()\fR function.
2642.IP "panic: null array" 4
2643.IX Item "panic: null array"
2644(P) One of the internal array routines was passed a null \s-1AV\s0 pointer.
2645.IP "panic: pad_alloc" 4
2646.IX Item "panic: pad_alloc"
2647(P) The compiler got confused about which scratch pad it was allocating
2648and freeing temporaries and lexicals from.
2649.IP "panic: pad_free curpad" 4
2650.IX Item "panic: pad_free curpad"
2651(P) The compiler got confused about which scratch pad it was allocating
2652and freeing temporaries and lexicals from.
2653.IP "panic: pad_free po" 4
2654.IX Item "panic: pad_free po"
2655(P) An invalid scratch pad offset was detected internally.
2656.IP "panic: pad_reset curpad" 4
2657.IX Item "panic: pad_reset curpad"
2658(P) The compiler got confused about which scratch pad it was allocating
2659and freeing temporaries and lexicals from.
2660.IP "panic: pad_sv po" 4
2661.IX Item "panic: pad_sv po"
2662(P) An invalid scratch pad offset was detected internally.
2663.IP "panic: pad_swipe curpad" 4
2664.IX Item "panic: pad_swipe curpad"
2665(P) The compiler got confused about which scratch pad it was allocating
2666and freeing temporaries and lexicals from.
2667.IP "panic: pad_swipe po" 4
2668.IX Item "panic: pad_swipe po"
2669(P) An invalid scratch pad offset was detected internally.
2670.IP "panic: pp_iter" 4
2671.IX Item "panic: pp_iter"
2672(P) The foreach iterator got called in a non-loop context frame.
2673.IP "panic: pp_split" 4
2674.IX Item "panic: pp_split"
2675(P) Something terrible went wrong in setting up for the split.
2676.IP "panic: realloc" 4
2677.IX Item "panic: realloc"
2678(P) Something requested a negative number of bytes of realloc.
2679.IP "panic: restartop" 4
2680.IX Item "panic: restartop"
2681(P) Some internal routine requested a goto (or something like it), and
2682didn't supply the destination.
2683.IP "panic: return" 4
2684.IX Item "panic: return"
2685(P) We popped the context stack to a subroutine or eval context, and
2686then discovered it wasn't a subroutine or eval context.
2687.IP "panic: scan_num" 4
2688.IX Item "panic: scan_num"
2689(P) \fIscan_num()\fR got called on something that wasn't a number.
2690.IP "panic: sv_insert" 4
2691.IX Item "panic: sv_insert"
2692(P) The \fIsv_insert()\fR routine was told to remove more string than there
2693was string.
2694.IP "panic: top_env" 4
2695.IX Item "panic: top_env"
2696(P) The compiler attempted to do a goto, or something weird like that.
2697.IP "panic: yylex" 4
2698.IX Item "panic: yylex"
2699(P) The lexer got into a bad state while processing a case modifier.
2700.IP "panic: utf16_to_utf8: odd bytelen" 4
2701.IX Item "panic: utf16_to_utf8: odd bytelen"
2702(P) Something tried to call utf16_to_utf8 with an odd (as opposed
2703to even) byte length.
2704.ie n .IP "Parentheses missing around ""%s"" list" 4
2705.el .IP "Parentheses missing around ``%s'' list" 4
2706.IX Item "Parentheses missing around %s list"
2707(W parenthesis) You said something like
2708.Sp
2709.Vb 1
2710\& my $foo, $bar = @_;
2711.Ve
2712.Sp
2713when you meant
2714.Sp
2715.Vb 1
2716\& my ($foo, $bar) = @_;
2717.Ve
2718.Sp
2719Remember that \*(L"my\*(R", \*(L"our\*(R", and \*(L"local\*(R" bind tighter than comma.
2720.ie n .IP "Perl %s\fR required\*(--this is only version \f(CW%s, stopped" 4
2721.el .IP "Perl \f(CW%s\fR required\*(--this is only version \f(CW%s\fR, stopped" 4
2722.IX Item "Perl %s requiredthis is only version %s, stopped"
2723(F) The module in question uses features of a version of Perl more
2724recent than the currently running version. How long has it been since
2725you upgraded, anyway? See \*(L"require\*(R" in perlfunc.
2726.IP "\s-1PERL_SH_DIR\s0 too long" 4
2727.IX Item "PERL_SH_DIR too long"
2728(F) An error peculiar to \s-1OS/2\s0. \s-1PERL_SH_DIR\s0 is the directory to find the
2729\&\f(CW\*(C`sh\*(C'\fR\-shell in. See \*(L"\s-1PERL_SH_DIR\s0\*(R" in perlos2.
2730.IP "perl: warning: Setting locale failed." 4
2731.IX Item "perl: warning: Setting locale failed."
2732(S) The whole warning message will look something like:
2733.Sp
2734.Vb 6
2735\& perl: warning: Setting locale failed.
2736\& perl: warning: Please check that your locale settings:
2737\& LC_ALL = "En_US",
2738\& LANG = (unset)
2739\& are supported and installed on your system.
2740\& perl: warning: Falling back to the standard locale ("C").
2741.Ve
2742.Sp
2743Exactly what were the failed locale settings varies. In the above the
2744settings were that the \s-1LC_ALL\s0 was \*(L"En_US\*(R" and the \s-1LANG\s0 had no value.
2745This error means that Perl detected that you and/or your operating
2746system supplier and/or system administrator have set up the so-called
2747locale system but Perl could not use those settings. This was not
2748dead serious, fortunately: there is a \*(L"default locale\*(R" called \*(L"C\*(R" that
2749Perl can and will use, the script will be run. Before you really fix
2750the problem, however, you will get the same error message each time
2751you run Perl. How to really fix the problem can be found in
2752perllocale section \fB\s-1LOCALE\s0 \s-1PROBLEMS\s0\fR.
2753.ie n .IP "perlio: argument list not closed for layer ""%s""" 4
2754.el .IP "perlio: argument list not closed for layer ``%s''" 4
2755.IX Item "perlio: argument list not closed for layer %s"
2756(W layer) When pushing a layer with arguments onto the Perl I/O system you
2757forgot the ) that closes the argument list. (Layers take care of transforming
2758data between external and internal representations.) Perl stopped parsing
2759the layer list at this point and did not attempt to push this layer.
2760If your program didn't explicitly request the failing operation, it may be
2761the result of the value of the environment variable \s-1PERLIO\s0.
2762.ie n .IP "perlio: invalid separator character %s\fR in layer specification list \f(CW%s" 4
2763.el .IP "perlio: invalid separator character \f(CW%s\fR in layer specification list \f(CW%s\fR" 4
2764.IX Item "perlio: invalid separator character %s in layer specification list %s"
2765(W layer) When pushing layers onto the Perl I/O system, something other than a
2766colon or whitespace was seen between the elements of a layer list.
2767If the previous attribute had a parenthesised parameter list, perhaps that
2768list was terminated too soon.
2769.ie n .IP "perlio: unknown layer ""%s""" 4
2770.el .IP "perlio: unknown layer ``%s''" 4
2771.IX Item "perlio: unknown layer %s"
2772(W layer) An attempt was made to push an unknown layer onto the Perl I/O
2773system. (Layers take care of transforming data between external and
2774internal representations.) Note that some layers, such as \f(CW\*(C`mmap\*(C'\fR,
2775are not supported in all environments. If your program didn't
2776explicitly request the failing operation, it may be the result of the
2777value of the environment variable \s-1PERLIO\s0.
2778.IP "Permission denied" 4
2779.IX Item "Permission denied"
2780(F) The setuid emulator in suidperl decided you were up to no good.
2781.ie n .IP "pid %x not a child" 4
2782.el .IP "pid \f(CW%x\fR not a child" 4
2783.IX Item "pid %x not a child"
2784(W exec) A warning peculiar to \s-1VMS\s0. \fIWaitpid()\fR was asked to wait for a
2785process which isn't a subprocess of the current process. While this is
2786fine from \s-1VMS\s0' perspective, it's probably not what you intended.
2787.IP "P must have an explicit size" 4
2788.IX Item "P must have an explicit size"
2789(F) The unpack format P must have an explicit size, not \*(L"*\*(R".
2790.IP "\s-1POSIX\s0 syntax [%s] belongs inside character classes in regex;" 4
2791.IX Item "POSIX syntax [%s] belongs inside character classes in regex;"
2792marked by <\-\- \s-1HERE\s0 in m/%s/
2793.Sp
2794(W regexp) The character class constructs [: :], [= =], and [. .] go
2795\&\fIinside\fR character classes, the [] are part of the construct, for example:
2796/[012[:alpha:]345]/. Note that [= =] and [. .] are not currently
2797implemented; they are simply placeholders for future extensions and will
2798cause fatal errors. The <\-\- \s-1HERE\s0 shows in the regular expression about
2799where the problem was discovered. See perlre.
2800.IP "\s-1POSIX\s0 syntax [. .] is reserved for future extensions in regex;" 4
2801.IX Item "POSIX syntax [. .] is reserved for future extensions in regex;"
2802marked by <\-\- \s-1HERE\s0 in m/%s/
2803.Sp
2804(F regexp) Within regular expression character classes ([]) the syntax
2805beginning with \*(L"[.\*(R" and ending with \*(L".]\*(R" is reserved for future extensions.
2806If you need to represent those character sequences inside a regular
2807expression character class, just quote the square brackets with the
2808backslash: \*(L"\e[.\*(R" and \*(L".\e]\*(R". The <\-\- \s-1HERE\s0 shows in the regular expression
2809about where the problem was discovered. See perlre.
2810.IP "\s-1POSIX\s0 syntax [= =] is reserved for future extensions in regex;" 4
2811.IX Item "POSIX syntax [= =] is reserved for future extensions in regex;"
2812marked by <\-\- \s-1HERE\s0 in m/%s/
2813.Sp
2814(F) Within regular expression character classes ([]) the syntax beginning
2815with \*(L"[=\*(R" and ending with \*(L"=]\*(R" is reserved for future extensions. If you
2816need to represent those character sequences inside a regular expression
2817character class, just quote the square brackets with the backslash: \*(L"\e[=\*(R"
2818and \*(L"=\e]\*(R". The <\-\- \s-1HERE\s0 shows in the regular expression about where the
2819problem was discovered. See perlre.
2820.IP "\s-1POSIX\s0 class [:%s:] unknown in regex;" 4
2821.IX Item "POSIX class [:%s:] unknown in regex;"
2822marked by <\-\- \s-1HERE\s0 in m/%s/
2823.Sp
2824(F) The class in the character class [: :] syntax is unknown. The <\-\- \s-1HERE\s0
2825shows in the regular expression about where the problem was discovered.
2826Note that the \s-1POSIX\s0 character classes do \fBnot\fR have the \f(CW\*(C`is\*(C'\fR prefix
2827the corresponding C interfaces have: in other words, it's \f(CW\*(C`[[:print:]]\*(C'\fR,
2828not \f(CW\*(C`isprint\*(C'\fR. See perlre.
2829.IP "\s-1POSIX\s0 getpgrp can't take an argument" 4
2830.IX Item "POSIX getpgrp can't take an argument"
2831(F) Your system has \s-1POSIX\s0 \fIgetpgrp()\fR, which takes no argument, unlike
2832the \s-1BSD\s0 version, which takes a pid.
2833.IP "Possible attempt to put comments in \fIqw()\fR list" 4
2834.IX Item "Possible attempt to put comments in qw() list"
2835(W qw) \fIqw()\fR lists contain items separated by whitespace; as with literal
2836strings, comment characters are not ignored, but are instead treated as
2837literal data. (You may have used different delimiters than the
2838parentheses shown here; braces are also frequently used.)
2839.Sp
2840You probably wrote something like this:
2841.Sp
2842.Vb 4
2843\& @list = qw(
2844\& a # a comment
2845\& b # another comment
2846\& );
2847.Ve
2848.Sp
2849when you should have written this:
2850.Sp
2851.Vb 4
2852\& @list = qw(
2853\& a
2854\& b
2855\& );
2856.Ve
2857.Sp
2858If you really want comments, build your list the
2859old-fashioned way, with quotes and commas:
2860.Sp
2861.Vb 4
2862\& @list = (
2863\& 'a', # a comment
2864\& 'b', # another comment
2865\& );
2866.Ve
2867.IP "Possible attempt to separate words with commas" 4
2868.IX Item "Possible attempt to separate words with commas"
2869(W qw) \fIqw()\fR lists contain items separated by whitespace; therefore
2870commas aren't needed to separate the items. (You may have used
2871different delimiters than the parentheses shown here; braces are also
2872frequently used.)
2873.Sp
2874You probably wrote something like this:
2875.Sp
2876.Vb 1
2877\& qw! a, b, c !;
2878.Ve
2879.Sp
2880which puts literal commas into some of the list items. Write it without
2881commas if you don't want them to appear in your data:
2882.Sp
2883.Vb 1
2884\& qw! a b c !;
2885.Ve
2886.ie n .IP "Possible memory corruption: %s overflowed 3rd argument" 4
2887.el .IP "Possible memory corruption: \f(CW%s\fR overflowed 3rd argument" 4
2888.IX Item "Possible memory corruption: %s overflowed 3rd argument"
2889(F) An \fIioctl()\fR or \fIfcntl()\fR returned more than Perl was bargaining for.
2890Perl guesses a reasonable buffer size, but puts a sentinel byte at the
2891end of the buffer just in case. This sentinel byte got clobbered, and
2892Perl assumes that memory is now corrupted. See \*(L"ioctl\*(R" in perlfunc.
2893.ie n .IP "Possible unintended interpolation of %s in string" 4
2894.el .IP "Possible unintended interpolation of \f(CW%s\fR in string" 4
2895.IX Item "Possible unintended interpolation of %s in string"
2896(W ambiguous) You said something like `@foo' in a double-quoted string
2897but there was no array \f(CW@foo\fR in scope at the time. If you wanted a
2898literal \f(CW@foo\fR, then write it as \e@foo; otherwise find out what happened
2899to the array you apparently lost track of.
2900.ie n .IP "Possible Y2K bug: %s" 4
2901.el .IP "Possible Y2K bug: \f(CW%s\fR" 4
2902.IX Item "Possible Y2K bug: %s"
2903(W y2k) You are concatenating the number 19 with another number, which
2904could be a potential Year 2000 problem.
2905.ie n .IP "pragma ""attrs"" is deprecated, use ""sub \s-1NAME\s0 : \s-1ATTRS\s0"" instead" 4
2906.el .IP "pragma ``attrs'' is deprecated, use ``sub \s-1NAME\s0 : \s-1ATTRS\s0'' instead" 4
2907.IX Item "pragma attrs is deprecated, use sub NAME : ATTRS instead"
2908(D deprecated) You have written something like this:
2909.Sp
2910.Vb 4
2911\& sub doit
2912\& {
2913\& use attrs qw(locked);
2914\& }
2915.Ve
2916.Sp
2917You should use the new declaration syntax instead.
2918.Sp
2919.Vb 3
2920\& sub doit : locked
2921\& {
2922\& ...
2923.Ve
2924.Sp
2925The \f(CW\*(C`use attrs\*(C'\fR pragma is now obsolete, and is only provided for
2926backward\-compatibility. See \*(L"Subroutine Attributes\*(R" in perlsub.
2927.ie n .IP "Precedence problem: open %s should be open(%s)" 4
2928.el .IP "Precedence problem: open \f(CW%s\fR should be open(%s)" 4
2929.IX Item "Precedence problem: open %s should be open(%s)"
2930(S precedence) The old irregular construct
2931.Sp
2932.Vb 1
2933\& open FOO || die;
2934.Ve
2935.Sp
2936is now misinterpreted as
2937.Sp
2938.Vb 1
2939\& open(FOO || die);
2940.Ve
2941.Sp
2942because of the strict regularization of Perl 5's grammar into unary and
2943list operators. (The old open was a little of both.) You must put
2944parentheses around the filehandle, or use the new \*(L"or\*(R" operator instead
2945of \*(L"||\*(R".
2946.IP "Premature end of script headers" 4
2947.IX Item "Premature end of script headers"
2948See Server error.
2949.ie n .IP "\fIprintf()\fR on closed filehandle %s" 4
2950.el .IP "\fIprintf()\fR on closed filehandle \f(CW%s\fR" 4
2951.IX Item "printf() on closed filehandle %s"
2952(W closed) The filehandle you're writing to got itself closed sometime
2953before now. Check your control flow.
2954.ie n .IP "\fIprint()\fR on closed filehandle %s" 4
2955.el .IP "\fIprint()\fR on closed filehandle \f(CW%s\fR" 4
2956.IX Item "print() on closed filehandle %s"
2957(W closed) The filehandle you're printing on got itself closed sometime
2958before now. Check your control flow.
2959.IP "Process terminated by SIG%s" 4
2960.IX Item "Process terminated by SIG%s"
2961(W) This is a standard message issued by \s-1OS/2\s0 applications, while *nix
2962applications die in silence. It is considered a feature of the \s-1OS/2\s0
2963port. One can easily disable this by appropriate sighandlers, see
2964\&\*(L"Signals\*(R" in perlipc. See also \*(L"Process terminated by \s-1SIGTERM/SIGINT\s0\*(R"
2965in perlos2.
2966.ie n .IP "Prototype mismatch: %s\fR vs \f(CW%s" 4
2967.el .IP "Prototype mismatch: \f(CW%s\fR vs \f(CW%s\fR" 4
2968.IX Item "Prototype mismatch: %s vs %s"
2969(S prototype) The subroutine being declared or defined had previously been
2970declared or defined with a different function prototype.
2971.IP "Prototype not terminated" 4
2972.IX Item "Prototype not terminated"
2973(F) You've omitted the closing parenthesis in a function prototype
2974definition.
2975.ie n .IP "Quantifier in {,} bigger than %d in regex;" 4
2976.el .IP "Quantifier in {,} bigger than \f(CW%d\fR in regex;" 4
2977.IX Item "Quantifier in {,} bigger than %d in regex;"
2978marked by <\-\- \s-1HERE\s0 in m/%s/
2979.Sp
2980(F) There is currently a limit to the size of the min and max values of the
2981{min,max} construct. The <\-\- \s-1HERE\s0 shows in the regular expression about where
2982the problem was discovered. See perlre.
2983.IP "Quantifier unexpected on zero-length expression;" 4
2984.IX Item "Quantifier unexpected on zero-length expression;"
2985marked by <\-\- \s-1HERE\s0 in m/%s/
2986.Sp
2987(W regexp) You applied a regular expression quantifier in a place where
2988it makes no sense, such as on a zero-width assertion. Try putting the
2989quantifier inside the assertion instead. For example, the way to match
2990\&\*(L"abc\*(R" provided that it is followed by three repetitions of \*(L"xyz\*(R" is
2991\&\f(CW\*(C`/abc(?=(?:xyz){3})/\*(C'\fR, not \f(CW\*(C`/abc(?=xyz){3}/\*(C'\fR.
2992.Sp
2993The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
2994discovered.
2995.IP "Range iterator outside integer range" 4
2996.IX Item "Range iterator outside integer range"
2997(F) One (or both) of the numeric arguments to the range operator \*(L"..\*(R"
2998are outside the range which can be represented by integers internally.
2999One possible workaround is to force Perl to use magical string increment
3000by prepending \*(L"0\*(R" to your numbers.
3001.ie n .IP "\fIreadline()\fR on closed filehandle %s" 4
3002.el .IP "\fIreadline()\fR on closed filehandle \f(CW%s\fR" 4
3003.IX Item "readline() on closed filehandle %s"
3004(W closed) The filehandle you're reading from got itself closed sometime
3005before now. Check your control flow.
3006.ie n .IP "Reallocation too large: %lx" 4
3007.el .IP "Reallocation too large: \f(CW%lx\fR" 4
3008.IX Item "Reallocation too large: %lx"
3009(F) You can't allocate more than 64K on an MS-DOS machine.
3010.IP "\fIrealloc()\fR of freed memory ignored" 4
3011.IX Item "realloc() of freed memory ignored"
3012(S malloc) An internal routine called \fIrealloc()\fR on something that had
3013already been freed.
3014.IP "Recompile perl with \fB\-D\fR\s-1DEBUGGING\s0 to use \fB\-D\fR switch" 4
3015.IX Item "Recompile perl with -DDEBUGGING to use -D switch"
3016(F debugging) You can't use the \fB\-D\fR option unless the code to produce
3017the desired output is compiled into Perl, which entails some overhead,
3018which is why it's currently left out of your copy.
3019.IP "Recursive inheritance detected in package '%s'" 4
3020.IX Item "Recursive inheritance detected in package '%s'"
3021(F) More than 100 levels of inheritance were used. Probably indicates
3022an unintended loop in your inheritance hierarchy.
3023.ie n .IP "Recursive inheritance detected while looking for method %s" 4
3024.el .IP "Recursive inheritance detected while looking for method \f(CW%s\fR" 4
3025.IX Item "Recursive inheritance detected while looking for method %s"
3026(F) More than 100 levels of inheritance were encountered while invoking
3027a method. Probably indicates an unintended loop in your inheritance
3028hierarchy.
3029.IP "Reference found where even-sized list expected" 4
3030.IX Item "Reference found where even-sized list expected"
3031(W misc) You gave a single reference where Perl was expecting a list
3032with an even number of elements (for assignment to a hash). This usually
3033means that you used the anon hash constructor when you meant to use
3034parens. In any case, a hash requires key/value \fBpairs\fR.
3035.Sp
3036.Vb 4
3037\& %hash = { one => 1, two => 2, }; # WRONG
3038\& %hash = [ qw/ an anon array / ]; # WRONG
3039\& %hash = ( one => 1, two => 2, ); # right
3040\& %hash = qw( one 1 two 2 ); # also fine
3041.Ve
3042.IP "Reference is already weak" 4
3043.IX Item "Reference is already weak"
3044(W misc) You have attempted to weaken a reference that is already weak.
3045Doing so has no effect.
3046.IP "Reference miscount in \fIsv_replace()\fR" 4
3047.IX Item "Reference miscount in sv_replace()"
3048(W internal) The internal \fIsv_replace()\fR function was handed a new \s-1SV\s0 with
3049a reference count of other than 1.
3050.IP "Reference to nonexistent group in regex;" 4
3051.IX Item "Reference to nonexistent group in regex;"
3052marked by <\-\- \s-1HERE\s0 in m/%s/
3053.Sp
3054(F) You used something like \f(CW\*(C`\e7\*(C'\fR in your regular expression, but there are
3055not at least seven sets of capturing parentheses in the expression. If you
3056wanted to have the character with value 7 inserted into the regular expression,
3057prepend a zero to make the number at least two digits: \f(CW\*(C`\e07\*(C'\fR
3058.Sp
3059The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
3060discovered.
3061.IP "regexp memory corruption" 4
3062.IX Item "regexp memory corruption"
3063(P) The regular expression engine got confused by what the regular
3064expression compiler gave it.
3065.IP "Regexp out of space" 4
3066.IX Item "Regexp out of space"
3067(P) A \*(L"can't happen\*(R" error, because \fIsafemalloc()\fR should have caught it
3068earlier.
3069.IP "Repeat count in pack overflows" 4
3070.IX Item "Repeat count in pack overflows"
3071(F) You can't specify a repeat count so large that it overflows your
3072signed integers. See \*(L"pack\*(R" in perlfunc.
3073.IP "Repeat count in unpack overflows" 4
3074.IX Item "Repeat count in unpack overflows"
3075(F) You can't specify a repeat count so large that it overflows your
3076signed integers. See \*(L"unpack\*(R" in perlfunc.
3077.ie n .IP "Reversed %s= operator" 4
3078.el .IP "Reversed \f(CW%s\fR= operator" 4
3079.IX Item "Reversed %s= operator"
3080(W syntax) You wrote your assignment operator backwards. The = must
3081always comes last, to avoid ambiguity with subsequent unary operators.
3082.IP "Runaway format" 4
3083.IX Item "Runaway format"
3084(F) Your format contained the ~~ repeat-until-blank sequence, but it
3085produced 200 lines at once, and the 200th line looked exactly like the
3086199th line. Apparently you didn't arrange for the arguments to exhaust
3087themselves, either by using ^ instead of @ (for scalar variables), or by
3088shifting or popping (for array variables). See perlform.
3089.IP "Scalar value @%s[%s] better written as $%s[%s]" 4
3090.IX Item "Scalar value @%s[%s] better written as $%s[%s]"
3091(W syntax) You've used an array slice (indicated by @) to select a
3092single element of an array. Generally it's better to ask for a scalar
3093value (indicated by $). The difference is that \f(CW$foo[&bar]\fR always
3094behaves like a scalar, both when assigning to it and when evaluating its
3095argument, while \f(CW@foo[&bar]\fR behaves like a list when you assign to it,
3096and provides a list context to its subscript, which can do weird things
3097if you're expecting only one subscript.
3098.Sp
3099On the other hand, if you were actually hoping to treat the array
3100element as a list, you need to look into how references work, because
3101Perl will not magically convert between scalars and lists for you. See
3102perlref.
3103.IP "Scalar value @%s{%s} better written as $%s{%s}" 4
3104.IX Item "Scalar value @%s{%s} better written as $%s{%s}"
3105(W syntax) You've used a hash slice (indicated by @) to select a single
3106element of a hash. Generally it's better to ask for a scalar value
3107(indicated by $). The difference is that \f(CW$foo{&bar}\fR always behaves
3108like a scalar, both when assigning to it and when evaluating its
3109argument, while \f(CW@foo{&bar}\fR behaves like a list when you assign to it,
3110and provides a list context to its subscript, which can do weird things
3111if you're expecting only one subscript.
3112.Sp
3113On the other hand, if you were actually hoping to treat the hash element
3114as a list, you need to look into how references work, because Perl will
3115not magically convert between scalars and lists for you. See
3116perlref.
3117.ie n .IP "Scalars leaked: %d" 4
3118.el .IP "Scalars leaked: \f(CW%d\fR" 4
3119.IX Item "Scalars leaked: %d"
3120(P) Something went wrong in Perl's internal bookkeeping of scalars:
3121not all scalar variables were deallocated by the time Perl exited.
3122What this usually indicates is a memory leak, which is of course bad,
3123especially if the Perl program is intended to be long\-running.
3124.IP "Script is not setuid/setgid in suidperl" 4
3125.IX Item "Script is not setuid/setgid in suidperl"
3126(F) Oddly, the suidperl program was invoked on a script without a setuid
3127or setgid bit set. This doesn't make much sense.
3128.IP "Search pattern not terminated" 4
3129.IX Item "Search pattern not terminated"
3130(F) The lexer couldn't find the final delimiter of a // or m{}
3131construct. Remember that bracketing delimiters count nesting level.
3132Missing the leading \f(CW\*(C`$\*(C'\fR from a variable \f(CW$m\fR may cause this error.
3133.IP "%\fIsseek()\fR on unopened filehandle" 4
3134.IX Item "%sseek() on unopened filehandle"
3135(W unopened) You tried to use the \fIseek()\fR or \fIsysseek()\fR function on a
3136filehandle that was either never opened or has since been closed.
3137.IP "select not implemented" 4
3138.IX Item "select not implemented"
3139(F) This machine doesn't implement the \fIselect()\fR system call.
3140.IP "Self-ties of arrays and hashes are not supported" 4
3141.IX Item "Self-ties of arrays and hashes are not supported"
3142(F) Self-ties are of arrays and hashes are not supported in
3143the current implementation.
3144.IP "Semicolon seems to be missing" 4
3145.IX Item "Semicolon seems to be missing"
3146(W semicolon) A nearby syntax error was probably caused by a missing
3147semicolon, or possibly some other missing operator, such as a comma.
3148.IP "semi\-panic: attempt to dup freed string" 4
3149.IX Item "semi-panic: attempt to dup freed string"
3150(S internal) The internal \fInewSVsv()\fR routine was called to duplicate a
3151scalar that had previously been marked as free.
3152.IP "sem%s not implemented" 4
3153.IX Item "sem%s not implemented"
3154(F) You don't have System V semaphore \s-1IPC\s0 on your system.
3155.ie n .IP "\fIsend()\fR on closed socket %s" 4
3156.el .IP "\fIsend()\fR on closed socket \f(CW%s\fR" 4
3157.IX Item "send() on closed socket %s"
3158(W closed) The socket you're sending to got itself closed sometime
3159before now. Check your control flow.
3160.IP "Sequence (? incomplete in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
3161.IX Item "Sequence (? incomplete in regex; marked by <-- HERE in m/%s/"
3162(F) A regular expression ended with an incomplete extension (?. The <\-\- \s-1HERE\s0
3163shows in the regular expression about where the problem was discovered. See
3164perlre.
3165.IP "Sequence (?{...}) not terminated or not {}\-balanced in regex;" 4
3166.IX Item "Sequence (?{...}) not terminated or not {}-balanced in regex;"
3167marked by <\-\- \s-1HERE\s0 in m/%s/
3168.Sp
3169(F) If the contents of a (?{...}) clause contains braces, they must balance
3170for Perl to properly detect the end of the clause. The <\-\- \s-1HERE\s0 shows in
3171the regular expression about where the problem was discovered. See
3172perlre.
3173.IP "Sequence (?%s...) not implemented in regex;" 4
3174.IX Item "Sequence (?%s...) not implemented in regex;"
3175marked by <\-\- \s-1HERE\s0 in m/%s/
3176.Sp
3177(F) A proposed regular expression extension has the character reserved but
3178has not yet been written. The <\-\- \s-1HERE\s0 shows in the regular expression about
3179where the problem was discovered. See perlre.
3180.IP "Sequence (?%s...) not recognized in regex;" 4
3181.IX Item "Sequence (?%s...) not recognized in regex;"
3182marked by <\-\- \s-1HERE\s0 in m/%s/
3183.Sp
3184(F) You used a regular expression extension that doesn't make sense. The
3185<\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
3186discovered. See perlre.
3187.IP "Sequence (?#... not terminated in regex;" 4
3188.IX Item "Sequence (?#... not terminated in regex;"
3189marked by <\-\- \s-1HERE\s0 in m/%s/
3190.Sp
3191(F) A regular expression comment must be terminated by a closing
3192parenthesis. Embedded parentheses aren't allowed. The <\-\- \s-1HERE\s0 shows in
3193the regular expression about where the problem was discovered. See
3194perlre.
3195.IP "500 Server error" 4
3196.IX Item "500 Server error"
3197See Server error.
3198.IP "Server error" 4
3199.IX Item "Server error"
3200This is the error message generally seen in a browser window when trying
3201to run a \s-1CGI\s0 program (including \s-1SSI\s0) over the web. The actual error text
3202varies widely from server to server. The most frequently-seen variants
3203are \*(L"500 Server error\*(R", \*(L"Method (something) not permitted\*(R", \*(L"Document
3204contains no data\*(R", \*(L"Premature end of script headers\*(R", and \*(L"Did not
3205produce a valid header\*(R".
3206.Sp
3207\&\fBThis is a \s-1CGI\s0 error, not a Perl error\fR.
3208.Sp
3209You need to make sure your script is executable, is accessible by the
3210user \s-1CGI\s0 is running the script under (which is probably not the user
3211account you tested it under), does not rely on any environment variables
3212(like \s-1PATH\s0) from the user it isn't running under, and isn't in a
3213location where the \s-1CGI\s0 server can't find it, basically, more or less.
3214Please see the following for more information:
3215.Sp
3216.Vb 3
3217\& http://www.perl.org/CGI_MetaFAQ.html
3218\& http://www.htmlhelp.org/faq/cgifaq.html
3219\& http://www.w3.org/Security/Faq/
3220.Ve
3221.Sp
3222You should also look at perlfaq9.
3223.IP "\fIsetegid()\fR not implemented" 4
3224.IX Item "setegid() not implemented"
3225(F) You tried to assign to \f(CW$)\fR, and your operating system doesn't
3226support the \fIsetegid()\fR system call (or equivalent), or at least Configure
3227didn't think so.
3228.IP "\fIseteuid()\fR not implemented" 4
3229.IX Item "seteuid() not implemented"
3230(F) You tried to assign to \f(CW$>\fR, and your operating system doesn't
3231support the \fIseteuid()\fR system call (or equivalent), or at least Configure
3232didn't think so.
3233.IP "setpgrp can't take arguments" 4
3234.IX Item "setpgrp can't take arguments"
3235(F) Your system has the \fIsetpgrp()\fR from \s-1BSD\s0 4.2, which takes no
3236arguments, unlike \s-1POSIX\s0 \fIsetpgid()\fR, which takes a process \s-1ID\s0 and process
3237group \s-1ID\s0.
3238.IP "\fIsetrgid()\fR not implemented" 4
3239.IX Item "setrgid() not implemented"
3240(F) You tried to assign to \f(CW$(\fR, and your operating system doesn't
3241support the \fIsetrgid()\fR system call (or equivalent), or at least Configure
3242didn't think so.
3243.IP "\fIsetruid()\fR not implemented" 4
3244.IX Item "setruid() not implemented"
3245(F) You tried to assign to \f(CW$<\fR, and your operating system doesn't
3246support the \fIsetruid()\fR system call (or equivalent), or at least Configure
3247didn't think so.
3248.ie n .IP "\fIsetsockopt()\fR on closed socket %s" 4
3249.el .IP "\fIsetsockopt()\fR on closed socket \f(CW%s\fR" 4
3250.IX Item "setsockopt() on closed socket %s"
3251(W closed) You tried to set a socket option on a closed socket. Did you
3252forget to check the return value of your \fIsocket()\fR call? See
3253\&\*(L"setsockopt\*(R" in perlfunc.
3254.IP "Setuid/gid script is writable by world" 4
3255.IX Item "Setuid/gid script is writable by world"
3256(F) The setuid emulator won't run a script that is writable by the
3257world, because the world might have written on it already.
3258.IP "shm%s not implemented" 4
3259.IX Item "shm%s not implemented"
3260(F) You don't have System V shared memory \s-1IPC\s0 on your system.
3261.IP "<> should be quotes" 4
3262.IX Item "<> should be quotes"
3263(F) You wrote \f(CW\*(C`require <file>\*(C'\fR when you should have written
3264\&\f(CW\*(C`require 'file'\*(C'\fR.
3265.ie n .IP "/%s/ should probably be written as ""%s""" 4
3266.el .IP "/%s/ should probably be written as ``%s''" 4
3267.IX Item "/%s/ should probably be written as %s"
3268(W syntax) You have used a pattern where Perl expected to find a string,
3269as in the first argument to \f(CW\*(C`join\*(C'\fR. Perl will treat the true or false
3270result of matching the pattern against \f(CW$_\fR as the string, which is
3271probably not what you had in mind.
3272.ie n .IP "\fIshutdown()\fR on closed socket %s" 4
3273.el .IP "\fIshutdown()\fR on closed socket \f(CW%s\fR" 4
3274.IX Item "shutdown() on closed socket %s"
3275(W closed) You tried to do a shutdown on a closed socket. Seems a bit
3276superfluous.
3277.ie n .IP "SIG%s handler ""%s"" not defined" 4
3278.el .IP "SIG%s handler ``%s'' not defined" 4
3279.IX Item "SIG%s handler %s not defined"
3280(W signal) The signal handler named in \f(CW%SIG\fR doesn't, in fact, exist.
3281Perhaps you put it into the wrong package?
3282.IP "sort is now a reserved word" 4
3283.IX Item "sort is now a reserved word"
3284(F) An ancient error message that almost nobody ever runs into anymore.
3285But before sort was a keyword, people sometimes used it as a filehandle.
3286.IP "Sort subroutine didn't return a numeric value" 4
3287.IX Item "Sort subroutine didn't return a numeric value"
3288(F) A sort comparison routine must return a number. You probably blew
3289it by not using \f(CW\*(C`<=>\*(C'\fR or \f(CW\*(C`cmp\*(C'\fR, or by not using them correctly.
3290See \*(L"sort\*(R" in perlfunc.
3291.IP "Sort subroutine didn't return single value" 4
3292.IX Item "Sort subroutine didn't return single value"
3293(F) A sort comparison subroutine may not return a list value with more
3294or less than one element. See \*(L"sort\*(R" in perlfunc.
3295.IP "\fIsplice()\fR offset past end of array" 4
3296.IX Item "splice() offset past end of array"
3297(W misc) You attempted to specify an offset that was past the end of
3298the array passed to \fIsplice()\fR. Splicing will instead commence at the end
3299of the array, rather than past it. If this isn't what you want, try
3300explicitly pre-extending the array by assigning $#array = \f(CW$offset\fR. See
3301\&\*(L"splice\*(R" in perlfunc.
3302.IP "Split loop" 4
3303.IX Item "Split loop"
3304(P) The split was looping infinitely. (Obviously, a split shouldn't
3305iterate more times than there are characters of input, which is what
3306happened.) See \*(L"split\*(R" in perlfunc.
3307.IP "Statement unlikely to be reached" 4
3308.IX Item "Statement unlikely to be reached"
3309(W exec) You did an \fIexec()\fR with some statement after it other than a
3310\&\fIdie()\fR. This is almost always an error, because \fIexec()\fR never returns
3311unless there was a failure. You probably wanted to use \fIsystem()\fR
3312instead, which does return. To suppress this warning, put the \fIexec()\fR in
3313a block by itself.
3314.ie n .IP "\fIstat()\fR on unopened filehandle %s" 4
3315.el .IP "\fIstat()\fR on unopened filehandle \f(CW%s\fR" 4
3316.IX Item "stat() on unopened filehandle %s"
3317(W unopened) You tried to use the \fIstat()\fR function on a filehandle that
3318was either never opened or has since been closed.
3319.ie n .IP "Stub found while resolving method `%s' overloading %s" 4
3320.el .IP "Stub found while resolving method `%s' overloading \f(CW%s\fR" 4
3321.IX Item "Stub found while resolving method `%s' overloading %s"
3322(P) Overloading resolution over \f(CW@ISA\fR tree may be broken by importation
3323stubs. Stubs should never be implicitly created, but explicit calls to
3324\&\f(CW\*(C`can\*(C'\fR may break this.
3325.ie n .IP "Subroutine %s redefined" 4
3326.el .IP "Subroutine \f(CW%s\fR redefined" 4
3327.IX Item "Subroutine %s redefined"
3328(W redefine) You redefined a subroutine. To suppress this warning, say
3329.Sp
3330.Vb 4
3331\& {
3332\& no warnings 'redefine';
3333\& eval "sub name { ... }";
3334\& }
3335.Ve
3336.IP "Substitution loop" 4
3337.IX Item "Substitution loop"
3338(P) The substitution was looping infinitely. (Obviously, a substitution
3339shouldn't iterate more times than there are characters of input, which
3340is what happened.) See the discussion of substitution in
3341\&\*(L"Quote and Quote-like Operators\*(R" in perlop.
3342.IP "Substitution pattern not terminated" 4
3343.IX Item "Substitution pattern not terminated"
3344(F) The lexer couldn't find the interior delimiter of an s/// or s{}{}
3345construct. Remember that bracketing delimiters count nesting level.
3346Missing the leading \f(CW\*(C`$\*(C'\fR from variable \f(CW$s\fR may cause this error.
3347.IP "Substitution replacement not terminated" 4
3348.IX Item "Substitution replacement not terminated"
3349(F) The lexer couldn't find the final delimiter of an s/// or s{}{}
3350construct. Remember that bracketing delimiters count nesting level.
3351Missing the leading \f(CW\*(C`$\*(C'\fR from variable \f(CW$s\fR may cause this error.
3352.IP "substr outside of string" 4
3353.IX Item "substr outside of string"
3354(W substr),(F) You tried to reference a \fIsubstr()\fR that pointed outside of
3355a string. That is, the absolute value of the offset was larger than the
3356length of the string. See \*(L"substr\*(R" in perlfunc. This warning is fatal if
3357substr is used in an lvalue context (as the left hand side of an
3358assignment or as a subroutine argument for example).
3359.ie n .IP "suidperl is no longer needed since %s" 4
3360.el .IP "suidperl is no longer needed since \f(CW%s\fR" 4
3361.IX Item "suidperl is no longer needed since %s"
3362(F) Your Perl was compiled with \fB\-D\fR\s-1SETUID_SCRIPTS_ARE_SECURE_NOW\s0, but
3363a version of the setuid emulator somehow got run anyway.
3364.IP "Switch (?(condition)... contains too many branches in regex;" 4
3365.IX Item "Switch (?(condition)... contains too many branches in regex;"
3366marked by <\-\- \s-1HERE\s0 in m/%s/
3367.Sp
3368(F) A (?(condition)if\-clause|else\-clause) construct can have at most two
3369branches (the if-clause and the else\-clause). If you want one or both to
3370contain alternation, such as using \f(CW\*(C`this|that|other\*(C'\fR, enclose it in
3371clustering parentheses:
3372.Sp
3373.Vb 1
3374\& (?(condition)(?:this|that|other)|else-clause)
3375.Ve
3376.Sp
3377The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
3378discovered. See perlre.
3379.IP "Switch condition not recognized in regex;" 4
3380.IX Item "Switch condition not recognized in regex;"
3381marked by <\-\- \s-1HERE\s0 in m/%s/
3382.Sp
3383(F) If the argument to the (?(...)if\-clause|else\-clause) construct is a
3384number, it can be only a number. The <\-\- \s-1HERE\s0 shows in the regular expression
3385about where the problem was discovered. See perlre.
3386.ie n .IP "switching effective %s is not implemented" 4
3387.el .IP "switching effective \f(CW%s\fR is not implemented" 4
3388.IX Item "switching effective %s is not implemented"
3389(F) While under the \f(CW\*(C`use filetest\*(C'\fR pragma, we cannot switch the real
3390and effective uids or gids.
3391.IP "syntax error" 4
3392.IX Item "syntax error"
3393(F) Probably means you had a syntax error. Common reasons include:
3394.Sp
3395.Vb 6
3396\& A keyword is misspelled.
3397\& A semicolon is missing.
3398\& A comma is missing.
3399\& An opening or closing parenthesis is missing.
3400\& An opening or closing brace is missing.
3401\& A closing quote is missing.
3402.Ve
3403.Sp
3404Often there will be another error message associated with the syntax
3405error giving more information. (Sometimes it helps to turn on \fB\-w\fR.)
3406The error message itself often tells you where it was in the line when
3407it decided to give up. Sometimes the actual error is several tokens
3408before this, because Perl is good at understanding random input.
3409Occasionally the line number may be misleading, and once in a blue moon
3410the only way to figure out what's triggering the error is to call
3411\&\f(CW\*(C`perl \-c\*(C'\fR repeatedly, chopping away half the program each time to see
3412if the error went away. Sort of the cybernetic version of 20\ questions.
3413.ie n .IP "syntax error at line %d: `%s' unexpected" 4
3414.el .IP "syntax error at line \f(CW%d:\fR `%s' unexpected" 4
3415.IX Item "syntax error at line %d: `%s' unexpected"
3416(A) You've accidentally run your script through the Bourne shell instead
3417of Perl. Check the #! line, or manually feed your script into Perl
3418yourself.
3419.ie n .IP "syntax error in file %s\fR at line \f(CW%d, next 2 tokens ""%s""" 4
3420.el .IP "syntax error in file \f(CW%s\fR at line \f(CW%d\fR, next 2 tokens ``%s''" 4
3421.IX Item "syntax error in file %s at line %d, next 2 tokens %s"
3422(F) This error is likely to occur if you run a perl5 script through
3423a perl4 interpreter, especially if the next 2 tokens are \*(L"use strict\*(R"
3424or \*(L"my \f(CW$var\fR\*(R" or \*(L"our \f(CW$var\fR\*(R".
3425.IP "%s syntax \s-1OK\s0" 4
3426.IX Item "%s syntax OK"
3427(F) The final summary message when a \f(CW\*(C`perl \-c\*(C'\fR succeeds.
3428.ie n .IP "System V %s is not implemented on this machine" 4
3429.el .IP "System V \f(CW%s\fR is not implemented on this machine" 4
3430.IX Item "System V %s is not implemented on this machine"
3431(F) You tried to do something with a function beginning with \*(L"sem\*(R",
3432\&\*(L"shm\*(R", or \*(L"msg\*(R" but that System V \s-1IPC\s0 is not implemented in your
3433machine. In some machines the functionality can exist but be
3434unconfigured. Consult your system support.
3435.ie n .IP "\fIsyswrite()\fR on closed filehandle %s" 4
3436.el .IP "\fIsyswrite()\fR on closed filehandle \f(CW%s\fR" 4
3437.IX Item "syswrite() on closed filehandle %s"
3438(W closed) The filehandle you're writing to got itself closed sometime
3439before now. Check your control flow.
3440.IP "Target of goto is too deeply nested" 4
3441.IX Item "Target of goto is too deeply nested"
3442(F) You tried to use \f(CW\*(C`goto\*(C'\fR to reach a label that was too deeply nested
3443for Perl to reach. Perl is doing you a favor by refusing.
3444.IP "\fItell()\fR on unopened filehandle" 4
3445.IX Item "tell() on unopened filehandle"
3446(W unopened) You tried to use the \fItell()\fR function on a filehandle that
3447was either never opened or has since been closed.
3448.IP "That use of $[ is unsupported" 4
3449.IX Item "That use of $[ is unsupported"
3450(F) Assignment to \f(CW$[\fR is now strictly circumscribed, and interpreted
3451as a compiler directive. You may say only one of
3452.Sp
3453.Vb 6
3454\& $[ = 0;
3455\& $[ = 1;
3456\& ...
3457\& local $[ = 0;
3458\& local $[ = 1;
3459\& ...
3460.Ve
3461.Sp
3462This is to prevent the problem of one module changing the array base out
3463from under another module inadvertently. See \*(L"$[\*(R" in perlvar.
3464.IP "The \fIcrypt()\fR function is unimplemented due to excessive paranoia" 4
3465.IX Item "The crypt() function is unimplemented due to excessive paranoia"
3466(F) Configure couldn't find the \fIcrypt()\fR function on your machine,
3467probably because your vendor didn't supply it, probably because they
3468think the U.S. Government thinks it's a secret, or at least that they
3469will continue to pretend that it is. And if you quote me on that, I
3470will deny it.
3471.ie n .IP "The %s function is unimplemented" 4
3472.el .IP "The \f(CW%s\fR function is unimplemented" 4
3473.IX Item "The %s function is unimplemented"
3474The function indicated isn't implemented on this architecture, according
3475to the probings of Configure.
3476.ie n .IP "The stat preceding %s wasn't an lstat" 4
3477.el .IP "The stat preceding \f(CW%s\fR wasn't an lstat" 4
3478.IX Item "The stat preceding %s wasn't an lstat"
3479(F) It makes no sense to test the current stat buffer for symbolic
3480linkhood if the last stat that wrote to the stat buffer already went
3481past the symlink to get to the real file. Use an actual filename
3482instead.
3483.IP "This Perl can't reset \s-1CRTL\s0 environ elements (%s)" 4
3484.IX Item "This Perl can't reset CRTL environ elements (%s)"
3485.PD 0
3486.IP "This Perl can't set \s-1CRTL\s0 environ elements (%s=%s)" 4
3487.IX Item "This Perl can't set CRTL environ elements (%s=%s)"
3488.PD
3489(W internal) Warnings peculiar to \s-1VMS\s0. You tried to change or delete an
3490element of the \s-1CRTL\s0's internal environ array, but your copy of Perl
3491wasn't built with a \s-1CRTL\s0 that contained the \fIsetenv()\fR function. You'll
3492need to rebuild Perl with a \s-1CRTL\s0 that does, or redefine
3493\&\fI\s-1PERL_ENV_TABLES\s0\fR (see perlvms) so that the environ array isn't the
3494target of the change to
3495\&\f(CW%ENV\fR which produced the warning.
3496.ie n .IP "thread failed to start: %s" 4
3497.el .IP "thread failed to start: \f(CW%s\fR" 4
3498.IX Item "thread failed to start: %s"
3499(F) The entry point function of threads\->\fIcreate()\fR failed for some reason.
3500.IP "times not implemented" 4
3501.IX Item "times not implemented"
3502(F) Your version of the C library apparently doesn't do \fItimes()\fR. I
3503suspect you're not running on Unix.
3504.IP "Too few args to syscall" 4
3505.IX Item "Too few args to syscall"
3506(F) There has to be at least one argument to \fIsyscall()\fR to specify the
3507system call to call, silly dilly.
3508.ie n .IP "Too late for ""\fB\-T\fR"" option" 4
3509.el .IP "Too late for ``\fB\-T\fR'' option" 4
3510.IX Item "Too late for ""-T"" option"
3511(X) The #! line (or local equivalent) in a Perl script contains the
3512\&\fB\-T\fR option, but Perl was not invoked with \fB\-T\fR in its command line.
3513This is an error because, by the time Perl discovers a \fB\-T\fR in a
3514script, it's too late to properly taint everything from the environment.
3515So Perl gives up.
3516.Sp
3517If the Perl script is being executed as a command using the #!
3518mechanism (or its local equivalent), this error can usually be fixed by
3519editing the #! line so that the \fB\-T\fR option is a part of Perl's first
3520argument: e.g. change \f(CW\*(C`perl \-n \-T\*(C'\fR to \f(CW\*(C`perl \-T \-n\*(C'\fR.
3521.Sp
3522If the Perl script is being executed as \f(CW\*(C`perl scriptname\*(C'\fR, then the
3523\&\fB\-T\fR option must appear on the command line: \f(CW\*(C`perl \-T scriptname\*(C'\fR.
3524.ie n .IP "Too late for ""\-%s"" option" 4
3525.el .IP "Too late for ``\-%s'' option" 4
3526.IX Item "Too late for -%s option"
3527(X) The #! line (or local equivalent) in a Perl script contains the
3528\&\fB\-M\fR or \fB\-m\fR option. This is an error because \fB\-M\fR and \fB\-m\fR options
3529are not intended for use inside scripts. Use the \f(CW\*(C`use\*(C'\fR pragma instead.
3530.ie n .IP "Too late to run %s block" 4
3531.el .IP "Too late to run \f(CW%s\fR block" 4
3532.IX Item "Too late to run %s block"
3533(W void) A \s-1CHECK\s0 or \s-1INIT\s0 block is being defined during run time proper,
3534when the opportunity to run them has already passed. Perhaps you are
3535loading 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
3536instead. Or perhaps you should put the \f(CW\*(C`require\*(C'\fR or \f(CW\*(C`do\*(C'\fR inside a
3537\&\s-1BEGIN\s0 block.
3538.IP "Too many args to syscall" 4
3539.IX Item "Too many args to syscall"
3540(F) Perl supports a maximum of only 14 args to \fIsyscall()\fR.
3541.ie n .IP "Too many arguments for %s" 4
3542.el .IP "Too many arguments for \f(CW%s\fR" 4
3543.IX Item "Too many arguments for %s"
3544(F) The function requires fewer arguments than you specified.
3545.IP "Too many )'s" 4
3546.IX Item "Too many )'s"
3547.PD 0
3548.IP "Too many ('s" 4
3549.IX Item "Too many ('s"
3550.PD
3551(A) You've accidentally run your script through \fBcsh\fR instead of Perl.
3552Check the #! line, or manually feed your script into Perl yourself.
3553.IP "Trailing \e in regex m/%s/" 4
3554.IX Item "Trailing in regex m/%s/"
3555(F) The regular expression ends with an unbackslashed backslash.
3556Backslash it. See perlre.
3557.IP "Transliteration pattern not terminated" 4
3558.IX Item "Transliteration pattern not terminated"
3559(F) The lexer couldn't find the interior delimiter of a tr/// or tr[][]
3560or y/// or y[][] construct. Missing the leading \f(CW\*(C`$\*(C'\fR from variables
3561\&\f(CW$tr\fR or \f(CW$y\fR may cause this error.
3562.IP "Transliteration replacement not terminated" 4
3563.IX Item "Transliteration replacement not terminated"
3564(F) The lexer couldn't find the final delimiter of a tr/// or tr[][]
3565construct.
3566.IP "truncate not implemented" 4
3567.IX Item "truncate not implemented"
3568(F) Your machine doesn't implement a file truncation mechanism that
3569Configure knows about.
3570.ie n .IP "Type of arg %d\fR to \f(CW%s\fR must be \f(CW%s\fR (not \f(CW%s)" 4
3571.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
3572.IX Item "Type of arg %d to %s must be %s (not %s)"
3573(F) This function requires the argument in that position to be of a
3574certain type. Arrays must be \f(CW@NAME\fR or \f(CW\*(C`@{EXPR}\*(C'\fR. Hashes must be
3575\&\f(CW%NAME\fR or \f(CW\*(C`%{EXPR}\*(C'\fR. No implicit dereferencing is allowed\*(--use the
3576{\s-1EXPR\s0} forms as an explicit dereference. See perlref.
3577.IP "umask not implemented" 4
3578.IX Item "umask not implemented"
3579(F) Your machine doesn't implement the umask function and you tried to
3580use it to restrict permissions for yourself (\s-1EXPR\s0 & 0700).
3581.ie n .IP "Unable to create sub named ""%s""" 4
3582.el .IP "Unable to create sub named ``%s''" 4
3583.IX Item "Unable to create sub named %s"
3584(F) You attempted to create or access a subroutine with an illegal name.
3585.ie n .IP "Unbalanced context: %d more PUSHes than POPs" 4
3586.el .IP "Unbalanced context: \f(CW%d\fR more PUSHes than POPs" 4
3587.IX Item "Unbalanced context: %d more PUSHes than POPs"
3588(W internal) The exit code detected an internal inconsistency in how
3589many execution contexts were entered and left.
3590.ie n .IP "Unbalanced saves: %d more saves than restores" 4
3591.el .IP "Unbalanced saves: \f(CW%d\fR more saves than restores" 4
3592.IX Item "Unbalanced saves: %d more saves than restores"
3593(W internal) The exit code detected an internal inconsistency in how
3594many values were temporarily localized.
3595.ie n .IP "Unbalanced scopes: %d more ENTERs than LEAVEs" 4
3596.el .IP "Unbalanced scopes: \f(CW%d\fR more ENTERs than LEAVEs" 4
3597.IX Item "Unbalanced scopes: %d more ENTERs than LEAVEs"
3598(W internal) The exit code detected an internal inconsistency in how
3599many blocks were entered and left.
3600.ie n .IP "Unbalanced tmps: %d more allocs than frees" 4
3601.el .IP "Unbalanced tmps: \f(CW%d\fR more allocs than frees" 4
3602.IX Item "Unbalanced tmps: %d more allocs than frees"
3603(W internal) The exit code detected an internal inconsistency in how
3604many mortal scalars were allocated and freed.
3605.ie n .IP "Undefined format ""%s"" called" 4
3606.el .IP "Undefined format ``%s'' called" 4
3607.IX Item "Undefined format %s called"
3608(F) The format indicated doesn't seem to exist. Perhaps it's really in
3609another package? See perlform.
3610.ie n .IP "Undefined sort subroutine ""%s"" called" 4
3611.el .IP "Undefined sort subroutine ``%s'' called" 4
3612.IX Item "Undefined sort subroutine %s called"
3613(F) The sort comparison routine specified doesn't seem to exist.
3614Perhaps it's in a different package? See \*(L"sort\*(R" in perlfunc.
3615.IP "Undefined subroutine &%s called" 4
3616.IX Item "Undefined subroutine &%s called"
3617(F) The subroutine indicated hasn't been defined, or if it was, it has
3618since been undefined.
3619.IP "Undefined subroutine called" 4
3620.IX Item "Undefined subroutine called"
3621(F) The anonymous subroutine you're trying to call hasn't been defined,
3622or if it was, it has since been undefined.
3623.IP "Undefined subroutine in sort" 4
3624.IX Item "Undefined subroutine in sort"
3625(F) The sort comparison routine specified is declared but doesn't seem
3626to have been defined yet. See \*(L"sort\*(R" in perlfunc.
3627.ie n .IP "Undefined top format ""%s"" called" 4
3628.el .IP "Undefined top format ``%s'' called" 4
3629.IX Item "Undefined top format %s called"
3630(F) The format indicated doesn't seem to exist. Perhaps it's really in
3631another package? See perlform.
3632.IP "Undefined value assigned to typeglob" 4
3633.IX Item "Undefined value assigned to typeglob"
3634(W misc) An undefined value was assigned to a typeglob, a la
3635\&\f(CW\*(C`*foo = undef\*(C'\fR. This does nothing. It's possible that you really mean
3636\&\f(CW\*(C`undef *foo\*(C'\fR.
3637.IP "%s: Undefined variable" 4
3638.IX Item "%s: Undefined variable"
3639(A) You've accidentally run your script through \fBcsh\fR instead of Perl.
3640Check the #! line, or manually feed your script into Perl yourself.
3641.ie n .IP "unexec of %s\fR into \f(CW%s failed!" 4
3642.el .IP "unexec of \f(CW%s\fR into \f(CW%s\fR failed!" 4
3643.IX Item "unexec of %s into %s failed!"
3644(F) The \fIunexec()\fR routine failed for some reason. See your local \s-1FSF\s0
3645representative, who probably put it there in the first place.
3646.ie n .IP "Unicode character %s is illegal" 4
3647.el .IP "Unicode character \f(CW%s\fR is illegal" 4
3648.IX Item "Unicode character %s is illegal"
3649(W utf8) Certain Unicode characters have been designated off-limits by
3650the Unicode standard and should not be generated. If you really know
3651what you are doing you can turn off this warning by \f(CW\*(C`no warnings 'utf8';\*(C'\fR.
3652.IP "Unknown \s-1BYTEORDER\s0" 4
3653.IX Item "Unknown BYTEORDER"
3654(F) There are no byte-swapping functions for a machine with this byte
3655order.
3656.ie n .IP "Unknown ""re"" subpragma '%s' (known ones are: %s)" 4
3657.el .IP "Unknown ``re'' subpragma '%s' (known ones are: \f(CW%s\fR)" 4
3658.IX Item "Unknown re subpragma '%s' (known ones are: %s)"
3659You tried to use an unknown subpragma of the \*(L"re\*(R" pragma.
3660.IP "Unknown switch condition (?(%.2s in regex;" 4
3661.IX Item "Unknown switch condition (?(%.2s in regex;"
3662marked by <\-\- \s-1HERE\s0 in m/%s/
3663.Sp
3664(F) The condition part of a (?(condition)if\-clause|else\-clause) construct
3665is not known. The condition may be lookahead or lookbehind (the condition
3666is true if the lookahead or lookbehind is true), a (?{...}) construct (the
3667condition is true if the code evaluates to a true value), or a number (the
3668condition is true if the set of capturing parentheses named by the number
3669matched).
3670.Sp
3671The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem was
3672discovered. See perlre.
3673.IP "Unknown \fIopen()\fR mode '%s'" 4
3674.IX Item "Unknown open() mode '%s'"
3675(F) The second argument of 3\-argument \fIopen()\fR is not among the list
3676of valid modes: \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`>\*(C'\fR, \f(CW\*(C`>>\*(C'\fR, \f(CW\*(C`+<\*(C'\fR,
3677\&\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.
3678.ie n .IP "Unknown process %x\fR sent message to prime_env_iter: \f(CW%s" 4
3679.el .IP "Unknown process \f(CW%x\fR sent message to prime_env_iter: \f(CW%s\fR" 4
3680.IX Item "Unknown process %x sent message to prime_env_iter: %s"
3681(P) An error peculiar to \s-1VMS\s0. Perl was reading values for \f(CW%ENV\fR before
3682iterating over it, and someone else stuck a message in the stream of
3683data Perl expected. Someone's very confused, or perhaps trying to
3684subvert Perl's population of \f(CW%ENV\fR for nefarious purposes.
3685.IP "Unknown warnings category '%s'" 4
3686.IX Item "Unknown warnings category '%s'"
3687(F) An error issued by the \f(CW\*(C`warnings\*(C'\fR pragma. You specified a warnings
3688category that is unknown to perl at this point.
3689.Sp
3690Note that if you want to enable a warnings category registered by a module
3691(e.g. \f(CW\*(C`use warnings 'File::Find'\*(C'\fR), you must have imported this module
3692first.
3693.IP "unmatched [ in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
3694.IX Item "unmatched [ in regex; marked by <-- HERE in m/%s/"
3695(F) The brackets around a character class must match. If you wish to
3696include a closing bracket in a character class, backslash it or put it
3697first. The <\-\- \s-1HERE\s0 shows in the regular expression about where the problem
3698was discovered. See perlre.
3699.IP "unmatched ( in regex; marked by <\-\- \s-1HERE\s0 in m/%s/" 4
3700.IX Item "unmatched ( in regex; marked by <-- HERE in m/%s/"
3701(F) Unbackslashed parentheses must always be balanced in regular
3702expressions. If you're a vi user, the % key is valuable for finding the
3703matching parenthesis. The <\-\- \s-1HERE\s0 shows in the regular expression about
3704where the problem was discovered. See perlre.
3705.ie n .IP "Unmatched right %s bracket" 4
3706.el .IP "Unmatched right \f(CW%s\fR bracket" 4
3707.IX Item "Unmatched right %s bracket"
3708(F) The lexer counted more closing curly or square brackets than opening
3709ones, so you're probably missing a matching opening bracket. As a
3710general rule, you'll find the missing one (so to speak) near the place
3711you were last editing.
3712.ie n .IP "Unquoted string ""%s"" may clash with future reserved word" 4
3713.el .IP "Unquoted string ``%s'' may clash with future reserved word" 4
3714.IX Item "Unquoted string %s may clash with future reserved word"
3715(W reserved) You used a bareword that might someday be claimed as a
3716reserved word. It's best to put such a word in quotes, or capitalize it
3717somehow, or insert an underbar into it. You might also declare it as a
3718subroutine.
3719.ie n .IP "Unrecognized character %s" 4
3720.el .IP "Unrecognized character \f(CW%s\fR" 4
3721.IX Item "Unrecognized character %s"
3722(F) The Perl parser has no idea what to do with the specified character
3723in your Perl script (or eval). Perhaps you tried to run a compressed
3724script, a binary program, or a directory as a Perl program.
3725.IP "/%s/: Unrecognized escape \e\e%c in character class passed through" 4
3726.IX Item "/%s/: Unrecognized escape %c in character class passed through"
3727(W regexp) You used a backslash-character combination which is not
3728recognized by Perl inside character classes. The character was
3729understood literally.
3730.IP "Unrecognized escape \e\e%c passed through in regex;" 4
3731.IX Item "Unrecognized escape %c passed through in regex;"
3732marked by <\-\- \s-1HERE\s0 in m/%s/
3733.Sp
3734(W regexp) You used a backslash-character combination which is not
3735recognized by Perl. This combination appears in an interpolated variable or
3736a \f(CW\*(C`'\*(C'\fR\-delimited regular expression. The character was understood
3737literally. The <\-\- \s-1HERE\s0 shows in the regular expression about where the
3738escape was discovered.
3739.IP "Unrecognized escape \e\e%c passed through" 4
3740.IX Item "Unrecognized escape %c passed through"
3741(W misc) You used a backslash-character combination which is not
3742recognized by Perl.
3743.ie n .IP "Unrecognized signal name ""%s""" 4
3744.el .IP "Unrecognized signal name ``%s''" 4
3745.IX Item "Unrecognized signal name %s"
3746(F) You specified a signal name to the \fIkill()\fR function that was not
3747recognized. Say \f(CW\*(C`kill \-l\*(C'\fR in your shell to see the valid signal names
3748on your system.
3749.IP "Unrecognized switch: \-%s (\-h will show valid options)" 4
3750.IX Item "Unrecognized switch: -%s (-h will show valid options)"
3751(F) You specified an illegal option to Perl. Don't do that. (If you
3752think you didn't do that, check the #! line to see if it's supplying the
3753bad switch on your behalf.)
3754.ie n .IP "Unsuccessful %s on filename containing newline" 4
3755.el .IP "Unsuccessful \f(CW%s\fR on filename containing newline" 4
3756.IX Item "Unsuccessful %s on filename containing newline"
3757(W newline) A file operation was attempted on a filename, and that
3758operation failed, \s-1PROBABLY\s0 because the filename contained a newline,
3759\&\s-1PROBABLY\s0 because you forgot to \fIchomp()\fR it off. See \*(L"chomp\*(R" in perlfunc.
3760.ie n .IP "Unsupported directory function ""%s"" called" 4
3761.el .IP "Unsupported directory function ``%s'' called" 4
3762.IX Item "Unsupported directory function %s called"
3763(F) Your machine doesn't support \fIopendir()\fR and \fIreaddir()\fR.
3764.ie n .IP "Unsupported function %s" 4
3765.el .IP "Unsupported function \f(CW%s\fR" 4
3766.IX Item "Unsupported function %s"
3767(F) This machine doesn't implement the indicated function, apparently.
3768At least, Configure doesn't think so.
3769.IP "Unsupported function fork" 4
3770.IX Item "Unsupported function fork"
3771(F) Your version of executable does not support forking.
3772.Sp
3773Note that under some systems, like \s-1OS/2\s0, there may be different flavors
3774of Perl executables, some of which may support fork, some not. Try
3775changing the name you call Perl by to \f(CW\*(C`perl_\*(C'\fR, \f(CW\*(C`perl_\|_\*(C'\fR, and so on.
3776.IP "Unsupported script encoding" 4
3777.IX Item "Unsupported script encoding"
3778(F) Your program file begins with a Unicode Byte Order Mark (\s-1BOM\s0) which
3779declares it to be in a Unicode encoding that Perl cannot yet read.
3780.ie n .IP "Unsupported socket function ""%s"" called" 4
3781.el .IP "Unsupported socket function ``%s'' called" 4
3782.IX Item "Unsupported socket function %s called"
3783(F) Your machine doesn't support the Berkeley socket mechanism, or at
3784least that's what Configure thought.
3785.IP "Unterminated attribute list" 4
3786.IX Item "Unterminated attribute list"
3787(F) The lexer found something other than a simple identifier at the
3788start of an attribute, and it wasn't a semicolon or the start of a
3789block. Perhaps you terminated the parameter list of the previous
3790attribute too soon. See attributes.
3791.IP "Unterminated attribute parameter in attribute list" 4
3792.IX Item "Unterminated attribute parameter in attribute list"
3793(F) The lexer saw an opening (left) parenthesis character while parsing
3794an attribute list, but the matching closing (right) parenthesis
3795character was not found. You may need to add (or remove) a backslash
3796character to get your parentheses to balance. See attributes.
3797.IP "Unterminated compressed integer" 4
3798.IX Item "Unterminated compressed integer"
3799(F) An argument to unpack(\*(L"w\*(R",...) was incompatible with the \s-1BER\s0
3800compressed integer format and could not be converted to an integer.
3801See \*(L"pack\*(R" in perlfunc.
3802.IP "Unterminated <> operator" 4
3803.IX Item "Unterminated <> operator"
3804(F) The lexer saw a left angle bracket in a place where it was expecting
3805a term, so it's looking for the corresponding right angle bracket, and
3806not finding it. Chances are you left some needed parentheses out
3807earlier in the line, and you really meant a \*(L"less than\*(R".
3808.ie n .IP "untie attempted while %d inner references still exist" 4
3809.el .IP "untie attempted while \f(CW%d\fR inner references still exist" 4
3810.IX Item "untie attempted while %d inner references still exist"
3811(W untie) A copy of the object returned from \f(CW\*(C`tie\*(C'\fR (or \f(CW\*(C`tied\*(C'\fR) was
3812still valid when \f(CW\*(C`untie\*(C'\fR was called.
3813.IP "Useless (?%s) \- use /%s modifier in regex;" 4
3814.IX Item "Useless (?%s) - use /%s modifier in regex;"
3815marked by <\-\- \s-1HERE\s0 in m/%s/
3816.Sp
3817(W regexp) You have used an internal modifier such as (?o) that has no
3818meaning unless applied to the entire regexp:
3819.Sp
3820.Vb 1
3821\& if ($string =~ /(?o)$pattern/) { ... }
3822.Ve
3823.Sp
3824must be written as
3825.Sp
3826.Vb 1
3827\& if ($string =~ /$pattern/o) { ... }
3828.Ve
3829.Sp
3830The <\-\- \s-1HERE\s0 shows in the regular expression about
3831where the problem was discovered. See perlre.
3832.IP "Useless (?\-%s) \- don't use /%s modifier in regex;" 4
3833.IX Item "Useless (?-%s) - don't use /%s modifier in regex;"
3834marked by <\-\- \s-1HERE\s0 in m/%s/
3835.Sp
3836(W regexp) You have used an internal modifier such as (?\-o) that has no
3837meaning unless removed from the entire regexp:
3838.Sp
3839.Vb 1
3840\& if ($string =~ /(?-o)$pattern/o) { ... }
3841.Ve
3842.Sp
3843must be written as
3844.Sp
3845.Vb 1
3846\& if ($string =~ /$pattern/) { ... }
3847.Ve
3848.Sp
3849The <\-\- \s-1HERE\s0 shows in the regular expression about
3850where the problem was discovered. See perlre.
3851.ie n .IP "Useless use of %s in void context" 4
3852.el .IP "Useless use of \f(CW%s\fR in void context" 4
3853.IX Item "Useless use of %s in void context"
3854(W void) You did something without a side effect in a context that does
3855nothing with the return value, such as a statement that doesn't return a
3856value from a block, or the left side of a scalar comma operator. Very
3857often this points not to stupidity on your part, but a failure of Perl
3858to parse your program the way you thought it would. For example, you'd
3859get this if you mixed up your C precedence with Python precedence and
3860said
3861.Sp
3862.Vb 1
3863\& $one, $two = 1, 2;
3864.Ve
3865.Sp
3866when you meant to say
3867.Sp
3868.Vb 1
3869\& ($one, $two) = (1, 2);
3870.Ve
3871.Sp
3872Another common error is to use ordinary parentheses to construct a list
3873reference when you should be using square or curly brackets, for
3874example, if you say
3875.Sp
3876.Vb 1
3877\& $array = (1,2);
3878.Ve
3879.Sp
3880when you should have said
3881.Sp
3882.Vb 1
3883\& $array = [1,2];
3884.Ve
3885.Sp
3886The square brackets explicitly turn a list value into a scalar value,
3887while parentheses do not. So when a parenthesized list is evaluated in
3888a scalar context, the comma is treated like C's comma operator, which
3889throws away the left argument, which is not what you want. See
3890perlref for more on this.
3891.Sp
3892This warning will not be issued for numerical constants equal to 0 or 1
3893since they are often used in statements like
3894.Sp
3895.Vb 1
3896\& 1 while sub_with_side_effects() ;
3897.Ve
3898.Sp
3899String constants that would normally evaluate to 0 or 1 are warned
3900about.
3901.ie n .IP "Useless use of ""re"" pragma" 4
3902.el .IP "Useless use of ``re'' pragma" 4
3903.IX Item "Useless use of re pragma"
3904(W) You did \f(CW\*(C`use re;\*(C'\fR without any arguments. That isn't very useful.
3905.IP "Useless use of sort in scalar context" 4
3906.IX Item "Useless use of sort in scalar context"
3907(W void) You used sort in scalar context, as in :
3908.Sp
3909.Vb 1
3910\& my $x = sort @y;
3911.Ve
3912.Sp
3913This is not very useful, and perl currently optimizes this away.
3914.ie n .IP "Useless use of %s with no values" 4
3915.el .IP "Useless use of \f(CW%s\fR with no values" 4
3916.IX Item "Useless use of %s with no values"
3917(W syntax) You used the \fIpush()\fR or \fIunshift()\fR function with no arguments
3918apart from the array, like \f(CW\*(C`push(@x)\*(C'\fR or \f(CW\*(C`unshift(@foo)\*(C'\fR. That won't
3919usually have any effect on the array, so is completely useless. It's
3920possible in principle that push(@tied_array) could have some effect
3921if the array is tied to a class which implements a \s-1PUSH\s0 method. If so,
3922you can write it as \f(CW\*(C`push(@tied_array,())\*(C'\fR to avoid this warning.
3923.ie n .IP """use"" not allowed in expression" 4
3924.el .IP "``use'' not allowed in expression" 4
3925.IX Item "use not allowed in expression"
3926(F) The \*(L"use\*(R" keyword is recognized and executed at compile time, and
3927returns no useful value. See perlmod.
3928.ie n .IP "Use of bare << to mean <<"""" is deprecated" 4
3929.el .IP "Use of bare << to mean <<``'' is deprecated" 4
3930.IX Item "Use of bare << to mean <<"""" is deprecated"
3931(D deprecated) You are now encouraged to use the explicitly quoted form
3932if you wish to use an empty line as the terminator of the here\-document.
3933.IP "Use of /c modifier is meaningless in s///" 4
3934.IX Item "Use of /c modifier is meaningless in s///"
3935(W regexp) You used the /c modifier in a substitution. The /c
3936modifier is not presently meaningful in substitutions.
3937.IP "Use of /c modifier is meaningless without /g" 4
3938.IX Item "Use of /c modifier is meaningless without /g"
3939(W regexp) You used the /c modifier with a regex operand, but didn't
3940use the /g modifier. Currently, /c is meaningful only when /g is
3941used. (This may change in the future.)
3942.IP "Use of /g modifier is meaningless in split" 4
3943.IX Item "Use of /g modifier is meaningless in split"
3944(W regexp) You used the /g modifier on the pattern for a \f(CW\*(C`split\*(C'\fR
3945operator. Since \f(CW\*(C`split\*(C'\fR always tries to match the pattern
3946repeatedly, the \f(CW\*(C`/g\*(C'\fR has no effect.
3947.IP "Use of *glob{\s-1FILEHANDLE\s0} is deprecated" 4
3948.IX Item "Use of *glob{FILEHANDLE} is deprecated"
3949(D deprecated) You are now encouraged to use the shorter *glob{\s-1IO\s0} form
3950to access the filehandle slot within a typeglob.
3951.IP "Use of chdir('') or chdir(undef) as \fIchdir()\fR deprecated" 4
3952.IX Item "Use of chdir('') or chdir(undef) as chdir() deprecated"
3953(D deprecated) \fIchdir()\fR with no arguments is documented to change to
3954\&\f(CW$ENV\fR{\s-1HOME\s0} or \f(CW$ENV\fR{\s-1LOGDIR\s0}. chdir(undef) and chdir('') share this
3955behavior, but that has been deprecated. In future versions they
3956will simply fail.
3957.Sp
3958Be careful to check that what you pass to \fIchdir()\fR is defined and not
3959blank, else you might find yourself in your home directory.
3960.ie n .IP "Use of implicit split to @_ is deprecated" 4
3961.el .IP "Use of implicit split to \f(CW@_\fR is deprecated" 4
3962.IX Item "Use of implicit split to @_ is deprecated"
3963(D deprecated) It makes a lot of work for the compiler when you clobber
3964a subroutine's argument list, so it's better if you assign the results
3965of a \fIsplit()\fR explicitly to an array (or list).
3966.IP "Use of inherited \s-1AUTOLOAD\s0 for non-method %s() is deprecated" 4
3967.IX Item "Use of inherited AUTOLOAD for non-method %s() is deprecated"
3968(D deprecated) As an (ahem) accidental feature, \f(CW\*(C`AUTOLOAD\*(C'\fR subroutines
3969are looked up as methods (using the \f(CW@ISA\fR hierarchy) even when the
3970subroutines to be autoloaded were called as plain functions (e.g.
3971\&\f(CW\*(C`Foo::bar()\*(C'\fR), not as methods (e.g. \f(CW\*(C`Foo\->bar()\*(C'\fR or \f(CW\*(C`$obj\->bar()\*(C'\fR).
3972.Sp
3973This bug will be rectified in future by using method lookup only for
3974methods' \f(CW\*(C`AUTOLOAD\*(C'\fRs. However, there is a significant base of existing
3975code that may be using the old behavior. So, as an interim step, Perl
3976currently issues an optional warning when non-methods use inherited
3977\&\f(CW\*(C`AUTOLOAD\*(C'\fRs.
3978.Sp
3979The simple rule is: Inheritance will not work when autoloading
3980non\-methods. The simple fix for old code is: In any module that used
3981to depend on inheriting \f(CW\*(C`AUTOLOAD\*(C'\fR for non-methods from a base class
3982named \f(CW\*(C`BaseClass\*(C'\fR, execute \f(CW\*(C`*AUTOLOAD = \e&BaseClass::AUTOLOAD\*(C'\fR during
3983startup.
3984.Sp
3985In code that currently says \f(CW\*(C`use AutoLoader; @ISA = qw(AutoLoader);\*(C'\fR
3986you should remove AutoLoader from \f(CW@ISA\fR and change \f(CW\*(C`use AutoLoader;\*(C'\fR to
3987\&\f(CW\*(C`use AutoLoader 'AUTOLOAD';\*(C'\fR.
3988.ie n .IP "Use of \-l on filehandle %s" 4
3989.el .IP "Use of \-l on filehandle \f(CW%s\fR" 4
3990.IX Item "Use of -l on filehandle %s"
3991(W io) A filehandle represents an opened file, and when you opened the file
3992it already went past any symlink you are presumably trying to look for.
3993The operation returned \f(CW\*(C`undef\*(C'\fR. Use a filename instead.
3994.ie n .IP "Use of ""package"" with no arguments is deprecated" 4
3995.el .IP "Use of ``package'' with no arguments is deprecated" 4
3996.IX Item "Use of package with no arguments is deprecated"
3997(D deprecated) You used the \f(CW\*(C`package\*(C'\fR keyword without specifying a package
3998name. So no namespace is current at all. Using this can cause many
3999otherwise reasonable constructs to fail in baffling ways. \f(CW\*(C`use strict;\*(C'\fR
4000instead.
4001.ie n .IP "Use of %s in printf format not supported" 4
4002.el .IP "Use of \f(CW%s\fR in printf format not supported" 4
4003.IX Item "Use of %s in printf format not supported"
4004(F) You attempted to use a feature of printf that is accessible from
4005only C. This usually means there's a better way to do it in Perl.
4006.IP "Use of $* is deprecated" 4
4007.IX Item "Use of $* is deprecated"
4008(D deprecated) This variable magically turned on multi-line pattern
4009matching, both for you and for any luckless subroutine that you happen
4010to call. You should use the new \f(CW\*(C`//m\*(C'\fR and \f(CW\*(C`//s\*(C'\fR modifiers now to do
4011that without the dangerous action-at-a-distance effects of \f(CW$*\fR.
4012.ie n .IP "Use of %s is deprecated" 4
4013.el .IP "Use of \f(CW%s\fR is deprecated" 4
4014.IX Item "Use of %s is deprecated"
4015(D deprecated) The construct indicated is no longer recommended for use,
4016generally because there's a better way to do it, and also because the
4017old way has bad side effects.
4018.IP "Use of $# is deprecated" 4
4019.IX Item "Use of $# is deprecated"
4020(D deprecated) This was an ill-advised attempt to emulate a poorly
4021defined \fBawk\fR feature. Use an explicit \fIprintf()\fR or \fIsprintf()\fR instead.
4022.ie n .IP "Use of reference ""%s"" as array index" 4
4023.el .IP "Use of reference ``%s'' as array index" 4
4024.IX Item "Use of reference %s as array index"
4025(W misc) You tried to use a reference as an array index; this probably
4026isn't what you mean, because references in numerical context tend
4027to be huge numbers, and so usually indicates programmer error.
4028.Sp
4029If you really do mean it, explicitly numify your reference, like so:
4030\&\f(CW$array[0+$ref]\fR. This warning is not given for overloaded objects,
4031either, because you can overload the numification and stringification
4032operators and then you assumedly know what you are doing.
4033.ie n .IP "Use of reserved word ""%s"" is deprecated" 4
4034.el .IP "Use of reserved word ``%s'' is deprecated" 4
4035.IX Item "Use of reserved word %s is deprecated"
4036(D deprecated) The indicated bareword is a reserved word. Future
4037versions of perl may use it as a keyword, so you're better off either
4038explicitly quoting the word in a manner appropriate for its context of
4039use, or using a different name altogether. The warning can be
4040suppressed for subroutine names by either adding a \f(CW\*(C`&\*(C'\fR prefix, or using
4041a package qualifier, e.g. \f(CW\*(C`&our()\*(C'\fR, or \f(CW\*(C`Foo::our()\*(C'\fR.
4042.ie n .IP "Use of tainted arguments in %s is deprecated" 4
4043.el .IP "Use of tainted arguments in \f(CW%s\fR is deprecated" 4
4044.IX Item "Use of tainted arguments in %s is deprecated"
4045(W taint, deprecated) You have supplied \f(CW\*(C`system()\*(C'\fR or \f(CW\*(C`exec()\*(C'\fR with multiple
4046arguments and at least one of them is tainted. This used to be allowed
4047but will become a fatal error in a future version of perl. Untaint your
4048arguments. See perlsec.
4049.IP "Use of uninitialized value%s" 4
4050.IX Item "Use of uninitialized value%s"
4051(W uninitialized) An undefined value was used as if it were already
4052defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
4053To suppress this warning assign a defined value to your variables.
4054.Sp
4055To help you figure out what was undefined, perl tells you what operation
4056you used the undefined value in. Note, however, that perl optimizes your
4057program and the operation displayed in the warning may not necessarily
4058appear literally in your program. For example, \f(CW"that $foo"\fR is
4059usually optimized into \f(CW\*(C`"that " . $foo\*(C'\fR, and the warning will refer to
4060the \f(CW\*(C`concatenation (.)\*(C'\fR operator, even though there is no \f(CW\*(C`.\*(C'\fR in your
4061program.
4062.IP "Using a hash as a reference is deprecated" 4
4063.IX Item "Using a hash as a reference is deprecated"
4064(D deprecated) You tried to use a hash as a reference, as in
4065\&\f(CW\*(C`%foo\->{"bar"}\*(C'\fR or \f(CW\*(C`%$ref\->{"hello"}\*(C'\fR. Versions of perl <= 5.6.1
4066used to allow this syntax, but shouldn't have. It is now deprecated, and will
4067be removed in a future version.
4068.IP "Using an array as a reference is deprecated" 4
4069.IX Item "Using an array as a reference is deprecated"
4070(D deprecated) You tried to use an array as a reference, as in
4071\&\f(CW\*(C`@foo\->[23]\*(C'\fR or \f(CW\*(C`@$ref\->[99]\*(C'\fR. Versions of perl <= 5.6.1 used to
4072allow this syntax, but shouldn't have. It is now deprecated, and will be
4073removed in a future version.
4074.ie n .IP "\s-1UTF\-16\s0 surrogate %s" 4
4075.el .IP "\s-1UTF\-16\s0 surrogate \f(CW%s\fR" 4
4076.IX Item "UTF-16 surrogate %s"
4077(W utf8) You tried to generate half of an \s-1UTF\-16\s0 surrogate by
4078requesting a Unicode character between the code points 0xD800 and
40790xDFFF (inclusive). That range is reserved exclusively for the use of
4080\&\s-1UTF\-16\s0 encoding (by having two 16\-bit \s-1UCS\-2\s0 characters); but Perl
4081encodes its characters in \s-1UTF\-8\s0, so what you got is a very illegal
4082character. If you really know what you are doing you can turn off
4083this warning by \f(CW\*(C`no warnings 'utf8';\*(C'\fR.
4084.ie n .IP "Value of %s\fR can be ""0""; test with \fIdefined()" 4
4085.el .IP "Value of \f(CW%s\fR can be ``0''; test with \fIdefined()\fR" 4
4086.IX Item "Value of %s can be 0; test with defined()"
4087(W misc) In a conditional expression, you used <\s-1HANDLE\s0>, <*> (glob),
4088\&\f(CW\*(C`each()\*(C'\fR, or \f(CW\*(C`readdir()\*(C'\fR as a boolean value. Each of these constructs
4089can return a value of \*(L"0\*(R"; that would make the conditional expression
4090false, which is probably not what you intended. When using these
4091constructs in conditional expressions, test their values with the
4092\&\f(CW\*(C`defined\*(C'\fR operator.
4093.ie n .IP "Value of \s-1CLI\s0 symbol ""%s"" too long" 4
4094.el .IP "Value of \s-1CLI\s0 symbol ``%s'' too long" 4
4095.IX Item "Value of CLI symbol %s too long"
4096(W misc) A warning peculiar to \s-1VMS\s0. Perl tried to read the value of an
4097\&\f(CW%ENV\fR element from a \s-1CLI\s0 symbol table, and found a resultant string
4098longer than 1024 characters. The return value has been truncated to
40991024 characters.
4100.ie n .IP "Variable ""%s"" is not imported%s" 4
4101.el .IP "Variable ``%s'' is not imported%s" 4
4102.IX Item "Variable %s is not imported%s"
4103(F) While \*(L"use strict\*(R" in effect, you referred to a global variable that
4104you apparently thought was imported from another module, because
4105something else of the same name (usually a subroutine) is exported by
4106that module. It usually means you put the wrong funny character on the
4107front of your variable.
4108.ie n .IP """%s"" variable %s\fR masks earlier declaration in same \f(CW%s" 4
4109.el .IP "``%s'' variable \f(CW%s\fR masks earlier declaration in same \f(CW%s\fR" 4
4110.IX Item "%s variable %s masks earlier declaration in same %s"
4111(W misc) A \*(L"my\*(R" or \*(L"our\*(R" variable has been redeclared in the current
4112scope or statement, effectively eliminating all access to the previous
4113instance. This is almost always a typographical error. Note that the
4114earlier variable will still exist until the end of the scope or until
4115all closure referents to it are destroyed.
4116.ie n .IP "Variable ""%s"" may be unavailable" 4
4117.el .IP "Variable ``%s'' may be unavailable" 4
4118.IX Item "Variable %s may be unavailable"
4119(W closure) An inner (nested) \fIanonymous\fR subroutine is inside a
4120\&\fInamed\fR subroutine, and outside that is another subroutine; and the
4121anonymous (innermost) subroutine is referencing a lexical variable
4122defined in the outermost subroutine. For example:
4123.Sp
4124.Vb 1
4125\& sub outermost { my $a; sub middle { sub { $a } } }
4126.Ve
4127.Sp
4128If the anonymous subroutine is called or referenced (directly or
4129indirectly) from the outermost subroutine, it will share the variable as
4130you would expect. But if the anonymous subroutine is called or
4131referenced when the outermost subroutine is not active, it will see the
4132value of the shared variable as it was before and during the *first*
4133call to the outermost subroutine, which is probably not what you want.
4134.Sp
4135In these circumstances, it is usually best to make the middle subroutine
4136anonymous, using the \f(CW\*(C`sub {}\*(C'\fR syntax. Perl has specific support for
4137shared variables in nested anonymous subroutines; a named subroutine in
4138between interferes with this feature.
4139.IP "Variable syntax" 4
4140.IX Item "Variable syntax"
4141(A) You've accidentally run your script through \fBcsh\fR instead
4142of Perl. Check the #! line, or manually feed your script into
4143Perl yourself.
4144.ie n .IP "Variable ""%s"" will not stay shared" 4
4145.el .IP "Variable ``%s'' will not stay shared" 4
4146.IX Item "Variable %s will not stay shared"
4147(W closure) An inner (nested) \fInamed\fR subroutine is referencing a
4148lexical variable defined in an outer subroutine.
4149.Sp
4150When the inner subroutine is called, it will probably see the value of
4151the outer subroutine's variable as it was before and during the *first*
4152call to the outer subroutine; in this case, after the first call to the
4153outer subroutine is complete, the inner and outer subroutines will no
4154longer share a common value for the variable. In other words, the
4155variable will no longer be shared.
4156.Sp
4157Furthermore, if the outer subroutine is anonymous and references a
4158lexical variable outside itself, then the outer and inner subroutines
4159will \fInever\fR share the given variable.
4160.Sp
4161This problem can usually be solved by making the inner subroutine
4162anonymous, using the \f(CW\*(C`sub {}\*(C'\fR syntax. When inner anonymous subs that
4163reference variables in outer subroutines are called or referenced, they
4164are automatically rebound to the current values of such variables.
4165.IP "Variable length lookbehind not implemented in regex;" 4
4166.IX Item "Variable length lookbehind not implemented in regex;"
4167marked by <\-\- \s-1HERE\s0 in m/%s/
4168.Sp
4169(F) Lookbehind is allowed only for subexpressions whose length is fixed and
4170known at compile time. The <\-\- \s-1HERE\s0 shows in the regular expression about
4171where the problem was discovered. See perlre.
4172.IP "Version number must be a constant number" 4
4173.IX Item "Version number must be a constant number"
4174(P) The attempt to translate a \f(CW\*(C`use Module n.n LIST\*(C'\fR statement into
4175its equivalent \f(CW\*(C`BEGIN\*(C'\fR block found an internal inconsistency with
4176the version number.
4177.IP "v\-string in use/require is non-portable" 4
4178.IX Item "v-string in use/require is non-portable"
4179(W portable) The use of v\-strings is non-portable to older, pre\-5.6, Perls.
4180If you want your scripts to be backward portable, use the floating
4181point version number: for example, instead of \f(CW\*(C`use 5.6.1\*(C'\fR say
4182\&\f(CW\*(C`use 5.006_001\*(C'\fR. This of course won't help: the older Perls
4183won't suddenly start understanding newer features, but at least
4184they will show a sensible error message indicating the required
4185minimum version.
4186.IP "Warning: something's wrong" 4
4187.IX Item "Warning: something's wrong"
4188(W) You passed \fIwarn()\fR an empty string (the equivalent of \f(CW\*(C`warn ""\*(C'\fR) or
4189you called it with no args and \f(CW$_\fR was empty.
4190.ie n .IP "Warning: unable to close filehandle %s properly" 4
4191.el .IP "Warning: unable to close filehandle \f(CW%s\fR properly" 4
4192.IX Item "Warning: unable to close filehandle %s properly"
4193(S) The implicit \fIclose()\fR done by an \fIopen()\fR got an error indication on
4194the \fIclose()\fR. This usually indicates your file system ran out of disk
4195space.
4196.ie n .IP "Warning: Use of ""%s"" without parentheses is ambiguous" 4
4197.el .IP "Warning: Use of ``%s'' without parentheses is ambiguous" 4
4198.IX Item "Warning: Use of %s without parentheses is ambiguous"
4199(S ambiguous) You wrote a unary operator followed by something that
4200looks like a binary operator that could also have been interpreted as a
4201term or unary operator. For instance, if you know that the rand
4202function has a default argument of 1.0, and you write
4203.Sp
4204.Vb 1
4205\& rand + 5;
4206.Ve
4207.Sp
4208you may \s-1THINK\s0 you wrote the same thing as
4209.Sp
4210.Vb 1
4211\& rand() + 5;
4212.Ve
4213.Sp
4214but in actual fact, you got
4215.Sp
4216.Vb 1
4217\& rand(+5);
4218.Ve
4219.Sp
4220So put in parentheses to say what you really mean.
4221.ie n .IP "Wide character in %s" 4
4222.el .IP "Wide character in \f(CW%s\fR" 4
4223.IX Item "Wide character in %s"
4224(W utf8) Perl met a wide character (>255) when it wasn't expecting
4225one. This warning is by default on for I/O (like print) but can be
4226turned off by \f(CW\*(C`no warnings 'utf8';\*(C'\fR. You are supposed to explicitly
4227mark the filehandle with an encoding, see open and \*(L"binmode\*(R" in perlfunc.
4228.ie n .IP "\fIwrite()\fR on closed filehandle %s" 4
4229.el .IP "\fIwrite()\fR on closed filehandle \f(CW%s\fR" 4
4230.IX Item "write() on closed filehandle %s"
4231(W closed) The filehandle you're writing to got itself closed sometime
4232before now. Check your control flow.
4233.IP "X outside of string" 4
4234.IX Item "X outside of string"
4235(F) You had a pack template that specified a relative position before
4236the beginning of the string being unpacked. See \*(L"pack\*(R" in perlfunc.
4237.IP "x outside of string" 4
4238.IX Item "x outside of string"
4239(F) You had a pack template that specified a relative position after
4240the end of the string being unpacked. See \*(L"pack\*(R" in perlfunc.
4241.ie n .IP "Xsub ""%s"" called in sort" 4
4242.el .IP "Xsub ``%s'' called in sort" 4
4243.IX Item "Xsub %s called in sort"
4244(F) The use of an external subroutine as a sort comparison is not yet
4245supported.
4246.IP "Xsub called in sort" 4
4247.IX Item "Xsub called in sort"
4248(F) The use of an external subroutine as a sort comparison is not yet
4249supported.
4250.IP "\s-1YOU\s0 \s-1HAVEN\s0'T \s-1DISABLED\s0 SET-ID \s-1SCRIPTS\s0 \s-1IN\s0 \s-1THE\s0 \s-1KERNEL\s0 \s-1YET\s0!" 4
4251.IX Item "YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!"
4252(F) And you probably never will, because you probably don't have the
4253sources to your kernel, and your vendor probably doesn't give a rip
4254about what you want. Your best bet is to put a setuid C wrapper around
4255your script.
4256.ie n .IP "You need to quote ""%s""" 4
4257.el .IP "You need to quote ``%s''" 4
4258.IX Item "You need to quote %s"
4259(W syntax) You assigned a bareword as a signal handler name.
4260Unfortunately, you already have a subroutine of that name declared,
4261which means that Perl 5 will try to call the subroutine when the
4262assignment is executed, which is probably not what you want. (If it \s-1IS\s0
4263what you want, put an & in front.)