📄 perldiag.1
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. \*(C+ will.\" give a nicer C++. Capital omega is used to do unbreakable dashes and.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.el \{\. de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "PERLDIAG 1".TH PERLDIAG 1 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"perldiag \- various Perl diagnostics.SH "DESCRIPTION".IX Header "DESCRIPTION"These messages are classified as follows (listed in increasing order ofdesperation):.PP.Vb 7\& (W) A warning (optional).\& (D) A deprecation (optional).\& (S) A severe warning (enabled by default).\& (F) A fatal error (trappable).\& (P) An internal error you should never see (trappable).\& (X) A very fatal error (nontrappable).\& (A) An alien error message (not generated by Perl)..Ve.PPThe majority of messages from the first three classifications above(W, D & S) can be controlled using the \f(CW\*(C`warnings\*(C'\fR pragma..PPIf a message can be controlled by the \f(CW\*(C`warnings\*(C'\fR pragma, its warningcategory is included with the classification letter in the descriptionbelow..PPOptional warnings are enabled by using the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-w\fRand \fB\-W\fR switches. Warnings may be captured by setting \f(CW$SIG{_\|_WARN_\|_}\fRto a reference to a routine that will be called on each warning insteadof printing it. See perlvar..PPSevere warnings are always enabled, unless they are explicitly disabledwith the \f(CW\*(C`warnings\*(C'\fR pragma or the \fB\-X\fR switch..PPTrappable errors may be trapped using the eval operator. See\&\*(L"eval\*(R" in perlfunc. In almost all cases, warnings may be selectivelydisabled or promoted to fatal errors using the \f(CW\*(C`warnings\*(C'\fR pragma.See warnings..PPThe messages are in alphabetical order, without regard to upper orlower-case. Some of these messages are generic. Spots that vary aredenoted with a \f(CW%s\fR or other printf-style escape. These escapes areignored by the alphabetical order, as are all characters other thanletters. To look up your message, just ignore anything that is not aletter..ie n .IP "\fIaccept()\fR on closed socket %s" 4.el .IP "\fIaccept()\fR on closed socket \f(CW%s\fR" 4.IX Item "accept() on closed socket %s"(W closed) You tried to do an accept on a closed socket. Did you forgetto check the return value of your \fIsocket()\fR call? See\&\*(L"accept\*(R" in perlfunc..ie n .IP "Allocation too large: %lx" 4.el .IP "Allocation too large: \f(CW%lx\fR" 4.IX Item "Allocation too large: %lx"(X) You can't allocate more than 64K on an MS-DOS machine..ie n .IP "'%c' allowed only after types %s" 4.el .IP "'%c' allowed only after types \f(CW%s\fR" 4.IX Item "'%c' allowed only after types %s"(F) The modifiers '!', '<' and '>' are allowed in \fIpack()\fR or \fIunpack()\fR onlyafter certain types. See \*(L"pack\*(R" in perlfunc..IP "Ambiguous call resolved as CORE::%s(), qualify as such or use &" 4.IX Item "Ambiguous call resolved as CORE::%s(), qualify as such or use &"(W ambiguous) A subroutine you have declared has the same name as a Perlkeyword, and you have used the name without qualification for callingone or the other. Perl decided to call the builtin because thesubroutine is not imported..SpTo force interpretation as a subroutine call, either put an ampersandbefore the subroutine name, or qualify the name with its package.Alternatively, you can import the subroutine (or pretend that it'simported with the \f(CW\*(C`use subs\*(C'\fR pragma)..SpTo silently interpret it as the Perl operator, use the \f(CW\*(C`CORE::\*(C'\fR prefixon the operator (e.g. \f(CW\*(C`CORE::log($x)\*(C'\fR) or declare the subroutineto be an object method (see \*(L"Subroutine Attributes\*(R" in perlsub orattributes)..IP "Ambiguous range in transliteration operator" 4.IX Item "Ambiguous range in transliteration operator"(F) You wrote something like \f(CW\*(C`tr/a\-z\-0//\*(C'\fR which doesn't mean anything atall. To include a \f(CW\*(C`\-\*(C'\fR character in a transliteration, put it eitherfirst or last. (In the past, \f(CW\*(C`tr/a\-z\-0//\*(C'\fR was synonymous with\&\f(CW\*(C`tr/a\-y//\*(C'\fR, which was probably not what you would have expected.).ie n .IP "Ambiguous use of %s\fR resolved as \f(CW%s" 4.el .IP "Ambiguous use of \f(CW%s\fR resolved as \f(CW%s\fR" 4.IX Item "Ambiguous use of %s resolved as %s"(W ambiguous)(S) You said something that may not be interpreted the wayyou thought. Normally it's pretty easy to disambiguate it by supplyinga missing quote, operator, parenthesis pair or declaration..IP "'|' and '<' may not both be specified on command line" 4.IX Item "'|' and '<' may not both be specified on command line"(F) An error peculiar to \s-1VMS\s0. Perl does its own command lineredirection, and found that \s-1STDIN\s0 was a pipe, and that you also tried toredirect \s-1STDIN\s0 using '<'. Only one \s-1STDIN\s0 stream to a customer, please..IP "'|' and '>' may not both be specified on command line" 4.IX Item "'|' and '>' may not both be specified on command line"(F) An error peculiar to \s-1VMS\s0. Perl does its own command lineredirection, and thinks you tried to redirect stdout both to a file andinto a pipe to another command. You need to choose one or the other,though nothing's stopping you from piping into a program or Perl scriptwhich 'splits' output into two streams, such as.Sp.Vb 6\& open(OUT,">$ARGV[0]") or die "Can\*(Aqt write to $ARGV[0]: $!";\& while (<STDIN>) {\& print;\& print OUT;\& }\& close OUT;.Ve.ie n .IP "Applying %s\fR to \f(CW%s will act on scalar(%s)" 4.el .IP "Applying \f(CW%s\fR to \f(CW%s\fR will act on scalar(%s)" 4.IX Item "Applying %s to %s will act on scalar(%s)"(W misc) The pattern match (\f(CW\*(C`//\*(C'\fR), substitution (\f(CW\*(C`s///\*(C'\fR), andtransliteration (\f(CW\*(C`tr///\*(C'\fR) operators work on scalar values. If you applyone of them to an array or a hash, it will convert the array or hash toa scalar value \*(-- the length of an array, or the population info of ahash \*(-- and then work on that scalar value. This is probably not whatyou meant to do. See \*(L"grep\*(R" in perlfunc and \*(L"map\*(R" in perlfunc foralternatives..IP "Args must match #! line" 4.IX Item "Args must match #! line"(F) The setuid emulator requires that the arguments Perl was invokedwith match the arguments specified on the #! line. Since some systems
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -