📄 perl570delta.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 "PERL570DELTA 1".TH PERL570DELTA 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"perl570delta \- what's new for perl v5.7.0.SH "DESCRIPTION".IX Header "DESCRIPTION"This document describes differences between the 5.6.0 release andthe 5.7.0 release..SH "Security Vulnerability Closed".IX Header "Security Vulnerability Closed"A potential security vulnerability in the optional suidperl componentof Perl has been identified. suidperl is neither built nor installedby default. As of September the 2nd, 2000, the only known vulnerableplatform is Linux, most likely all Linux distributions. \s-1CERT\s0 andvarious vendors have been alerted about the vulnerability..PPThe problem was caused by Perl trying to report a suspected securityexploit attempt using an external program, /bin/mail. On Linuxplatforms the /bin/mail program had an undocumented feature whichwhen combined with suidperl gave access to a root shell, resulting ina serious compromise instead of reporting the exploit attempt. If youdon't have /bin/mail, or if you have 'safe setuid scripts', or ifsuidperl is not installed, you are safe..PPThe exploit attempt reporting feature has been completely removed fromthe Perl 5.7.0 release, so that particular vulnerability isn't thereanymore. However, further security vulnerabilities are,unfortunately, always possible. The suidperl code is being reviewedand if deemed too risky to continue to be supported, it may becompletely removed from future releases. In any case, suidperl shouldonly be used by security experts who know exactly what they are doingand why they are using suidperl instead of some other solution such assudo ( see http://www.courtesan.com/sudo/ )..SH "Incompatible Changes".IX Header "Incompatible Changes".IP "\(bu" 4Arrays now always interpolate into double-quoted strings:constructs like \*(L"foo@bar\*(R" now always assume \f(CW@bar\fR is an array,whether or not the compiler has seen use of \f(CW@bar\fR..IP "\(bu" 4The semantics of bless(\s-1REF\s0, \s-1REF\s0) were unclear and until someone provesit to make some sense, it is forbidden..IP "\(bu" 4A reference to a reference now stringify as \*(L"\s-1REF\s0(0x81485ec)\*(R" insteadof \*(L"\s-1SCALAR\s0(0x81485ec)\*(R" in order to be more consistent with the returnvalue of \fIref()\fR..IP "\(bu" 4The very dusty examples in the eg/ directory have been removed.Suggestions for new shiny examples welcome but the main issue is thatthe examples need to be documented, tested and (most importantly)maintained..IP "\(bu" 4The obsolete chat2 library that should never have been allowedto escape the laboratory has been decommissioned..IP "\(bu" 4The unimplemented \s-1POSIX\s0 regex features [[.cc.]] and [[=c=]] are stillrecognised but now cause fatal errors. The previous behaviour ofignoring them by default and warning if requested was unacceptablesince it, in a way, falsely promised that the features could be used..IP "\(bu" 4The (bogus) escape sequences \e8 and \e9 now give an optional warning(\*(L"Unrecognized escape passed through\*(R"). There is no need to \e\-escapeany \f(CW\*(C`\ew\*(C'\fR character..IP "\(bu" 4lstat(\s-1FILEHANDLE\s0) now gives a warning because the operation makes no sense.In future releases this may become a fatal error..IP "\(bu" 4The long deprecated uppercase aliases for the string comparisonoperators (\s-1EQ\s0, \s-1NE\s0, \s-1LT\s0, \s-1LE\s0, \s-1GE\s0, \s-1GT\s0) have now been removed..IP "\(bu" 4The regular expression captured submatches ($1, \f(CW$2\fR, ...) are nowmore consistently unset if the match fails, instead of leaving falsedata lying around in them..IP "\(bu" 4The tr///C and tr///U features have been removed and will not return;the interface was a mistake. Sorry about that. For similarfunctionality, see pack('U0', ...) and pack('C0', ...)..SH "Core Enhancements".IX Header "Core Enhancements".IP "\(bu" 4\&\f(CW\*(C`perl \-d:Module=arg,arg,arg\*(C'\fR now works (previously one couldn't passin multiple arguments.).IP "\(bu" 4my _\|_PACKAGE_\|_ \f(CW$obj\fR now works..IP "\(bu" 4\&\f(CW\*(C`no Module;\*(C'\fR now works even if there is no \*(L"sub unimport\*(R" in the Module..IP "\(bu" 4The numerical comparison operators return \f(CW\*(C`undef\*(C'\fR if either operandis a NaN. Previously the behaviour was unspecified..IP "\(bu" 4\&\f(CW\*(C`pack(\*(AqU0a*\*(Aq, ...)\*(C'\fR can now be used to force a string to \s-1UTF\-8\s0..IP "\(bu" 4prototype(\e&) is now available..IP "\(bu" 4There is now an \s-1UNTIE\s0 method..SH "Modules and Pragmata".IX Header "Modules and Pragmata".Sh "New Modules".IX Subsection "New Modules".IP "\(bu" 4File::Temp allows one to create temporary files and directories in aneasy, portable, and secure way..IP "\(bu" 4Storable gives persistence to Perl data structures by allowing thestorage and retrieval of Perl data to and from files in a fast andcompact binary format..Sh "Updated And Improved Modules and Pragmata".IX Subsection "Updated And Improved Modules and Pragmata".IP "\(bu" 4The following independently supported modules have been updated tonewer versions from \s-1CPAN:\s0 \s-1CGI\s0, \s-1CPAN\s0, DB_File, File::Spec, Getopt::Long,the podlators bundle, Pod::LaTeX, Pod::Parser, Term::ANSIColor, Test..IP "\(bu" 4Bug fixes and minor enhancements have been applied to B::Deparse,Data::Dumper, IO::Poll, IO::Socket::INET, Math::BigFloat,Math::Complex, Math::Trig, Net::protoent, the re pragma, SelfLoader,Sys::SysLog, Test::Harness, Text::Wrap, \s-1UNIVERSAL\s0, and the warningspragma..IP "\(bu" 4The \fIattributes::reftype()\fR now works on tied arguments..IP "\(bu" 4AutoLoader can now be disabled with \f(CW\*(C`no AutoLoader;\*(C'\fR,.IP "\(bu" 4The English module can now be used without the infamous performancehit by saying.Sp.Vb 1\& use English \*(Aq\-no_performance_hit\*(Aq;.Ve.Sp(Assuming, of course, that one doesn't need the troublesome variables\&\f(CW\*(C`$\`\*(C'\fR, \f(CW$&\fR, or \f(CW\*(C`$\*(Aq\*(C'\fR.) Also, introduced \f(CW@LAST_MATCH_START\fR and\&\f(CW@LAST_MATCH_END\fR English aliases for \f(CW\*(C`@\-\*(C'\fR and \f(CW\*(C`@+\*(C'\fR..IP "\(bu" 4File::Find now has pre\- and post-processing callbacks. It alsocorrectly changes directories when chasing symbolic links. Callbacks(naughtily) exiting with \*(L"next;\*(R" instead of \*(L"return;\*(R" now work..IP "\(bu" 4\&\fIFile::Glob::glob()\fR renamed to \fIFile::Glob::bsd_glob()\fR to avoidprototype mismatch with \fICORE::glob()\fR..IP "\(bu" 4IPC::Open3 now allows the use of numeric file descriptors..IP "\(bu" 4use lib now works identically to \f(CW@INC\fR. Removing directorieswith 'no lib' now works..IP "\(bu" 4\&\f(CW%INC\fR now localised in a Safe compartment so that use/require work..IP "\(bu" 4The Shell module now has an \s-1OO\s0 interface..SH "Utility Changes".IX Header "Utility Changes".IP "\(bu" 4The Emacs perl mode (emacs/cperl\-mode.el) has been updated to version4.31..IP "\(bu" 4Perlbug is now much more robust. It also sends the bug report toperl.org, not perl.com..IP "\(bu" 4The perlcc utility has been rewritten and its user interface (that is,command line) is much more like that of the \s-1UNIX\s0 C compiler, cc..IP "\(bu" 4The xsubpp utility for extension writers now understands \s-1POD\s0documentation embedded in the *.xs files..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" 4perldebtut is a Perl debugging tutorial..IP "\(bu" 4perlebcdic contains considerations for running Perl on \s-1EBCDIC\s0 platforms.Note that unfortunately \s-1EBCDIC\s0 platforms that used to supported back inPerl 5.005 are still unsupported by Perl 5.7.0; the plan, however, is tobring them back to the fold..IP "\(bu" 4perlnewmod tells about writing and submitting a new module..IP "\(bu" 4perlposix-bc explains using Perl on the POSIX-BC platform(an \s-1EBCDIC\s0 mainframe platform)..IP "\(bu" 4perlretut is a regular expression tutorial..IP "\(bu" 4perlrequick is a regular expressions quick-start guide.Yes, much quicker than perlretut..IP "\(bu" 4perlutil explains the command line utilities packaged with the Perldistribution..SH "Performance Enhancements".IX Header "Performance Enhancements".IP "\(bu" 4\&\fImap()\fR that changes the size of the list should now work faster..IP "\(bu" 4\&\fIsort()\fR has been changed to use mergesort internally as opposed to theearlier quicksort. For very small lists this may result in slightlyslower sorting times, but in general the speedup should be at least20%. Additional bonuses are that the worst case behaviour of \fIsort()\fRis now better (in computer science terms it now runs 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 identicalkeys will stay ordered as they were before the sort)..SH "Installation and Configuration Improvements".IX Header "Installation and Configuration Improvements".Sh "Generic Improvements".IX Subsection "Generic Improvements".IP "\(bu" 4\&\s-1INSTALL\s0 now explains how you can configure Perl to use 64\-bitintegers even on non\-64\-bit platforms..IP "\(bu" 4Policy.sh policy change: if you are reusing a Policy.sh file(see \s-1INSTALL\s0) and you use Configure \-Dprefix=/foo/bar and in the oldPolicy \f(CW$prefix\fR eq \f(CW$siteprefix\fR and \f(CW$prefix\fR eq \f(CW$vendorprefix\fR, all ofthem will now be changed to the new prefix, /foo/bar. (Previouslyonly \f(CW$prefix\fR changed.) If you do not like this new behaviour,specify prefix, siteprefix, and vendorprefix explicitly..IP "\(bu" 4A new optional location for Perl libraries, otherlibdirs, is available.It can be used for example for vendor add-ons without disturbing Perl'sown library directories..IP "\(bu" 4In many platforms the vendor-supplied 'cc' is too stripped-down tobuild Perl (basically, 'cc' doesn't do \s-1ANSI\s0 C). If this seemsto be the case and 'cc' does not seem to be the \s-1GNU\s0 C compiler\&'gcc', an automatic attempt is made to find and use 'gcc' instead..IP "\(bu" 4gcc needs to closely track the operating system release to avoidbuild problems. If Configure finds that gcc was built for a different
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -