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

📄 perl5100delta.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 5 页
字号:
had been used as a literal, meaning that code that uses char-classes as anescaping mechanism will see a speedup. (Yves Orton).IP "Trie optimisation of literal string alternations" 4.IX Item "Trie optimisation of literal string alternations"Alternations, where possible, are optimised into more efficient matchingstructures. String literal alternations are merged into a trie and arematched simultaneously.  This means that instead of O(N) time for matchingN alternations at a given point, the new code performs in O(1) time.A new special variable, ${^RE_TRIE_MAXBUF}, has been added to fine-tunethis optimization. (Yves Orton).Sp\&\fBNote:\fR Much code exists that works around perl's historic poorperformance on alternations. Often the tricks used to do so will disablethe new optimisations. Hopefully the utility modules used for this purposewill be educated about these new optimisations..IP "Aho-Corasick start-point optimisation" 4.IX Item "Aho-Corasick start-point optimisation"When a pattern starts with a trie-able alternation and there aren'tbetter optimisations available, the regex engine will use Aho-Corasickmatching to find the start point. (Yves Orton).SH "Installation and Configuration Improvements".IX Header "Installation and Configuration Improvements".Sh "Configuration improvements".IX Subsection "Configuration improvements".ie n .IP """\-Dusesitecustomize""" 4.el .IP "\f(CW\-Dusesitecustomize\fR" 4.IX Item "-Dusesitecustomize"Run-time customization of \f(CW@INC\fR can be enabled by passing the\&\f(CW\*(C`\-Dusesitecustomize\*(C'\fR flag to Configure. When enabled, this will make perlrun \fI\f(CI$sitelibexp\fI/sitecustomize.pl\fR before anything else.  This script canthen be set up to add additional entries to \f(CW@INC\fR..IP "Relocatable installations" 4.IX Item "Relocatable installations"There is now Configure support for creating a relocatable perl tree. Ifyou Configure with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR, then the paths in \f(CW@INC\fR (andeverything else in \f(CW%Config\fR) can be optionally located via the path of theperl executable..SpThat means that, if the string \f(CW".../"\fR is found at the start of anypath, it's substituted with the directory of $^X. So, the relocation canbe configured on a per-directory basis, although the default with\&\f(CW\*(C`\-Duserelocatableinc\*(C'\fR is that everything is relocated. The initialinstall is done to the original configured prefix..IP "\fIstrlcat()\fR and \fIstrlcpy()\fR" 4.IX Item "strlcat() and strlcpy()"The configuration process now detects whether \fIstrlcat()\fR and \fIstrlcpy()\fR areavailable.  When they are not available, perl's own version is used (fromRuss Allbery's public domain implementation).  Various places in the perlinterpreter now use them. (Steve Peters).ie n .IP """d_pseudofork""\fR and \f(CW""d_printf_format_null""" 4.el .IP "\f(CWd_pseudofork\fR and \f(CWd_printf_format_null\fR" 4.IX Item "d_pseudofork and d_printf_format_null"A new configuration variable, available as \f(CW$Config{d_pseudofork}\fR inthe Config module, has been added, to distinguish real \fIfork()\fR supportfrom fake pseudofork used on Windows platforms..SpA new configuration variable, \f(CW\*(C`d_printf_format_null\*(C'\fR, has been added, to see if printf-like formats are allowed to be \s-1NULL\s0..IP "Configure help" 4.IX Item "Configure help"\&\f(CW\*(C`Configure \-h\*(C'\fR has been extended with the most commonly used options..Sh "Compilation improvements".IX Subsection "Compilation improvements".IP "Parallel build" 4.IX Item "Parallel build"Parallel makes should work properly now, although there may still be problemsif \f(CW\*(C`make test\*(C'\fR is instructed to run in parallel..IP "Borland's compilers support" 4.IX Item "Borland's compilers support"Building with Borland's compilers on Win32 should work more smoothly. Inparticular Steve Hay has worked to side step many warnings emitted by theircompilers and at least one C compiler internal error..IP "Static build on Windows" 4.IX Item "Static build on Windows"Perl extensions on Windows now can be statically built into the Perl \s-1DLL\s0..SpAlso, it's now possible to build a \f(CW\*(C`perl\-static.exe\*(C'\fR that doesn't dependon the Perl \s-1DLL\s0 on Win32. See the Win32 makefiles for details.(Vadim Konovalov).IP "ppport.h files" 4.IX Item "ppport.h files"All \fIppport.h\fR files in the \s-1XS\s0 modules bundled with perl are nowautogenerated at build time. (Marcus Holland-Moritz).IP "\*(C+ compatibility" 4.IX Item " compatibility"Efforts have been made to make perl and the core \s-1XS\s0 modules compilablewith various \*(C+ compilers (although the situation is not perfect withsome of the compilers on some of the platforms tested.).IP "Support for Microsoft 64\-bit compiler" 4.IX Item "Support for Microsoft 64-bit compiler"Support for building perl with Microsoft's 64\-bit compiler has beenimproved. (ActiveState).IP "Visual \*(C+" 4.IX Item "Visual "Perl can now be compiled with Microsoft Visual \*(C+ 2005 (and 2008 Beta 2)..IP "Win32 builds" 4.IX Item "Win32 builds"All win32 builds (MS-Win, WinCE) have been merged and cleaned up..Sh "Installation improvements".IX Subsection "Installation improvements".IP "Module auxiliary files" 4.IX Item "Module auxiliary files"\&\s-1README\s0 files and changelogs for \s-1CPAN\s0 modules bundled with perl are nolonger installed..Sh "New Or Improved Platforms".IX Subsection "New Or Improved Platforms"Perl has been reported to work on Symbian \s-1OS\s0. See perlsymbian for moreinformation..PPMany improvements have been made towards making Perl work correctly onz/OS..PPPerl has been reported to work on DragonFlyBSD and MidnightBSD..PPPerl has also been reported to work on NexentaOS( http://www.gnusolaris.org/ )..PPThe \s-1VMS\s0 port has been improved. See perlvms..PPSupport for Cray \s-1XT4\s0 Catamount/Qk has been added. See\&\fIhints/catamount.sh\fR in the source code distribution for moreinformation..PPVendor patches have been merged for RedHat and Gentoo..PP\&\fIDynaLoader::dl_unload_file()\fR now works on Windows..SH "Selected Bug Fixes".IX Header "Selected Bug Fixes".IP "strictures in regexp-eval blocks" 4.IX Item "strictures in regexp-eval blocks"\&\f(CW\*(C`strict\*(C'\fR wasn't in effect in regexp-eval blocks (\f(CW\*(C`/(?{...})/\*(C'\fR)..IP "Calling \fICORE::require()\fR" 4.IX Item "Calling CORE::require()"\&\fICORE::require()\fR and \fICORE::do()\fR were always parsed as \fIrequire()\fR and \fIdo()\fRwhen they were overridden. This is now fixed..IP "Subscripts of slices" 4.IX Item "Subscripts of slices"You can now use a non-arrowed form for chained subscripts after a listslice, like in:.Sp.Vb 1\&    ({foo => "bar"})[0]{foo}.Ve.SpThis used to be a syntax error; a \f(CW\*(C`\->\*(C'\fR was required..ie n .IP """no warnings \*(Aqcategory\*(Aq"" works correctly with \-w" 4.el .IP "\f(CWno warnings \*(Aqcategory\*(Aq\fR works correctly with \-w" 4.IX Item "no warnings category works correctly with -w"Previously when running with warnings enabled globally via \f(CW\*(C`\-w\*(C'\fR, selectivedisabling of specific warning categories would actually turn off all warnings.This is now fixed; now \f(CW\*(C`no warnings \*(Aqio\*(Aq;\*(C'\fR will only turn off warnings in the\&\f(CW\*(C`io\*(C'\fR class. Previously it would erroneously turn off all warnings..IP "threads improvements" 4.IX Item "threads improvements"Several memory leaks in ithreads were closed. Also, ithreads were madeless memory-intensive..Sp\&\f(CW\*(C`threads\*(C'\fR is now a dual-life module, also available on \s-1CPAN\s0. It has beenexpanded in many ways. A \fIkill()\fR method is available for thread signalling.One can get thread status, or the list of running or joinable threads..SpA new \f(CW\*(C`threads\->exit()\*(C'\fR method is used to exit from the application(this is the default for the main thread) or from the current thread only(this is the default for all other threads). On the other hand, the \fIexit()\fRbuilt-in now always causes the whole application to terminate. (JerryD. Hedden).IP "\fIchr()\fR and negative values" 4.IX Item "chr() and negative values"\&\fIchr()\fR on a negative value now gives \f(CW\*(C`\ex{FFFD}\*(C'\fR, the Unicode replacementcharacter, unless when the \f(CW\*(C`bytes\*(C'\fR pragma is in effect, where the loweight bits of the value are used..IP "\s-1PERL5SHELL\s0 and tainting" 4.IX Item "PERL5SHELL and tainting"On Windows, the \s-1PERL5SHELL\s0 environment variable is now checked fortaintedness. (Rafael Garcia-Suarez).IP "Using *FILE{\s-1IO\s0}" 4.IX Item "Using *FILE{IO}"\&\f(CW\*(C`stat()\*(C'\fR and \f(CW\*(C`\-X\*(C'\fR filetests now treat *FILE{\s-1IO\s0} filehandles like *FILEfilehandles. (Steve Peters).IP "Overloading and reblessing" 4.IX Item "Overloading and reblessing"Overloading now works when references are reblessed into another class.Internally, this has been implemented by moving the flag for \*(L"overloading\*(R"from the reference to the referent, which logically is where it shouldalways have been. (Nicholas Clark).IP "Overloading and \s-1UTF\-8\s0" 4.IX Item "Overloading and UTF-8"A few bugs related to \s-1UTF\-8\s0 handling with objects that havestringification overloaded have been fixed. (Nicholas Clark).IP "eval memory leaks fixed" 4.IX Item "eval memory leaks fixed"Traditionally, \f(CW\*(C`eval \*(Aqsyntax error\*(Aq\*(C'\fR has leaked badly. Many (but not all)of these leaks have now been eliminated or reduced. (Dave Mitchell).IP "Random device on Windows" 4.IX Item "Random device on Windows"In previous versions, perl would read the file \fI/dev/urandom\fR if itexisted when seeding its random number generator.  That file is unlikelyto exist on Windows, and if it did would probably not contain appropriatedata, so perl no longer tries to read it on Windows. (Alex Davies).IP "\s-1PERLIO_DEBUG\s0" 4.IX Item "PERLIO_DEBUG"The \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable no longer has any effect forsetuid scripts and for scripts run with \fB\-T\fR..SpMoreover, with a thread-enabled perl, using \f(CW\*(C`PERLIO_DEBUG\*(C'\fR could lead toan internal buffer overflow. This has been fixed..IP "PerlIO::scalar and read-only scalars" 4.IX Item "PerlIO::scalar and read-only scalars"PerlIO::scalar will now prevent writing to read-only scalars. Moreover,\&\fIseek()\fR is now supported with PerlIO::scalar\-based filehandles, theunderlying string being zero-filled as needed. (Rafael, Jarkko Hietaniemi).IP "\fIstudy()\fR and \s-1UTF\-8\s0" 4.IX Item "study() and UTF-8"\&\fIstudy()\fR never worked for \s-1UTF\-8\s0 strings, but could lead to false results.It's now a no-op on \s-1UTF\-8\s0 data. (Yves Orton).IP "Critical signals" 4.IX Item "Critical signals"The signals \s-1SIGILL\s0, \s-1SIGBUS\s0 and \s-1SIGSEGV\s0 are now always delivered in an\&\*(L"unsafe\*(R" manner (contrary to other signals, that are deferred until theperl interpreter reaches a reasonably stable state; see\&\*(L"Deferred Signals (Safe Signals)\*(R" in perlipc). (Rafael).ie n .IP "@INC\-hook fix" 4.el .IP "\f(CW@INC\fR\-hook fix" 4.IX Item "@INC-hook fix"When a module or a file is loaded through an \f(CW@INC\fR\-hook, and when this hookhas set a filename entry in \f(CW%INC\fR, _\|_FILE_\|_ is now set for this moduleaccordingly to the contents of that \f(CW%INC\fR entry. (Rafael).ie n .IP """\-t"" switch fix" 4.el .IP "\f(CW\-t\fR switch fix" 4.IX Item "-t switch fix"The \f(CW\*(C`\-w\*(C'\fR and \f(CW\*(C`\-t\*(C'\fR switches can now be used together without messingup which categories of warnings are activated. (Rafael).IP "Duping \s-1UTF\-8\s0 filehandles" 4.IX Item "Duping UTF-8 filehandles"Duping a filehandle which has the \f(CW\*(C`:utf8\*(C'\fR PerlIO layer set will nowproperly carry that layer on the duped filehandle. (Rafael).IP "Localisation of hash elements" 4.IX Item "Localisation of hash elements"Localizing a hash element whose key was given as a variable didn't workcorrectly if the variable was changed while the \fIlocal()\fR was in effect (asin \f(CW\*(C`local $h{$x}; ++$x\*(C'\fR). (Bo Lindbergh).SH "New or Changed Diagnostics".IX Header "New or Changed Diagnostics".IP "Use of uninitialized value" 4.IX Item "Use of uninitialized value"Perl will now try to tell you the name of the variable (if any) that wasundefined..IP "Deprecated use of \fImy()\fR in false conditional" 4.IX Item "Deprecated use of my() in false conditional"A new deprecation warning, \fIDeprecated use of \fImy()\fI in false conditional\fR,has been added, to warn against the use of the dubious and deprecatedconstruct.Sp.Vb 1\&    my $x if 0;.Ve.SpSee perldiag. Use \f(CW\*(C`state\*(C'\fR variables instead..IP "!=~ should be !~" 4.IX Item "!=~ should be !~"A new warning, \f(CW\*(C`!=~ should be !~\*(C'\fR, is emitted to prevent this misspellingof the non-matching operator..IP "Newline in left-justified string" 4.IX Item "Newline in left-justified string"The warning \fINewline in left-justified string\fR has been removed..ie n .IP "Too late for ""\-T"" option" 4.el .IP "Too late for ``\-T'' option" 4.IX Item "Too late for -T option"The error \fIToo late for \*(L"\-T\*(R" option\fR has been reformulated to be moredescriptive..ie n .IP """%s"" variable %s masks earlier declaration" 4.el .IP "``%s'' variable \f(CW%s\fR masks earlier declaration" 4.IX Item "%s variable %s masks earlier declaration"This warning is now emitted in more consistent cases; in short, when oneof the declarations i

⌨️ 快捷键说明

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