📄 perl588delta.1
字号:
Documentation tweaks.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Test::Harness\*(C'\fR upgraded to version 2.56 (was 2.48).RS 4.IP "\(bu" 4The \f(CW\*(C`Test::Harness\*(C'\fR timer is now off by default..IP "\(bu" 4Now shows elapsed time in milliseconds..IP "\(bu" 4Various bug fixes.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Test::Simple\*(C'\fR upgraded to version 0.62 (was 0.54).RS 4.IP "\(bu" 4\&\f(CW\*(C`is_deeply()\*(C'\fR no longer fails to work for many cases.IP "\(bu" 4Various minor bug fixes.IP "\(bu" 4Documentation enhancements.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Text::Tabs\*(C'\fR upgraded to version 2005.0824.RS 4.IP "\(bu" 4Provides a faster implementation of \f(CW\*(C`expand\*(C'\fR.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Text::Wrap\*(C'\fR upgraded to version 2005.082401.RS 4.IP "\(bu" 4Adds \f(CW$Text::Wrap::separator2\fR, which allows you to preserve existing newlinesbut add line-breaks with some other string..RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`threads\*(C'\fR upgraded to version 1.07.RS 4.IP "\(bu" 4\&\f(CW\*(C`threads\*(C'\fR will now honour \f(CW\*(C`no warnings \*(Aqthreads\*(Aq\*(C'\fR.IP "\(bu" 4A thread's interpreter is now freed after \f(CW\*(C`$t\->join()\*(C'\fR rather than after\&\f(CW\*(C`undef $t\*(C'\fR, which should fix some \f(CW\*(C`ithreads\*(C'\fR memory leaks. (Fixed by DaveMitchell).IP "\(bu" 4Some documentation typo fixes..RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`threads::shared\*(C'\fR upgraded to version 0.94.RS 4.IP "\(bu" 4Documentation changes only.IP "\(bu" 4Note: An improved implementation of \f(CW\*(C`threads::shared\*(C'\fR is available on\&\s-1CPAN\s0 \- this will be merged into 5.8.9 if it proves stable..RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Tie::Hash\*(C'\fR upgraded to version 1.02.RS 4.IP "\(bu" 4Documentation typo fixed.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Time::HiRes\*(C'\fR upgraded to version 1.86 (was 1.66).RS 4.IP "\(bu" 4\&\f(CW\*(C`clock_nanosleep()\*(C'\fR and \f(CW\*(C`clock()\*(C'\fR functions added.IP "\(bu" 4Support for the \s-1POSIX\s0 \f(CW\*(C`clock_gettime()\*(C'\fR and \f(CW\*(C`clock_getres()\*(C'\fR has been added.IP "\(bu" 4Return \f(CW\*(C`undef\*(C'\fR or an empty list if the C \f(CW\*(C`gettimeofday()\*(C'\fR function fails.IP "\(bu" 4Improved \f(CW\*(C`nanosleep\*(C'\fR detection.IP "\(bu" 4Internal cleanup.IP "\(bu" 4Enhanced documentation.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Unicode::Collate\*(C'\fR upgraded to version 0.52.RS 4.IP "\(bu" 4Now implements \s-1UCA\s0 Revision 14 (based on Unicode 4.1.0)..IP "\(bu" 4\&\f(CW\*(C`Unicode::Collate\-\*(C'\fRnew> method no longer overwrites user's \f(CW$_\fR.IP "\(bu" 4Enhanced documentation.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Unicode::UCD\*(C'\fR upgraded to version 0.24.RS 4.IP "\(bu" 4Documentation typos fixed.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`User::grent\*(C'\fR upgraded to version 1.01.RS 4.IP "\(bu" 4Documentation typo fixed.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`utf8\*(C'\fR upgraded to version 1.06.RS 4.IP "\(bu" 4Documentation typos fixed.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`vmsish\*(C'\fR upgraded to version 1.02.RS 4.IP "\(bu" 4Documentation typos fixed.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`warnings\*(C'\fR upgraded to version 1.05.RS 4.IP "\(bu" 4Gentler messing with \f(CW\*(C`Carp::\*(C'\fR internals.IP "\(bu" 4Internal cleanup.IP "\(bu" 4Documentation update.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`Win32\*(C'\fR upgraded to version 0.2601.RS 4.IP "\(bu" 4Provides Windows Vista support to \f(CW\*(C`Win32::GetOSName\*(C'\fR.IP "\(bu" 4Documentation enhancements.RE.RS 4.RE.IP "\(bu" 4\&\f(CW\*(C`XS::Typemap\*(C'\fR upgraded to version 0.02.RS 4.IP "\(bu" 4Internal cleanup.RE.RS 4.RE.SH "Utility Changes".IX Header "Utility Changes".ie n .Sh """h2xs"" enhancements".el .Sh "\f(CWh2xs\fP enhancements".IX Subsection "h2xs enhancements"\&\f(CW\*(C`h2xs\*(C'\fR implements new option \f(CW\*(C`\-\-use\-xsloader\*(C'\fR to force use of\&\f(CW\*(C`XSLoader\*(C'\fR even in backwards compatible modules..PPThe handling of authors' names that had apostrophes has been fixed..PPAny enums with negative values are now skipped..ie n .Sh """perlivp"" enhancements".el .Sh "\f(CWperlivp\fP enhancements".IX Subsection "perlivp enhancements"\&\f(CW\*(C`perlivp\*(C'\fR implements new option \f(CW\*(C`\-a\*(C'\fR and will not check for \fI*.ph\fRfiles by default any more. Use the \f(CW\*(C`\-a\*(C'\fR option to run \fIall\fR tests..SH "New Documentation".IX Header "New Documentation"The perlglossary manpage is a glossary of terms used in the Perldocumentation, technical and otherwise, kindly provided by O'Reilly Media,inc..SH "Performance Enhancements".IX Header "Performance Enhancements".IP "\(bu" 4Weak reference creation is now \fIO(1)\fR rather than \fIO(n)\fR, courtesy ofNicholas Clark. Weak reference deletion remains \fIO(n)\fR, but if deletion onlyhappens at program exit, it may be skipped completely..IP "\(bu" 4Salvador Fandin\*~o provided improvements to reduce the memory usage of \f(CW\*(C`sort\*(C'\fRand to speed up some cases..IP "\(bu" 4Jarkko Hietaniemi and Andy Lester worked to mark as much data as possible inthe C source files as \f(CW\*(C`static\*(C'\fR, to increase the proportion of the executablefile that the operating system can share between process, and thus reducereal memory usage on multi-user systems..SH "Installation and Configuration Improvements".IX Header "Installation and Configuration Improvements"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..PPBuilding 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..PP\&\f(CW\*(C`Configure\*(C'\fR will now detect \f(CW\*(C`clearenv\*(C'\fR and \f(CW\*(C`unsetenv\*(C'\fR, thanks to a patchfrom Alan Burlison. It will also probe for \f(CW\*(C`futimes\*(C'\fR and whether \f(CW\*(C`sprintf\*(C'\fRcorrectly returns the length of the formatted string, which will both be usedin perl 5.8.9..PPThere are improved hints for next\-3.0, vmesa, \s-1IX\s0, Darwin, Solaris, Linux,\&\s-1DEC/OSF\s0, HP-UX and MPE/iX.PPPerl extensions on Windows now can be statically built into the Perl \s-1DLL\s0,thanks to a work by Vadim Konovalov. (This improvement was actually in 5.8.7,but was accidentally omitted from perl587delta)..SH "Selected Bug Fixes".IX Header "Selected Bug Fixes".Sh "no warnings 'category' works correctly with \-w".IX Subsection "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..PPThis bug fix may cause some programs to start correctly issuing warnings..Sh "Remove over-optimisation".IX Subsection "Remove over-optimisation"Perl 5.8.4 introduced a change so that assignments of \f(CW\*(C`undef\*(C'\fR to ascalar, or of an empty list to an array or a hash, were optimised away. Asthis could cause problems when \f(CW\*(C`goto\*(C'\fR jumps were involved, this changehas been backed out..Sh "\fIsprintf()\fP fixes".IX Subsection "sprintf() fixes"Using the \fIsprintf()\fR function with some formats could lead to a bufferoverflow in some specific cases. This has been fixed, along with severalother bugs, notably in bounds checking..PPIn related fixes, it was possible for badly written code that did not followthe documentation of \f(CW\*(C`Sys::Syslog\*(C'\fR to have formatting vulnerabilities.\&\f(CW\*(C`Sys::Syslog\*(C'\fR has been changed to protect people from poor quality thirdparty code..Sh "Debugger and Unicode slowdown".IX Subsection "Debugger and Unicode slowdown"It had been reported that running under perl's debugger when processingUnicode data could cause unexpectedly large slowdowns. The most likely causeof this was identified and fixed by Nicholas Clark..Sh "Smaller fixes".IX Subsection "Smaller fixes".IP "\(bu" 4\&\f(CW\*(C`FindBin\*(C'\fR now works better with directories where access rights are morerestrictive than usual..IP "\(bu" 4Several memory leaks in ithreads were closed. An improved implementation of\&\f(CW\*(C`threads::shared\*(C'\fR is available on \s-1CPAN\s0 \- this will be merged into 5.8.9 ifit proves stable..IP "\(bu" 4Trailing spaces are now trimmed from \f(CW$!\fR and \f(CW$^E\fR..IP "\(bu" 4Operations that require perl to read a process' list of groups, such as readsof \f(CW$(\fR and \f(CW$)\fR, now dynamically allocate memory rather than using afixed sized array. The fixed size array could cause C stack exhaustion onsystems configured to use large numbers of groups..IP "\(bu" 4\&\f(CW\*(C`PerlIO::scalar\*(C'\fR now works better with non-default \f(CW$/\fR settings..IP "\(bu" 4You can now use the \f(CW\*(C`x\*(C'\fR operator to repeat a \f(CW\*(C`qw//\*(C'\fR list. This usedto raise a syntax error..IP "\(bu" 4The debugger now traces correctly execution in eval("")uated code thatcontains #line directives..IP "\(bu" 4The value of the \f(CW\*(C`open\*(C'\fR pragma is no longer ignored for three-argumentopens..IP "\(bu" 4The optimisation of \f(CW\*(C`for (reverse @a)\*(C'\fR introduced in perl 5.8.6 couldmisbehave when the array had undefined elements and was used in \s-1LVALUE\s0context. Dave Mitchell provided a fix..IP "\(bu" 4Some case insensitive matches between \s-1UTF\-8\s0 encoded data and 8 bit regexps,and vice versa, could give malformed character warnings. These have beenfixed by Dave Mitchell and Yves Orton..IP "\(bu" 4\&\f(CW\*(C`lcfirst\*(C'\fR and \f(CW\*(C`ucfirst\*(C'\fR could corrupt the string for certain cases wherethe length \s-1UTF\-8\s0 encoding of the string in lower case, upper case or titlecase differed. This was fixed by Nicholas Clark..IP "\(bu" 4Perl will now use the C library calls \f(CW\*(C`unsetenv\*(C'\fR and \f(CW\*(C`clearenv\*(C'\fR if presentto delete keys from \f(CW%ENV\fR and delete \f(CW%ENV\fR entirely, thanks to a patchfrom Alan Burlison..SH "New or Changed Diagnostics".IX Header "New or Changed Diagnostics".Sh "Attempt to set length of freed array".IX Subsection "Attempt to set length of freed array"This is a new warning, produced in situations such as this:.PP.Vb 2\& $r = do {my @a; \e$#a};\& $$r = 503;.Ve.Sh "Non-string passed as bitmask".IX Subsection "Non-string passed as bitmask"This is a new warning, produced when number has been passed as a argument to\&\fIselect()\fR, instead of a bitmask..PP.Vb 3\& # Wrong, will now warn\& $rin = fileno(STDIN);\& ($nfound,$timeleft) = select($rout=$rin, undef, undef, $timeout);\& \& # Should be\& $rin = \*(Aq\*(Aq;\& vec($rin,fileno(STDIN),1) = 1;\& ($nfound,$timeleft) = select($rout=$rin, undef, undef, $timeout);.Ve.Sh "Search pattern not terminated or ternary operator parsed as search pattern".IX Subsection "Search pattern not terminated or ternary operator parsed as search pattern"This syntax error indicates that the lexer couldn't find the finaldelimiter of a \f(CW\*(C`?PATTERN?\*(C'\fR construct. Mentioning the ternary operator inthis error message makes it easier to diagnose syntax errors..SH "Changed Internals".IX Header "Changed Internals"There has been a fair amount of refactoring of the \f(CW\*(C`C\*(C'\fR source code, partly tomake it tidier and more maintainable. The resulting object code and the\&\f(CW\*(C`perl\*(C'\fR binary may well be smaller than 5.8.7, in particular due to a changecontributed by Dave Mitchell which reworked the warnings code to besignificantly smaller. Apart from being smaller and possibly faster, thereshould be no user-detectable changes..PPAndy Lester supplied many improvements to determine which functionparameters and local variables could actually be declared \f(CW\*(C`const\*(C'\fR to the Ccompiler. Steve Peters provided new \f(CW*_set\fR macros and reworked the core touse these rather than assigning to macros in \s-1LVALUE\s0 context..PPDave Mitchell improved the lexer debugging output under \f(CW\*(C`\-DT\*(C'\fR.PPNicholas Clark changed the string buffer allocation so that it is now roundedup to the next multiple of 4 (or 8 on platforms with 64 bit pointers). Thisshould reduce the number of calls to \f(CW\*(C`realloc\*(C'\fR without actually using anyextra memory..PPThe \f(CW\*(C`HV\*(C'\fR's array of \f(CW\*(C`HE*\*(C'\fRs is now allocated at the correct (minimal) size,thanks to another change by Nicholas Clark. Compile with\&\f(CW\*(C`\-DPERL_USE_LARGE_HV_ALLOC\*(C'\fR to use the old, sloppier, default..PPFor \s-1XS\s0 or embedding debugging purposes, if perl is compiled with\&\f(CW\*(C`\-DDEBUG_LEAKING_SCALARS_FORK_DUMP\*(C'\fR in addition to\&\f(CW\*(C`\-DDEBUG_LEAKING_SCALARS\*(C'\fR then a child process is \f(CW\*(C`fork\*(C'\fRed just beforeglobal destruction, which is used to display the values of any scalarsfound to have leaked at the end of global destruction. Without this, thescalars have already been freed sufficiently at the point of detection thatit is impossible to produce any meaningful dump of their contents. Thisfeature was implemented by the indefatigable Nicholas Clark, based on an ideaby Mike Giroux..SH "Platform Specific Problems".IX Header "Platform Specific Problems"The optimiser on HP-UX 11.23 (Itanium 2) is currently partly disabled (scaleddown to +O1) when using \s-1HP\s0 C\-ANSI-C; the cause of problems at higheroptimisation levels is still unclear..PPThere are a handful of remaining test failures on \s-1VMS\s0, mostly due totest fixes and minor module tweaks with too many dependencies tointegrate into this release from the development stream, where they haveall been corrected. The following is a list of expected failures withthe patch number of the fix where that is known:.PP.Vb 6\& ext/Devel/PPPort/t/ppphtest.t #26913\& ext/List/Util/t/p_tainted.t #26912\& lib/ExtUtils/t/PL_FILES.t #26813\& lib/ExtUtils/t/basic.t #26813\& t/io/fs.t\& t/op/cmp.t.Ve.SH "Reporting Bugs".IX Header "Reporting Bugs"If you find what you think is a bug, you might check the articlesrecently posted to the comp.lang.perl.misc newsgroup and the perlbug database at http://bugs.perl.org. There may also beinformation at http://www.perl.org, the Perl Home Page..PPIf you believe you have an unreported bug, please run the \fBperlbug\fRprogram included with your release. Be sure to trim your bug downto a tiny but sufficient test case. Your bug report, along with theoutput of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to beanalysed by the Perl porting team. You can browse and searchthe Perl 5 bugs at http://bugs.perl.org/.SH "SEE ALSO".IX Header "SEE ALSO"The \fIChanges\fR file for exhaustive details on what changed..PPThe \fI\s-1INSTALL\s0\fR file for how to build Perl..PPThe \fI\s-1README\s0\fR file for general stuff..PPThe \fIArtistic\fR and \fICopying\fR files for copyright information.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -