From d91f1bc9c333968f803a403e4aaf2bd8c7ff1fa3 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Fri, 17 Aug 2012 09:20:50 +0100 Subject: [PATCH] perldelta - Add remaining changes not yet documented Also some other general tidying and wrapping. --- pod/perldelta.pod | 170 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 106 insertions(+), 64 deletions(-) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index a78a484..375a52e 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -30,9 +30,9 @@ here, but most should go in the L section. =head2 Computed Labels The loop controls C, C and C, and the special C -operator, now allow arbitrary expressions to be used to compute labels at -run time. Previously, any argument that was not a constant was treated as -the empty string. +operator, now allow arbitrary expressions to be used to compute labels at run +time. Previously, any argument that was not a constant was treated as the +empty string. =head1 Security @@ -48,14 +48,14 @@ L section. =head2 C<$ENV{foo}=undef> deletes value from environ, like C -This facilitates use of C with C<%ENV> entries. In previous -versions of Perl, C was converted to the empty string. +This facilitates use of C with C<%ENV> entries. In previous versions +of Perl, C was converted to the empty string. =head2 Defined values stored in environment are forced to byte strings -A value stored in an environment variable has always been stringified. In -this release, it is converted to be only a byte string. First, it is forced -to be a only a string. Then if the string is utf8 and the equivalent of +A value stored in an environment variable has always been stringified. In this +release, it is converted to be only a byte string. First, it is forced to be a +only a string. Then if the string is utf8 and the equivalent of C works, that result is used; otherwise, the equivalent of C is used, and a warning is issued about wide characters (L). @@ -231,9 +231,9 @@ functions required for IP multicast source group membership have been added. =item * -L has been upgraded from version 2.37 to 2.38. It can now freeze -and thaw vstrings correctly. This causes a slight incompatible change in -the storage format, so the format version has increased to 2.9. +L has been upgraded from version 2.37 to 2.38. It can now freeze and +thaw vstrings correctly. This causes a slight incompatible change in the +storage format, so the format version has increased to 2.9. =item * @@ -289,9 +289,9 @@ section. =item * -Loop control verbs (C, C, C, C and C) have -always had the same precedence as assignment operators, but this was not -documented until now. +Loop control verbs (C, C, C, C and C) have always +had the same precedence as assignment operators, but this was not documented +until now. =back @@ -301,8 +301,8 @@ documented until now. =item * -A caveat has been added to the documentation for C<$_> warning against the -use of lexical C<$_> [perl #114020]. +A caveat has been added to the documentation for C<$_> warning against the use +of lexical C<$_> [perl #114020]. =back @@ -331,8 +331,8 @@ L section, instead. =item * -XXX +The pager detection in F has been improved to allow responses which +specify options after the program name, e.g. B, if the user +accepts the default value. This helps B when handling ANSI escapes +[perl #72156]. =back @@ -433,7 +436,7 @@ changes as paragraphs below it. ] =head2 New Platforms XXX List any platforms that this version of perl compiles on, that previous -versions did not . These will either be enabled by new files in the F +versions did not. These will either be enabled by new files in the F directories, or new subdirectories and F files at the top level of the source tree. @@ -472,13 +475,17 @@ A new makefile option, USE_64_BIT_INT, has been added to the Windows makefiles. Set this to "define" when building a 32-bit perl if you want it to use 64-bit integers. -Machine code size reductions, already made to the DLLs of XS modules in 5.17.2, -have now been extended to the perl DLL itself. +Machine code size reductions, already made to the DLLs of XS modules in Perl +5.17.2, have now been extended to the perl DLL itself. -Building with VC++ 6.0 was inadvertently broken in 5.17.2 but has now been +Building with VC++ 6.0 was inadvertently broken in Perl 5.17.2 but has now been fixed again. XXX Actually, it's now been broken again, so ensure that it gets fixed once more before release, or remove this comment! +=item VMS + +The B build has been fixed for the HP C++ compiler on OpenVMS. + =back =head1 Internal Changes @@ -508,9 +515,9 @@ files in F and F are best summarized in L. =item * -C<\w> now matches the code points U+200C (ZERO WIDTH NON-JOINER) and -U+200D (ZERO WIDTH JOINER). C<\W> no longer matches these. This change -is because Unicode corrected their definition of what C<\w> should match. +C<\w> now matches the code points U+200C (ZERO WIDTH NON-JOINER) and U+200D +(ZERO WIDTH JOINER). C<\W> no longer matches these. This change is because +Unicode corrected their definition of what C<\w> should match. =item * @@ -520,13 +527,13 @@ C no longer leaks its label. Constant folding no longer changes the behaviour of functions like C and C that can take either filenames or handles. -C nows treats its argument as a file name (since it is -an arbitrary expression), rather than the handle "foo". +C nows treats its argument as a file name (since it is an +arbitrary expression), rather than the handle "foo". =item * -C no longer falls back to treating "FOO" as a file name -if the filehandle has been deleted. This was broken in Perl 5.16.0. +C no longer falls back to treating "FOO" as a file name if +the filehandle has been deleted. This was broken in Perl 5.16.0. =item * @@ -535,13 +542,13 @@ longer cause double frees or panic messages. =item * -C now turns vstrings into plain strings when performing a -substitution, even if the resulting string is the same (C). +C now turns vstrings into plain strings when performing a substitution, +even if the resulting string is the same (C). =item * -Prototype mismatch warnings no longer erroneously treat constant subs as -having no prototype when they actually have "". +Prototype mismatch warnings no longer erroneously treat constant subs as having +no prototype when they actually have "". =item * @@ -554,8 +561,8 @@ C on a subroutine now clears call checkers. =item * -The C operator started leaking memory on blessed objects in Perl -5.16.0. This has been fixed [perl #114340]. +The C operator started leaking memory on blessed objects in Perl 5.16.0. +This has been fixed [perl #114340]. =item * @@ -564,8 +571,8 @@ C a syntax error [perl #114222]. =item * -On debugging builds, "uninitialized" warnings inside formats no longer -cause assertion failures. +On debugging builds, "uninitialized" warnings inside formats no longer cause +assertion failures. =item * @@ -578,41 +585,39 @@ Formats and C statements are now permitted inside formats. =item * -C and C()> now always produce the same output. -It was possible for the latter to refuse to close over $x if the variable -was not active; e.g., if it was defined outside a currently-running named -subroutine. +C and C()> now always produce the same output. It +was possible for the latter to refuse to close over $x if the variable was not +active; e.g., if it was defined outside a currently-running named subroutine. =item * Similarly, C and C now produce the same output. -This also allows "my $x if 0" variables to be seen in the debugger -[perl #114018]. +This also allows "my $x if 0" variables to be seen in the debugger [perl +#114018]. =item * -Formats called recursively no longer stomp on their own lexical variables, -but each recursive call has its own set of lexicals. +Formats called recursively no longer stomp on their own lexical variables, but +each recursive call has its own set of lexicals. =item * -Attempting to free an active format or the handle associated with it no -longer results in a crash. +Attempting to free an active format or the handle associated with it no longer +results in a crash. =item * -Format parsing no longer gets confused by braces, semicolons and -low-precedence operators. It used to be possible to use braces as format -delimiters (instead of C<=> and C<.>), but only sometimes. Semicolons and -low-precedence operators in format argument lines no longer confuse the -parser into ignoring the line's return value. In format argument lines, -braces can now be used for anonymous hashes, instead of being treated -always as C blocks. +Format parsing no longer gets confused by braces, semicolons and low-precedence +operators. It used to be possible to use braces as format delimiters (instead +of C<=> and C<.>), but only sometimes. Semicolons and low-precedence operators +in format argument lines no longer confuse the parser into ignoring the line's +return value. In format argument lines, braces can now be used for anonymous +hashes, instead of being treated always as C blocks. =item * -Formats can now be nested inside code blocks in regular expressions and -other quoted constructs (C and C) [perl #114040]. +Formats can now be nested inside code blocks in regular expressions and other +quoted constructs (C and C) [perl #114040]. =item * @@ -620,20 +625,57 @@ Formats are no longer created after compilation errors. =item * -Some format syntax errors started causing crashes in perl 5.17.2, but -have now been fixed. +Some format syntax errors started causing crashes in Perl 5.17.2, but have now +been fixed. + +=item * + +Under debugging builds, the B<-DA> command line option started crashing in Perl +5.16.0. It has been fixed [perl #114368]. =item * -Under debugging builds, the B<-DA> command line option started crashing in -Perl 5.16. It has been fixed [perl #114368]. +Scope::Escape compatibility, which was broken in Perl 5.17.2, has been restored +[perl #113872]. =item * A potential deadlock scenario involving the premature termination of a pseudo-forked child in a Windows build with ithreads enabled has been fixed. -This resolves the common problem of the F test hanging on Windows. -[perl #88840] +This resolves the common problem of the F test hanging on Windows +[perl #88840]. + +=item * + +The microperl build, broken since Perl 5.15.7, has now been restored. + +=item * + +The code which generates errors from C could potentially read one or +two bytes before the start of the filename for filenames less than three bytes +long and ending C. This has now been fixed. Note that it could +never have happened with module names given to C or C anyway. + +=item * + +The handling of pathnames of modules given to C has been made +thread-safe on VMS. + +=item * + +The C API function, the entry point for perl's regex compiler, +was accidentally changed in Perl 5.17.1 to operate on the current engine. This +has now been restored to its former core-engine-specific state [perl #114302]. + +=item * + +Perl 5.17.1 introduced a memory leak into the re-use of run-time regexes where +the pattern hasn't changed (i.e. C). This has now been fixed. + +=item * + +A bug in the compilation of a C expression which affected the TryCatch +test suite has been fixed [perl #114242]. =back -- 2.7.4