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

📄 perl58delta.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 5 页
字号:
.IP "\(bu" 4File::Find is now (again) reentrant.  It also has been mademore portable..IP "\(bu" 4The warnings issued by File::Find now belong to their own category.You can enable/disable them with \f(CW\*(C`use/no warnings \*(AqFile::Find\*(Aq;\*(C'\fR..IP "\(bu" 4\&\fIFile::Glob::glob()\fR has been renamed to \fIFile::Glob::bsd_glob()\fRbecause the name clashes with the builtin \fIglob()\fR.  The oldername is still available for compatibility, but is deprecated. [561].IP "\(bu" 4File::Glob now supports \f(CW\*(C`GLOB_LIMIT\*(C'\fR constant to limit the size ofthe returned list of filenames..IP "\(bu" 4IPC::Open3 now allows the use of numeric file descriptors..IP "\(bu" 4IO::Socket now has an \fIatmark()\fR method, which returns true if the socketis positioned at the out-of-band mark.  The method is also exportableas a \fIsockatmark()\fR function..IP "\(bu" 4IO::Socket::INET failed to open the specified port if the service namewas not known.  It now correctly uses the supplied port number as is. [561].IP "\(bu" 4IO::Socket::INET has support for the ReusePort option (if yourplatform supports it).  The Reuse option now has an alias, ReuseAddr.For clarity, you may want to prefer ReuseAddr..IP "\(bu" 4IO::Socket::INET now supports a value of zero for \f(CW\*(C`LocalPort\*(C'\fR(usually meaning that the operating system will make one up.).IP "\(bu" 4\&'use lib' now works identically to \f(CW@INC\fR.  Removing directorieswith 'no lib' now works..IP "\(bu" 4Math::BigFloat and Math::BigInt have undergone a full rewrite by Tels.They are now magnitudes faster, and they support various bignumlibraries such as \s-1GMP\s0 and \s-1PARI\s0 as their backends..IP "\(bu" 4Math::Complex handles inf, NaN etc., better..IP "\(bu" 4Net::Ping has been considerably enhanced by Rob Brown: multihoming isnow supported, Win32 functionality is better, there is now timemeasuring functionality (optionally high-resolution usingTime::HiRes), and there is now \*(L"external\*(R" protocol which usesNet::Ping::External module which runs your external ping utility andparses the output.  A version of Net::Ping::External is available in\&\s-1CPAN\s0..SpNote that some of the Net::Ping tests are disabled when runningunder the Perl distribution since one cannot assume one or moreof the following: enabled echo port at localhost, full Internetconnectivity, or sympathetic firewalls.  You can set the environmentvariable PERL_TEST_Net_Ping to \*(L"1\*(R" (one) before running the Perl testsuite to enable all the Net::Ping tests..IP "\(bu" 4\&\fIPOSIX::sigaction()\fR is now much more flexible and robust.You can now install coderef handlers, '\s-1DEFAULT\s0', and '\s-1IGNORE\s0'handlers, installing new handlers was not atomic..IP "\(bu" 4In Safe, \f(CW%INC\fR is now localised in a Safe compartment so thatuse/require work..IP "\(bu" 4In SDBM_File on dosish platforms, some keys went missing because oflack of support for files with \*(L"holes\*(R".  A workaround for the problemhas been added..IP "\(bu" 4In Search::Dict one can now have a pre-processing hook for thelines being searched..IP "\(bu" 4The Shell module now has an \s-1OO\s0 interface..IP "\(bu" 4In Sys::Syslog there is now a failover mechanism that will gothrough alternative connection mechanisms until the messageis successfully logged..IP "\(bu" 4The Test module has been significantly enhanced..IP "\(bu" 4\&\fITime::Local::timelocal()\fR does not handle fractional seconds anymore.The rationale is that neither does \fIlocaltime()\fR, and \fItimelocal()\fR and\&\fIlocaltime()\fR are supposed to be inverses of each other..IP "\(bu" 4The vars pragma now supports declaring fully qualified variables.(Something that \f(CW\*(C`our()\*(C'\fR does not and will not support.).IP "\(bu" 4The \f(CW\*(C`utf8::\*(C'\fR name space (as in the pragma) provides variousPerl-callable functions to provide low level access to Perl'sinternal Unicode representation.  At the moment only \fIlength()\fRhas been implemented..SH "Utility Changes".IX Header "Utility Changes".IP "\(bu" 4Emacs perl mode (emacs/cperl\-mode.el) has been updated to version4.31..IP "\(bu" 4\&\fIemacs/e2ctags.pl\fR is now much faster..IP "\(bu" 4\&\f(CW\*(C`enc2xs\*(C'\fR is a tool for people adding their own encodings to theEncode module..IP "\(bu" 4\&\f(CW\*(C`h2ph\*(C'\fR now supports C trigraphs..IP "\(bu" 4\&\f(CW\*(C`h2xs\*(C'\fR now produces a template \s-1README\s0..IP "\(bu" 4\&\f(CW\*(C`h2xs\*(C'\fR now uses \f(CW\*(C`Devel::PPPort\*(C'\fR for better portability betweendifferent versions of Perl..IP "\(bu" 4\&\f(CW\*(C`h2xs\*(C'\fR uses the new ExtUtils::Constant modulewhich will affect newly created extensions that define constants.Since the new code is more correct (if you have two constants where thefirst one is a prefix of the second one, the first constant \fBnever\fRgot defined), less lossy (it uses integers for integer constant,as opposed to the old code that used floating point numbers even forinteger constants), and slightly faster, you might want to considerregenerating your extension code (the new scheme makes regeneratingeasy).  h2xs now also supports C trigraphs..IP "\(bu" 4\&\f(CW\*(C`libnetcfg\*(C'\fR has been added to configure libnet..IP "\(bu" 4\&\f(CW\*(C`perlbug\*(C'\fR is now much more robust.  It also sends the bug report toperl.org, not perl.com..IP "\(bu" 4\&\f(CW\*(C`perlcc\*(C'\fR has been rewritten and its user interface (that is,command line) is much more like that of the \s-1UNIX\s0 C compiler, cc.(The perlbc tools has been removed.  Use \f(CW\*(C`perlcc \-B\*(C'\fR instead.)\&\fBNote that perlcc is still considered very experimental andunsupported.\fR [561].IP "\(bu" 4\&\f(CW\*(C`perlivp\*(C'\fR is a new Installation Verification Procedure utilityfor running any time after installing Perl..IP "\(bu" 4\&\f(CW\*(C`piconv\*(C'\fR is an implementation of the character conversion utility\&\f(CW\*(C`iconv\*(C'\fR, demonstrating the new Encode module..IP "\(bu" 4\&\f(CW\*(C`pod2html\*(C'\fR now allows specifying a cache directory..IP "\(bu" 4\&\f(CW\*(C`pod2html\*(C'\fR now produces \s-1XHTML\s0 1.0..IP "\(bu" 4\&\f(CW\*(C`pod2html\*(C'\fR now understands \s-1POD\s0 written using different line endings(PC-like \s-1CRLF\s0 versus UNIX-like \s-1LF\s0 versus MacClassic-like \s-1CR\s0)..IP "\(bu" 4\&\f(CW\*(C`s2p\*(C'\fR has been completely rewritten in Perl.  (It is in fact a fullimplementation of sed in Perl: you can use the sed functionality byusing the \f(CW\*(C`psed\*(C'\fR utility.).IP "\(bu" 4\&\f(CW\*(C`xsubpp\*(C'\fR now understands \s-1POD\s0 documentation embedded in the *.xsfiles. [561].IP "\(bu" 4\&\f(CW\*(C`xsubpp\*(C'\fR now supports the \s-1OUT\s0 keyword..SH "New Documentation".IX Header "New Documentation".IP "\(bu" 4perl56delta details the changes between the 5.005 release and the5.6.0 release..IP "\(bu" 4perlclib documents the internal replacements for standard C libraryfunctions.  (Interesting only for extension writers and Perl corehackers.) [561+].IP "\(bu" 4perldebtut is a Perl debugging tutorial. [561+].IP "\(bu" 4perlebcdic contains considerations for running Perl on \s-1EBCDIC\s0platforms. [561+].IP "\(bu" 4perlintro is a gentle introduction to Perl..IP "\(bu" 4perliol documents the internals of PerlIO with layers..IP "\(bu" 4perlmodstyle is a style guide for writing modules..IP "\(bu" 4perlnewmod tells about writing and submitting a new module. [561+].IP "\(bu" 4perlpacktut is a \fIpack()\fR tutorial..IP "\(bu" 4perlpod has been rewritten to be clearer and to record the bestpractices gathered over the years..IP "\(bu" 4perlpodspec is a more formal specification of the pod format,mainly of interest for writers of pod applications, not topeople writing in pod..IP "\(bu" 4perlretut is a regular expression tutorial. [561+].IP "\(bu" 4perlrequick is a regular expressions quick-start guide.Yes, much quicker than perlretut. [561].IP "\(bu" 4perltodo has been updated..IP "\(bu" 4perltootc has been renamed as perltooc (to not to conflictwith perltoot in filesystems restricted to \*(L"8.3\*(R" names)..IP "\(bu" 4perluniintro is an introduction to using Unicode in Perl.(perlunicode is more of a detailed reference and backgroundinformation).IP "\(bu" 4perlutil explains the command line utilities packaged with the Perldistribution. [561+].PPThe following platform-specific documents are available beforethe installation as \s-1README\s0.\fIplatform\fR, and after the installationas perl\fIplatform\fR:.PP.Vb 5\&    perlaix perlamiga perlapollo perlbeos perlbs2000\&    perlce perlcygwin perldgux perldos perlepoc perlfreebsd perlhpux\&    perlhurd perlirix perlmachten perlmacos perlmint perlmpeix\&    perlnetware perlos2 perlos390 perlplan9 perlqnx perlsolaris\&    perltru64 perluts perlvmesa perlvms perlvos perlwin32.Ve.PPThese documents usually detail one or more of the following subjects:configuring, building, testing, installing, and sometimes also usingPerl on the said platform..PPEastern Asian Perl users are now welcomed in their own languages:\&\s-1README\s0.jp (Japanese), \s-1README\s0.ko (Korean), \s-1README\s0.cn (simplifiedChinese) and \s-1README\s0.tw (traditional Chinese), which are written innormal pod but encoded in EUC-JP, EUC-KR, EUC-CN and Big5.  Thesewill get installed as.PP.Vb 1\&   perljp perlko perlcn perltw.Ve.IP "\(bu" 4The documentation for the POSIX-BC platform is called \*(L"\s-1BS2000\s0\*(R", to avoidconfusion with the Perl \s-1POSIX\s0 module..IP "\(bu" 4The documentation for the WinCE platform is called perlce (\s-1README\s0.cein the source code kit), to avoid confusion with the perlwin32documentation on 8.3\-restricted filesystems..SH "Performance Enhancements".IX Header "Performance Enhancements".IP "\(bu" 4\&\fImap()\fR could get pathologically slow when the result list it generatesis larger than the source list.  The performance has been improved forcommon scenarios. [561].IP "\(bu" 4\&\fIsort()\fR is also fully reentrant, in the sense that the sort functioncan itself call \fIsort()\fR.  This did not work reliably in previousreleases. [561].IP "\(bu" 4\&\fIsort()\fR has been changed to use primarily mergesort internally asopposed to the earlier quicksort.  For very small lists this mayresult in slightly slower sorting times, but in general the speedupshould be at least 20%.  Additional bonuses are that the worst casebehaviour of \fIsort()\fR is now better (in computer science terms it nowruns in time O(N log N), as opposed to quicksort's Theta(N**2)worst-case run time behaviour), and that \fIsort()\fR is now stable(meaning that elements with identical keys will stay ordered as theywere before the sort).  See the \f(CW\*(C`sort\*(C'\fR pragma for information..SpThe story in more detail: suppose you want to serve yourself a littleslice of Pi..Sp.Vb 1\&    @digits = ( 3,1,4,1,5,9 );.Ve.SpA numerical sort of the digits will yield (1,1,3,4,5,9), as expected.Which \f(CW1\fR comes first is hard to know, since one \f(CW1\fR looks prettymuch like any other.  You can regard this as totally trivial,or somewhat profound.  However, if you just want to sort the evendigits ahead of the odd ones, then what will.Sp.Vb 1\&    sort { ($a % 2) <=> ($b % 2) } @digits;.Ve.Spyield?  The only even digit, \f(CW4\fR, will come first.  But how aboutthe odd numbers, which all compare equal?  With the quicksort algorithmused to implement Perl 5.6 and earlier, the order of ties is left upto the sort.  So, as you add more and more digits of Pi, the orderin which the sorted even and odd digits appear will change.and, for sufficiently large slices of Pi, the quicksort algorithmin Perl 5.8 won't return the same results even if reinvoked with thesame input.  The justification for this rests with quicksort'sworst case behavior.  If you run.Sp.Vb 1\&   sort { $a <=> $b } ( 1 .. $N , 1 .. $N );.Ve.Sp(something you might approximate if you wanted to merge two sortedarrays using sort), doubling \f(CW$N\fR doesn't just double the quicksort time,it \fIquadruples\fR it.  Quicksort has a worst case run time that cangrow like N**2, so-called \fIquadratic\fR behaviour, and it can happenon patterns that may well arise in normal use.  You won't notice thisfor small arrays, but you \fIwill\fR notice it with larger arrays,and you may not live long enough for the sort to complete on arraysof a million elements.  So the 5.8 quicksort scrambles large arraysbefore sorting them, as a statistical defence against quadratic behaviour.But that means if you sort the same large array twice, ties m

⌨️ 快捷键说明

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