Perl version 5.12.4 documentation - perl5113delta NAME perl5113delta - what is new for perl v5.11.3 DESCRIPTION This document describes differences between the 5.11.2 release andthe 5.11.3 release. If you are upgrading from an earlier release such as 5.11.1, first readthe perl5112delta, which describes differences between 5.11.1 and5.11.2 Incompatible Changes Filehandles are blessed directly into IO::Handle, as FileHandle is merely a wrapper around IO::Handle. The previous behaviour was to bless Filehandles into FileHandle(an empty proxy class) if it was loaded into memory and otherwiseto bless them into IO::Handle. Core Enhancements version Perl is shipped with the latest Unicode version, 5.2, dated October 2009. See http://www.unicode.org/versions/Unicode5.2.0 for details about this releaseof Unicode. See perlunicode for instructions on installing and usingolder versions of Unicode. Unicode properties Perl can now handle every Unicode character property. A new pod, perluniprops, lists all available non-Unihan character properties. Bydefault the Unihan properties and certain others (deprecated and Unicodeinternal-only ones) are not exposed. See below for more details onthese; there is also a section in the pod listing them, and why they arenot exposed. Perl now fully supports the Unicode compound-style of using = and :in writing regular expressions: \p{property=value} and \p{property:value} (both of which mean the same thing). Perl now fully supports the Unicode loose matching rules for textbetween the braces in \p{...} constructs. In addition, Perl also allowsunderscores between digits of numbers. All the Unicode-defined synonyms for properties and property values arenow accepted. qr/\X/, which matches a Unicode logical character, has been expanded to workbetter with various Asian languages. It now is defined as an extendedgrapheme cluster. (See http://www.unicode.org/reports/tr29/).Anything matched previously that made sense will continue to be matched. Butin addition: \X will now not break apart a CR LF sequence. \X will now match a sequence including the ZWJ and ZWNJ characters. \X will now always match at least one character, including an initial mark.Marks generally come after a base character, but it is possible in Unicode tohave them in isolation, and \X will now handle that case, for example at thebeginning of a line or after a ZWSP. And this is the part where \Xdoesn't match the things that it used to that don't make sense. Formerly, for example, you could have the nonsensical case of an accented LF. \X will now match a (Korean) syllable sequence, and the Thai and Laoexception cases. Otherwise, this change should be transparent for the non-affected languages. \p{...} matches using the Canonical_Combining_Class property werecompletely broken in previous Perls. This is now fixed. In previous Perls, the Unicode Decomposition_Type=Compat property and aPerl extension had http://perldoc.perl.org Page 1 Perl version 5.12.4 documentation - perl5113delta the same name, which led to neither matching all thecorrect values (with more than 100 mistakes in one, and several thousandin the other). The Perl extension has now been renamed to be Decomposition_Type=Noncanonical (short: dt=noncanon). It has the samemeaning as was previously intended, namely the union of all thenon-canonical Decomposition types, with Unicode Compat being just one ofthose. \p{Uppercase} and \p{Lowercase} have been brought into line with theUnicode definitions. This means they each match a few more charactersthan previously. \p{Cntrl} now matches the same characters as \p{Control}. This means itno longer will match Private Use (gc=co), Surrogates (gc=cs), nor Format(gc=cf) code points. The Format code points represent the biggestpossible problem. All but 36 of them are either officially deprecatedor strongly discouraged from being used. Of those 36, likely the mostwidely used are the soft (U+00AD), and BOM, ZWSP, ZWNJ, WJ, andsimilar, plus Bi-directional controls. \p{Alpha} now matches the same characters as \p{Alphabetic}. The Perldefinition included a number of things that aren't really alpha (allmarks), while omitting many that were. As a direct consequence, thedefinitions of \p{Alnum} and \p{Word} which depend on Alpha also change. \p{Word} also now doesn't match certain characters it wasn't supposedto, such as fractions. \p{Print} no longer matches the line control characters: Tab, LF, CR,FF, VT, and NEL. This brings it in line with the documentation. \p{Decomposition_Type=Canonical} now includes the Hangul syllables. The Numeric type property has been extended to include the Unihancharacters. There is a new Perl extension, the 'Present_In', or simply 'In',property. This is an extension of the Unicode Age property, but \p{In=5.0} matches any whose usage has been determined as of Unicode version 5.0. The \p{Age=5.0} only matches code pointsadded in precisely version 5.0. A number of properties did not have the correct values for unassignedcode points. This is now fixed. The affected properties areBidi_Class, East_Asian_Width, Joining_Type, Decomposition_Type, Hangul_Syllable_Type, Numeric_Type, and Line_Break. The Default_Ignorable_Code_Point, ID_Continue, and ID_Start propertieshave been updated to their current Unicode definitions. Certain properties that are supposed to be Unicode internal-only wereerroneously exposed by previous Perls. Use of these in regularexpressions will now generate, if enabled, a deprecated warning message.The properties are: Other_Alphabetic, Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend, Other_ID_Continue, Other_ID_Start, Other_Lowercase,Other_Math, and Other_Uppercase. An installation can now fairly easily change which Unicode propertiesPerl understands. As mentioned above, certain properties are by defaultturned off. These include all the Unihan properties (which should beaccessible via the CPAN module Unicode::Unihan) and any deprecated orUnicode internal-only property that Perl has never exposed. The generated files in the lib/unicore/To directory are now moreclearly marked as being stable, directly usable by applications.New hash entries in them give the format of the normal entries,which allows for easier machine parsing. Perl can generate filesin this directory for any property, though most are suppressed. Aninstallation can choose to change which get written. Instructionsare in perluniprops. Regular Expressions U+0FFFF is now a legal character in regular expressions. http://perldoc.perl.org Page 2 Perl version 5.12.4 documentation - perl5113delta Modules and Pragmata Pragmata Changes constant Upgraded from version 1.19 to 1.20. diagnostics This pragma no longer suppresses Use of uninitialized value in range (or flip) warnings. [perl #71204] feature Upgraded from 1.13 to 1.14. Added the unicode_strings feature: use feature "unicode_strings";

This pragma turns on Unicode semantics for the case-changing operations(uc/lc/ucfirst/lcfirst) on strings that don't have the internal UTF-8 flag set,but that contain single-byte characters between 128 and 255. legacy The experimental legacy pragma, introduced in 5.11.2, has been removed,and its functionality replaced by the new feature pragma, use feature"unicode_strings". threads Upgraded from version 1.74 to 1.75. warnings Upgraded from 1.07 to 1.08. Added new warnings::fatal_enabled() function. Updated Modules Archive::Extract Upgraded from version 0.34 to 0.36. CPAN Upgraded from version 1.94_51 to 1.94_5301, which is 1.94_53 on CPANplus some local fixes for bleadperl. Includes better bzip2 support, improved FirstTime experience withauto-selection of CPAN mirrors, proper handling of modules removed from thePerl core, and an updated 'cpan' utility CPANPLUS Upgraded from version 0.89_09 to 0.90. Encode Upgraded from version 2.38 to 2.39. ExtUtils::MakeMaker Upgraded from version 6.55_02 to 6.56. Adds new BUILD_REQUIRES key toindicate build-only prerequisites. Also adds support formingw64 and the new "package NAME VERSION" syntax. File::Path Upgraded from version 2.08 to 2.08_01. Module::Build Upgraded from version 0.35_09 to 0.36. Compared to 0.35, this version has anew http://perldoc.perl.org Page 3 Perl version 5.12.4 documentation - perl5113delta 'installdeps' action, supports the PERL_MB_OPT environment variable, adds a'share_dir' property for File::ShareDir support, support the "package NAMEVERSION" syntax and has many other enhancements and bug fixes. The'passthrough' style of Module::Build::Compat has been deprecated. Module::CoreList Upgraded from version 2.23 to 2.24. POSIX Upgraded from version 1.18 to 1.19. Error codes for getaddrinfo() and getnameinfo() are now available. Pod::Simple Upgraded from version 3.10 to 3.13. Safe Upgraded from version 2.19 to 2.20. Utility Changes perlbug No longer reports "Message sent" when it hasn't actually sent the message Changes to Existing Documentation The Pod specification (perlpodspec) has been updated to bring thespecification in line with modern usage already supported by most Pod systems.A parameter string may now follow the format name in a "begin/end" region.Links to URIs with a text description are now allowed. The usage of L< "section"> has been marked as deprecated. if.pm has been documented in "use" in perlfunc as a means to getconditional loading of modules despite the implicit BEGIN block around use. Installation and Configuration Improvements Testing improvements It's now possible to override PERL5OPT and friends in t/TEST Platform Specific Changes Win32 Always add a manifest resource to perl.exe to specify the trustInfosettings for Windows Vista and later. Without this setting Windowswill treat perl.exe as a legacy application and apply variousheuristics like redirecting access to protected file system areas(like the "Program Files" folder) to the users "VirtualStore"instead of generating a proper "permission denied" error. For VC8 and VC9 this manifest setting is automatically generated bythe compiler/linker (together with the binding information for theirrespective runtime libraries); for all other compilers we need toembed the manifest resource explicitly in the external resource file. This change also requests the Microsoft Common-Controls version 6.0(themed controls introduced in Windows XP) via the dependency listin the assembly manifest. For VC8 and VC9 this is specified using the /manifestdependency linker commandline option instead. cygwin Enable IPv6 support on cygwin 1.7 and newer OpenVMS http://perldoc.perl.org Page 4 Perl version 5.12.4 documentation - perl5113delta Make -UDEBUGGING the default on VMS for 5.12.0. Like it has been everywhere else for ages and ages. Also makecommand-line selection of -UDEBUGGING and -DDEBUGGING work inconfigure.com; before the only way to turn it off was by sayingno in answer to the interactive question.

Selected Bug Fixes Ensure that pp_qr returns a new regexp SV each time. Resolves RT #69852. Instead of returning a(nother) reference to the (pre-compiled) regexp in theoptree, use reg_temp_copy() to create a copy of it, and return a reference tothat. This resolves issues about Regexp::DESTROY not being called in a timelyfashion (the original bug tracked by RT #69852), as well as bugs related toblessing regexps, and of assigning to regexps, as described in correspondenceadded to the ticket. It transpires that we also need to undo the SvPVX() sharing when ithreadscloning a Regexp SV, because mother_re is set to NULL, instead of a clonedcopy of the mother_re. This change might fix bugs with regexps and threads incertain other situations, but as yet neither tests nor bug reports haveindicated any problems, so it might not actually be an edge case that it'spossible to reach. Several compilation errors and segfaults when perl was built with -Dmad were fixed. Fixes for lexer API changes in 5.11.2 which broke NYTProf's savesrc option. -t should only return TRUE for file handles connected to a TTY The Microsoft C version of isatty() returns TRUE for allcharacter mode devices, including the /dev/null style "nul"device and printers like "lpt1". Fixed a regression caused by commit fafafbaf which caused a panic duringparameter passing [perl #70171] On systems which in-place edits without backup files, -i'*' now works asthe documentation says it does [perl #70802] Saving and restoring magic flags no longer loses readonly flag. The malformed syntax grep EXPR LIST (note the missing comma) no longercauses abrupt and total failure. Regular expressions compiled with qr{} literals properly set $' whenmatching again. Using named subroutines with sort should no longer lead to bus errors [perl#71076] Numerous bugfixes catch small issues caused by the recently-added Lexer API. Smart match against @_ sometimes gave false negatives. [perl #71078] $@ may now be assigned a read-only value (without error or busting the stack). sort called recursively from within an active comparison subroutine nolonger causes a bus error if run multiple times. [perl #71076] New or Changed Diagnostics split now warns when called in void context printf-style functions called with too few arguments will now issue thewarning "Missing argument in %s" [perl #71000] New Tests Many modules updated from CPAN incorporate new tests. http://perldoc.perl.org Page 5 Perl version 5.12.4 documentation - perl5113delta t/comp/final_line_num.t See if line numbers are correct at EOF t/comp/form_scope.t See if format scoping works t/comp/line_debug.t See if @{"_<$file"} works t/op/filetest_t.t See if -t file test works t/op/qr.t See if qr works t/op/utf8cache.t Tests malfunctions of utf8 cache t/re/uniprops.t Test unicode \p{} regex constructs Deprecations The following items are now deprecated. Use of "goto" to jump into a construct is deprecated Using goto to jump from an outer scope into an innerscope is now deprecated. This rare use case was causingproblems in the implementation of scopes. Acknowledgements Perl 5.11.3 represents approximately one month of development sincePerl 5.11.2 and contains 61407 lines of changes across 396 filesfrom 40 authors and committers: Abigail, Alex Davies, Alexandr Ciornii, Andrew Rodland, AndyDougherty, Bram, brian d foy, Chip Salzenberg, Chris Williams, CraigA. Berry, Daniel Frederick Crisman, David Golden, Dennis Kaarsemaker,Eric Brine, Father Chrysostomos, Gene Sullivan, Gerard Goossen, H.Merijn Brand, Hugo van der Sanden, Jan Dubois, Jerry D. Hedden,Jesse Vincent, Jim Cromie, Karl Williamson, Leon Brocard, MaxMaischein, Michael Breen, Moritz Lenz, Nicholas Clark, RafaelGarcia-Suarez, Reini Urban, Ricardo Signes, Stepan Kasal, SteveHay, Steve Peters, Tim Bunce, Tony Cook, Vincent Pit and Zefram. Many of the changes included in this version originated in the CPANmodules included in Perl's core. We're grateful to the entire CPANcommunity for helping Perl to flourish. 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://rt.perl.org/perlbug/ . There may also beinformation at http://www.perl.org/ , the Perl Home Page. If you believe you have an unreported bug, please run the perlbugprogram included with your release. Be sure to trim your bug downto a tiny but sufficient test case. Your bug report, along with theoutput of perl -V, will be sent off to [email protected] to beanalysed by the Perl porting team. If the bug you are reporting has security implications, which make itinappropriate to send to a publicly archived mailing list, then please sendit to [email protected]. This points to a closed subscriptionunarchived mailing list, which includes all the core committers, who be ableto help assess the impact of issues, figure out a resolution, and helpco-ordinate the release of patches to mitigate or fix the problem across allplatforms on which Perl is supported. Please only use this http://perldoc.perl.org Page 6 Perl version 5.12.4 documentation - perl5113delta address forsecurity issues in the Perl core, not for modules independentlydistributed on CPAN. SEE ALSO The Changes file for an explanation of how to view exhaustive detailson what changed. The INSTALL file for how to build Perl. The README file for general stuff. The Artistic and Copying files for copyright information.

http://perldoc.perl.org Page 7