Query: perl570delta
OS: x11r4
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PERL570DELTA(1) Perl Programmers Reference Guide PERL570DELTA(1)NAMEperl570delta - what's new for perl v5.7.0DESCRIPTIONThis document describes differences between the 5.6.0 release and the 5.7.0 release. Security Vulnerability Closed A potential security vulnerability in the optional suidperl component of Perl has been identified. suidperl is neither built nor installed by default. As of September the 2nd, 2000, the only known vulnerable platform is Linux, most likely all Linux distributions. CERT and various vendors have been alerted about the vulnerability. The problem was caused by Perl trying to report a suspected security exploit attempt using an external program, /bin/mail. On Linux plat- forms the /bin/mail program had an undocumented feature which when combined with suidperl gave access to a root shell, resulting in a seri- ous compromise instead of reporting the exploit attempt. If you don't have /bin/mail, or if you have 'safe setuid scripts', or if suidperl is not installed, you are safe. The exploit attempt reporting feature has been completely removed from the Perl 5.7.0 release, so that particular vulnerability isn't there anymore. However, further security vulnerabilities are, unfortunately, always possible. The suidperl code is being reviewed and if deemed too risky to continue to be supported, it may be completely removed from future releases. In any case, suidperl should only be used by security experts who know exactly what they are doing and why they are using suidperl instead of some other solution such as sudo ( see http://www.courtesan.com/sudo/ ). Incompatible Changes o Arrays now always interpolate into double-quoted strings: constructs like "foo@bar" now always assume @bar is an array, whether or not the compiler has seen use of @bar. o The semantics of bless(REF, REF) were unclear and until someone proves it to make some sense, it is forbidden. o A reference to a reference now stringify as "REF(0x81485ec)" instead of "SCALAR(0x81485ec)" in order to be more consistent with the return value of ref(). o The very dusty examples in the eg/ directory have been removed. Suggestions for new shiny examples welcome but the main issue is that the examples need to be documented, tested and (most importantly) maintained. o The obsolete chat2 library that should never have been allowed to escape the laboratory has been decommissioned. o The unimplemented POSIX regex features [[.cc.]] and [[=c=]] are still recognised but now cause fatal errors. The previous behaviour of ignoring them by default and warning if requested was unacceptable since it, in a way, falsely promised that the features could be used. o The (bogus) escape sequences 8 and 9 now give an optional warning ("Unrecognized escape passed through"). There is no need to -escape any "w" character. o lstat(FILEHANDLE) now gives a warning because the operation makes no sense. In future releases this may become a fatal error. o The long deprecated uppercase aliases for the string comparison operators (EQ, NE, LT, LE, GE, GT) have now been removed. o The regular expression captured submatches ($1, $2, ...) are now more consistently unset if the match fails, instead of leaving false data lying around in them. o The tr///C and tr///U features have been removed and will not return; the interface was a mistake. Sorry about that. For similar functionality, see pack('U0', ...) and pack('C0', ...). Core Enhancements o "perl -d:Module=arg,arg,arg" now works (previously one couldn't pass in multiple arguments.) o my __PACKAGE__ $obj now works. o "no Module;" now works even if there is no "sub unimport" in the Module. o The numerical comparison operators return "undef" if either operand is a NaN. Previously the behaviour was unspecified. o "pack('U0a*', ...)" can now be used to force a string to UTF-8. o prototype(&) is now available. o There is now an UNTIE method. Modules and Pragmata New Modules o File::Temp allows one to create temporary files and directories in an easy, portable, and secure way. o Storable gives persistence to Perl data structures by allowing the storage and retrieval of Perl data to and from files in a fast and compact binary format. Updated And Improved Modules and Pragmata o The following independently supported modules have been updated to newer versions from CPAN: CGI, CPAN, DB_File, File::Spec, Getopt::Long, the podlators bundle, Pod::LaTeX, Pod::Parser, Term::ANSIColor, Test. o Bug fixes and minor enhancements have been applied to B::Deparse, Data::Dumper, IO::Poll, IO::Socket::INET, Math::BigFloat, Math::Com- plex, Math::Trig, Net::protoent, the re pragma, SelfLoader, Sys::SysLog, Test::Harness, Text::Wrap, UNIVERSAL, and the warnings pragma. o The attributes::reftype() now works on tied arguments. o AutoLoader can now be disabled with "no AutoLoader;", o The English module can now be used without the infamous performance hit by saying use English '-no_performance_hit'; (Assuming, of course, that one doesn't need the troublesome variables $`, $&, or $'.) Also, introduced @LAST_MATCH_START and @LAST_MATCH_END English aliases for "@-" and "@+". o File::Find now has pre- and post-processing callbacks. It also correctly changes directories when chasing symbolic links. Callbacks (naughtily) exiting with "next;" instead of "return;" now work. o File::Glob::glob() renamed to File::Glob::bsd_glob() to avoid prototype mismatch with CORE::glob(). o IPC::Open3 now allows the use of numeric file descriptors. o use lib now works identically to @INC. Removing directories with 'no lib' now works. o %INC now localised in a Safe compartment so that use/require work. o The Shell module now has an OO interface. Utility Changes o The Emacs perl mode (emacs/cperl-mode.el) has been updated to version 4.31. o Perlbug is now much more robust. It also sends the bug report to perl.org, not perl.com. o The perlcc utility has been rewritten and its user interface (that is, command line) is much more like that of the UNIX C compiler, cc. o The xsubpp utility for extension writers now understands POD documentation embedded in the *.xs files. New Documentation o perl56delta details the changes between the 5.005 release and the 5.6.0 release. o perldebtut is a Perl debugging tutorial. o perlebcdic contains considerations for running Perl on EBCDIC platforms. Note that unfortunately EBCDIC platforms that used to sup- ported back in Perl 5.005 are still unsupported by Perl 5.7.0; the plan, however, is to bring them back to the fold. o perlnewmod tells about writing and submitting a new module. o perlposix-bc explains using Perl on the POSIX-BC platform (an EBCDIC mainframe platform). o perlretut is a regular expression tutorial. o perlrequick is a regular expressions quick-start guide. Yes, much quicker than perlretut. o perlutil explains the command line utilities packaged with the Perl distribution. Performance Enhancements o map() that changes the size of the list should now work faster. o sort() has been changed to use mergesort internally as opposed to the earlier quicksort. For very small lists this may result in slightly slower sorting times, but in general the speedup should be at least 20%. Additional bonuses are that the worst case behaviour of sort() is 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 sort() is now stable (meaning that elements with identical keys will stay ordered as they were before the sort). Installation and Configuration Improvements Generic Improvements o INSTALL now explains how you can configure Perl to use 64-bit integers even on non-64-bit platforms. o Policy.sh policy change: if you are reusing a Policy.sh file (see INSTALL) and you use Configure -Dprefix=/foo/bar and in the old Pol- icy $prefix eq $siteprefix and $prefix eq $vendorprefix, all of them will now be changed to the new prefix, /foo/bar. (Previously only $prefix changed.) If you do not like this new behaviour, specify prefix, siteprefix, and vendorprefix explicitly. o A new optional location for Perl libraries, otherlibdirs, is available. It can be used for example for vendor add-ons without disturb- ing Perl's own library directories. o In many platforms the vendor-supplied 'cc' is too stripped-down to build Perl (basically, 'cc' doesn't do ANSI C). If this seems to be the case and 'cc' does not seem to be the GNU C compiler 'gcc', an automatic attempt is made to find and use 'gcc' instead. o gcc needs to closely track the operating system release to avoid build problems. If Configure finds that gcc was built for a different operating system release than is running, it now gives a clearly visible warning that there may be trouble ahead. o If binary compatibility with the 5.005 release is not wanted, Configure no longer suggests including the 5.005 modules in @INC. o Configure "-S" can now run non-interactively. o configure.gnu now works with options with whitespace in them. o installperl now outputs everything to STDERR. o $Config{byteorder} is now computed dynamically (this is more robust with "fat binaries" where an executable image contains binaries for more than one binary platform.) Selected Bug Fixes o Several debugger fixes: exit code now reflects the script exit code, condition "0" now treated correctly, the "d" command now checks line number, the $. no longer gets corrupted, all debugger output now goes correctly to the socket if RemotePort is set. o *foo{FORMAT} now works. o Lexical warnings now propagating correctly between scopes. o Line renumbering with eval and "#line" now works. o Fixed numerous memory leaks, especially in eval "". o Modulus of unsigned numbers now works (4063328477 % 65535 used to return 27406, instead of 27047). o Some "not a number" warnings introduced in 5.6.0 eliminated to be more compatible with 5.005. Infinity is now recognised as a number. o our() variables will not cause "will not stay shared" warnings. o pack "Z" now correctly terminates the string with "