⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perlrun.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 4 页
字号:
Enables all warnings regardless of \f(CW\*(C`no warnings\*(C'\fR or \f(CW$^W\fR.See perllexwarn..IP "\fB\-X\fR" 5.IX Xref "-X".IX Item "-X"Disables all warnings regardless of \f(CW\*(C`use warnings\*(C'\fR or \f(CW$^W\fR.See perllexwarn..IP "\fB\-x\fR" 5.IX Xref "-x".IX Item "-x".PD 0.IP "\fB\-x\fR\fIdirectory\fR" 5.IX Item "-xdirectory".PDtells Perl that the program is embedded in a larger chunk of unrelated\&\s-1ASCII\s0 text, such as in a mail message.  Leading garbage will bediscarded until the first line that starts with #! and contains thestring \*(L"perl\*(R".  Any meaningful switches on that line will be applied.If a directory name is specified, Perl will switch to that directorybefore running the program.  The \fB\-x\fR switch controls only thedisposal of leading garbage.  The program must be terminated with\&\f(CW\*(C`_\|_END_\|_\*(C'\fR if there is trailing garbage to be ignored (the programcan process any or all of the trailing garbage via the \s-1DATA\s0 filehandleif desired)..SpThe directory, if specified, must appear immediately following the \fB\-x\fRwith no intervening whitespace..SH "ENVIRONMENT".IX Xref "perl, environment variables".IX Header "ENVIRONMENT".IP "\s-1HOME\s0" 12.IX Xref "HOME".IX Item "HOME"Used if chdir has no argument..IP "\s-1LOGDIR\s0" 12.IX Xref "LOGDIR".IX Item "LOGDIR"Used if chdir has no argument and \s-1HOME\s0 is not set..IP "\s-1PATH\s0" 12.IX Xref "PATH".IX Item "PATH"Used in executing subprocesses, and in finding the program if \fB\-S\fR isused..IP "\s-1PERL5LIB\s0" 12.IX Xref "PERL5LIB".IX Item "PERL5LIB"A list of directories in which to look for Perl libraryfiles before looking in the standard library and the currentdirectory.  Any architecture-specific directories under the specifiedlocations are automatically included if they exist (this lookupbeing done at interpreter startup time.).SpIf \s-1PERL5LIB\s0 is not defined, \s-1PERLLIB\s0 is used.  Directories are separated(like in \s-1PATH\s0) by a colon on unixish platforms and by a semicolon onWindows (the proper path separator being given by the command \f(CW\*(C`perl\&\-V:path_sep\*(C'\fR)..SpWhen running taint checks (either because the program was running setuidor setgid, or the \fB\-T\fR or \fB\-t\fR switch was specified), neither variableis used. The program should instead say:.Sp.Vb 1\&    use lib "/my/directory";.Ve.IP "\s-1PERL5OPT\s0" 12.IX Xref "PERL5OPT".IX Item "PERL5OPT"Command-line options (switches).  Switches in this variable are takenas if they were on every Perl command line.  Only the \fB\-[CDIMUdmtw]\fRswitches are allowed.  When running taint checks (because the programwas running setuid or setgid, or the \fB\-T\fR switch was used), thisvariable is ignored.  If \s-1PERL5OPT\s0 begins with \fB\-T\fR, tainting will beenabled, and any subsequent options ignored..IP "\s-1PERLIO\s0" 12.IX Xref "PERLIO".IX Item "PERLIO"A space (or colon) separated list of PerlIO layers. If perl is builtto use PerlIO system for \s-1IO\s0 (the default) these layers effect perl's \s-1IO\s0..SpIt is conventional to start layer names with a colon e.g. \f(CW\*(C`:perlio\*(C'\fR toemphasise their similarity to variable \*(L"attributes\*(R". But the code that parseslayer specification strings (which is also used to decode the \s-1PERLIO\s0environment variable) treats the colon as a separator..SpAn unset or empty \s-1PERLIO\s0 is equivalent to the default set of layers foryour platform, for example \f(CW\*(C`:unix:perlio\*(C'\fR on UNIX-like systemsand \f(CW\*(C`:unix:crlf\*(C'\fR on Windows and other DOS-like systems..SpThe list becomes the default for \fIall\fR perl's \s-1IO\s0. Consequently only built-inlayers can appear in this list, as external layers (such as :\fIencoding()\fR) need\&\s-1IO\s0 in  order to load them!. See \*(L"open pragma\*(R" for how to add externalencodings as defaults..SpThe layers that it makes sense to include in the \s-1PERLIO\s0 environmentvariable are briefly summarised below. For more details see PerlIO..RS 12.IP ":bytes" 8.IX Xref ":bytes".IX Item ":bytes"A pseudolayer that turns \fIoff\fR the \f(CW\*(C`:utf8\*(C'\fR flag for the layer below.Unlikely to be useful on its own in the global \s-1PERLIO\s0 environment variable.You perhaps were thinking of \f(CW\*(C`:crlf:bytes\*(C'\fR or \f(CW\*(C`:perlio:bytes\*(C'\fR..IP ":crlf" 8.IX Xref ":crlf".IX Item ":crlf"A layer which does \s-1CRLF\s0 to \*(L"\en\*(R" translation distinguishing \*(L"text\*(R" and\&\*(L"binary\*(R" files in the manner of MS-DOS and similar operating systems.(It currently does \fInot\fR mimic MS-DOS as far as treating of Control-Zas being an end-of-file marker.).IP ":mmap" 8.IX Xref ":mmap".IX Item ":mmap"A layer which implements \*(L"reading\*(R" of files by using \f(CW\*(C`mmap()\*(C'\fR tomake (whole) file appear in the process's address space, and thenusing that as PerlIO's \*(L"buffer\*(R"..IP ":perlio" 8.IX Xref ":perlio".IX Item ":perlio"This is a re-implementation of \*(L"stdio-like\*(R" buffering written as aPerlIO \*(L"layer\*(R".  As such it will call whatever layer is below it forits operations (typically \f(CW\*(C`:unix\*(C'\fR)..IP ":pop" 8.IX Xref ":pop".IX Item ":pop"An experimental pseudolayer that removes the topmost layer.Use with the same care as is reserved for nitroglycerin..IP ":raw" 8.IX Xref ":raw".IX Item ":raw"A pseudolayer that manipulates other layers.  Applying the \f(CW\*(C`:raw\*(C'\fRlayer is equivalent to calling \f(CW\*(C`binmode($fh)\*(C'\fR.  It makes the streampass each byte as-is without any translation.  In particular \s-1CRLF\s0translation, and/or :utf8 intuited from locale are disabled..SpUnlike in the earlier versions of Perl \f(CW\*(C`:raw\*(C'\fR is \fInot\fRjust the inverse of \f(CW\*(C`:crlf\*(C'\fR \- other layers which would affect thebinary nature of the stream are also removed or disabled..IP ":stdio" 8.IX Xref ":stdio".IX Item ":stdio"This layer provides PerlIO interface by wrapping system's \s-1ANSI\s0 C \*(L"stdio\*(R"library calls. The layer provides both buffering and \s-1IO\s0.Note that \f(CW\*(C`:stdio\*(C'\fR layer does \fInot\fR do \s-1CRLF\s0 translation even if thatis platforms normal behaviour. You will need a \f(CW\*(C`:crlf\*(C'\fR layer above itto do that..IP ":unix" 8.IX Xref ":unix".IX Item ":unix"Low level layer which calls \f(CW\*(C`read\*(C'\fR, \f(CW\*(C`write\*(C'\fR and \f(CW\*(C`lseek\*(C'\fR etc..IP ":utf8" 8.IX Xref ":utf8".IX Item ":utf8"A pseudolayer that turns on a flag on the layer below to tell perlthat output should be in utf8 and that input should be regarded asalready in valid utf8 form. It does not check for validity and as suchshould be handled with caution for input. Generally \f(CW\*(C`:encoding(utf8)\*(C'\fR isthe best option when reading \s-1UTF\-8\s0 encoded data..IP ":win32" 8.IX Xref ":win32".IX Item ":win32"On Win32 platforms this \fIexperimental\fR layer uses native \*(L"handle\*(R" \s-1IO\s0rather than unix-like numeric file descriptor layer. Known to bebuggy in this release..RE.RS 12.SpOn all platforms the default set of layers should give acceptable results..SpFor \s-1UNIX\s0 platforms that will equivalent of \*(L"unix perlio\*(R" or \*(L"stdio\*(R".Configure is setup to prefer \*(L"stdio\*(R" implementation if system's libraryprovides for fast access to the buffer, otherwise it uses the \*(L"unix perlio\*(R"implementation..SpOn Win32 the default in this release is \*(L"unix crlf\*(R". Win32's \*(L"stdio\*(R"has a number of bugs/mis\-features for perl \s-1IO\s0 which are somewhatC compiler vendor/version dependent. Using our own \f(CW\*(C`crlf\*(C'\fR layer asthe buffer avoids those issues and makes things more uniform.The \f(CW\*(C`crlf\*(C'\fR layer provides \s-1CRLF\s0 to/from \*(L"\en\*(R" conversion as well asbuffering..SpThis release uses \f(CW\*(C`unix\*(C'\fR as the bottom layer on Win32 and so still uses Ccompiler's numeric file descriptor routines. There is an experimental native\&\f(CW\*(C`win32\*(C'\fR layer which is expected to be enhanced and should eventually bethe default under Win32..RE.IP "\s-1PERLIO_DEBUG\s0" 12.IX Xref "PERLIO_DEBUG".IX Item "PERLIO_DEBUG"If set to the name of a file or device then certain operations of PerlIOsub-system will be logged to that file (opened as append). Typical usesare \s-1UNIX:\s0.Sp.Vb 1\&   PERLIO_DEBUG=/dev/tty perl script ....Ve.Spand Win32 approximate equivalent:.Sp.Vb 2\&   set PERLIO_DEBUG=CON\&   perl script ....Ve.SpThis functionality is disabled for setuid scripts and for scripts runwith \fB\-T\fR..IP "\s-1PERLLIB\s0" 12.IX Xref "PERLLIB".IX Item "PERLLIB"A list of directories in which to look for Perl libraryfiles before looking in the standard library and the current directory.If \s-1PERL5LIB\s0 is defined, \s-1PERLLIB\s0 is not used..IP "\s-1PERL5DB\s0" 12.IX Xref "PERL5DB".IX Item "PERL5DB"The command used to load the debugger code.  The default is:.Sp.Vb 1\&        BEGIN { require \*(Aqperl5db.pl\*(Aq }.Ve.IP "\s-1PERL5DB_THREADED\s0" 12.IX Xref "PERL5DB_THREADED".IX Item "PERL5DB_THREADED"If set to a true value, indicates to the debugger that the code beingdebugged uses threads..IP "\s-1PERL5SHELL\s0 (specific to the Win32 port)" 12.IX Xref "PERL5SHELL".IX Item "PERL5SHELL (specific to the Win32 port)"May be set to an alternative shell that perl must use internally forexecuting \*(L"backtick\*(R" commands or \fIsystem()\fR.  Default is \f(CW\*(C`cmd.exe /x/d/c\*(C'\fRon WindowsNT and \f(CW\*(C`command.com /c\*(C'\fR on Windows95.  The value is consideredto be space-separated.  Precede any character that needs to be protected(like a space or backslash) with a backslash..SpNote that Perl doesn't use \s-1COMSPEC\s0 for this purpose because\&\s-1COMSPEC\s0 has a high degree of variability among users, leading toportability concerns.  Besides, perl can use a shell that may not befit for interactive use, and setting \s-1COMSPEC\s0 to such a shell mayinterfere with the proper functioning of other programs (which usuallylook in \s-1COMSPEC\s0 to find a shell fit for interactive use)..IP "\s-1PERL_ALLOW_NON_IFS_LSP\s0 (specific to the Win32 port)" 12.IX Xref "PERL_ALLOW_NON_IFS_LSP".IX Item "PERL_ALLOW_NON_IFS_LSP (specific to the Win32 port)"Set to 1 to allow the use of non-IFS compatible \s-1LSP\s0's.Perl normally searches for an IFS-compatible \s-1LSP\s0 because this is requiredfor its emulation of Windows sockets as real filehandles.  However, this maycause problems if you have a firewall such as McAfee Guardian which requiresall applications to use its \s-1LSP\s0 which is not IFS-compatible, because clearlyPerl will normally avoid using such an \s-1LSP\s0.Setting this environment variable to 1 means that Perl will simply use thefirst suitable \s-1LSP\s0 enumerated in the catalog, which keeps McAfee Guardianhappy (and in that particular case Perl still works too because McAfeeGuardian's \s-1LSP\s0 actually plays some other games which allow applicationsrequiring \s-1IFS\s0 compatibility to work)..IP "\s-1PERL_DEBUG_MSTATS\s0" 12.IX Xref "PERL_DEBUG_MSTATS".IX Item "PERL_DEBUG_MSTATS"Relevant only if perl is compiled with the malloc included with the perldistribution (that is, if \f(CW\*(C`perl \-V:d_mymalloc\*(C'\fR is 'define').If set, this causes memory statistics to be dumped after execution.  If setto an integer greater than one, also causes memory statistics to be dumpedafter compilation..IP "\s-1PERL_DESTRUCT_LEVEL\s0" 12.IX Xref "PERL_DESTRUCT_LEVEL".IX Item "PERL_DESTRUCT_LEVEL"Relevant only if your perl executable was built with \fB\-DDEBUGGING\fR,this controls the behavior of global destruction of objects and otherreferences.  See \*(L"\s-1PERL_DESTRUCT_LEVEL\s0\*(R" in perlhack for more information..IP "\s-1PERL_DL_NONLAZY\s0" 12.IX Xref "PERL_DL_NONLAZY".IX Item "PERL_DL_NONLAZY"Set to one to have perl resolve \fBall\fR undefined symbols when it loadsa dynamic library.  The default behaviour is to resolve symbols whenthey are used.  Setting this variable is useful during testing ofextensions as it ensures that you get an error on misspelled functionnames even if the test suite doesn't call it..IP "\s-1PERL_ENCODING\s0" 12.IX Xref "PERL_ENCODING".IX Item "PERL_ENCODING"If using the \f(CW\*(C`encoding\*(C'\fR pragma without an explicit encoding name, the\&\s-1PERL_ENCODING\s0 environment variable is consulted for an encoding name..IP "\s-1PERL_HASH_SEED\s0" 12.IX Xref "PERL_HASH_SEED".IX Item "PERL_HASH_SEED"(Since Perl 5.8.1.)  Used to randomise perl's internal hash function.To emulate the pre\-5.8.1 behaviour, set to an integer (zero meansexactly the same order as 5.8.0).  \*(L"Pre\-5.8.1\*(R" means, among otherthings, that hash keys will always have the same ordering betweendifferent runs of perl..SpMost hashes return elements in the same order as Perl 5.8.0 by default.On a hash by hash basis, if pathological data is detected during a hashkey insertion, then that hash will switch to an alternative random hashseed..SpThe default behaviour is to randomise unless the \s-1PERL_HASH_SEED\s0 is set.If perl has been compiled with \f(CW\*(C`\-DUSE_HASH_SEED_EXPLICIT\*(C'\fR, the defaultbehaviour is \fBnot\fR to randomise unless the \s-1PERL_HASH_SEED\s0 is set..SpIf \s-1PERL_HASH_SEED\s0 is unset or set to a non-numeric string, perl usesthe pseudorandom seed supplied by the operating system and libraries..Sp\&\fBPlease note that the hash seed is sensitive information\fR. Hashes arerandomized to protect against local and remote attacks against Perlcode. By manually setting a seed this protection may be partially orcompletely lost..SpSee \*(L"Algorithmic Complexity Attacks\*(R" in perlsec and\&\*(L"\s-1PERL_HASH_SEED_DEBUG\s0\*(R" for more information..IP "\s-1PERL_HASH_SEED_DEBUG\s0" 12.IX Xref "PERL_HASH_SEED_DEBUG".IX Item "PERL_HASH_SEED_DEBUG"(Since Perl 5.8.1.)  Set to one to display (to \s-1STDERR\s0) the value ofthe hash seed at the beginning of execution.  This, combined with\&\*(L"\s-1PERL_HASH_SEED\s0\*(R" is intended to aid in debugging nondeterministicbehavior caused by hash randomization..Sp\&\fBNote that the hash seed is sensitive information\fR: by knowing it onecan craft a denial-of-service attack against Perl code, even remotely,see \*(L"Algorithmic Complexity Attacks\*(R" in perlsec for more information.\&\fBDo not disclose the hash seed\fR to people who don't need to know it.See also \fIhash_seed()\fR of Hash::Util..IP "\s-1PERL_ROOT\s0 (specific to the \s-1VMS\s0 port)" 12.IX Xref "PERL_ROOT".IX Item "PERL_ROOT (specific to the VMS port)"A translation concealed rooted logical name that contains perl and thelogical device for the \f(CW@INC\fR path on \s-1VMS\s0 only.  Other logical names thataffect perl on \s-1VMS\s0 include \s-1PERLSHR\s0, \s-1PERL_ENV_TABLES\s0, and\&\s-1SYS$TIMEZONE_DIFFERENTIAL\s0 but are optional and discussed further inperlvms and in \fI\s-1README\s0.vms\fR in the Perl source distribution..IP "\s-1PERL_SIGNALS\s0" 12.IX Xref "PERL_SIGNALS".IX Item "PERL_SIGNALS"In Perls 5.8.1 and later.  If set to \f(CW\*(C`unsafe\*(C'\fR the pre\-Perl\-5.8.0signals behaviour (immediate but unsafe) is restored.  If set to\&\f(CW\*(C`safe\*(C'\fR the safe (or deferred) signals are used.See \*(L"Deferred Signals (Safe Signals)\*(R" in perlipc..IP "\s-1PERL_UNICODE\s0" 12.IX Xref "PERL_UNICODE".IX Item "PERL_UNICODE"Equivalent to the \fB\-C\fR command-line switch.  Note that this is nota boolean variable\*(-- setting this to \f(CW"1"\fR is not the right way to\&\*(L"enable Unicode\*(R" (whatever that would mean).  You can use \f(CW"0"\fR to\&\*(L"disable Unicode\*(R", though (or alternatively unset \s-1PERL_UNICODE\s0 inyour shell before starting Perl).  See the description of the \f(CW\*(C`\-C\*(C'\fRswitch for more information..IP "\s-1SYS$LOGIN\s0 (specific to the \s-1VMS\s0 port)" 12.IX Xref "SYS$LOGIN".IX Item "SYS$LOGIN (specific to the VMS port)"Used if chdir has no argument and \s-1HOME\s0 and \s-1LOGDIR\s0 are not set..PPPerl also has environment variables that control how Perl handles dataspecific to particular natural languages.  See perllocale..PPApart from these, Perl uses no other environment variables, exceptto make them available to the program being executed, and to childprocesses.  However, programs running setuid would do well to executethe following lines before doing anything else, just to keep peoplehonest:.PP.Vb 3\&    $ENV{PATH}  = \*(Aq/bin:/usr/bin\*(Aq;    # or whatever you need\&    $ENV{SHELL} = \*(Aq/bin/sh\*(Aq if exists $ENV{SHELL};\&    delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};.Ve

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -