In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/acfe52c843a9519b98442a82108eb957bfbec806?hp=f2a78a4827a3bae74e46b5dd3cb1e57fa55dd461>
- Log ----------------------------------------------------------------- commit acfe52c843a9519b98442a82108eb957bfbec806 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:18:10 2013 -0700 perldelta for double quantifier warnings (688e039) M pod/perldelta.pod commit 287d2d218f9a91c491bd14daa5b5b424ff861c26 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:15:34 2013 -0700 perldelta for File::Spec->tmpdir and changing env (#88940) M pod/perldelta.pod commit 2d4602a90de104d1b855304adc609648545f0303 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:13:45 2013 -0700 Increase $File::Spec::VERSION to 3.41 to match the version number increases in some of the submodules and to make the perldelta entry easier to describe. M dist/Cwd/lib/File/Spec.pm commit e0d4623837bd4fec749e31c1cd002d3d6374fd26 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:12:26 2013 -0700 perldelta for PL_stashcacheh and glob-to-glob assignment (210fdecd4) M pod/perldelta.pod commit 42dd67ca0471eb6dbdf676a529268c19897815c2 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:04:18 2013 -0700 perldelta for freed stashes (#117941) M pod/perldelta.pod commit 1efc2d08eb802267de02bc21f6541b3a9b999820 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:02:38 2013 -0700 perldelta for sort/require CORE:: (#24482) M pod/perldelta.pod commit a2ef523e036d1425e0b3587ea9fd0a1c91debfb8 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 01:00:54 2013 -0700 perldealt for delete local $ENV{x} leaking (9332b95f7) M pod/perldelta.pod commit 5f050f838c8452729701c56c8958a366c5a3647a Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:59:46 2013 -0700 perldelta for (?[]) fixes M pod/perldelta.pod commit 2a288271d0e7524c6c94968f686b6752fab8d292 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:56:37 2013 -0700 perldelta for #117595 (-l warning) M pod/perldelta.pod commit 708e0828b9fb7f9410e9128b0c526901f31b13f9 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:55:15 2013 -0700 perldelta for deparsing ${#}{foo} (#117531) M pod/perldelta.pod commit 4990a62a04c466665919fa64bb901081eec3ede9 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:54:08 2013 -0700 perldelta for JS in perltrap M pod/perldelta.pod commit 4602962a0815cc6fae9a442de0f36fa71b885712 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:52:56 2013 -0700 perldelta for #117311/B::Deparse -l and FF M pod/perldelta.pod commit 76ac71299722d1568a6fe3f6645311316207e571 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:51:37 2013 -0700 perldelta: typo M pod/perldelta.pod commit 3221bc400f3da87f0d721c2bf3501051fac946ea Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:50:47 2013 -0700 perldelta for lexsub syntax errors (3a74e0e282c) M pod/perldelta.pod commit 81748522aff12edb368615e9512781d00a2d5d5b Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:49:26 2013 -0700 perldelta for two lexsub fixes M pod/perldelta.pod commit c3839c1055c15bdd950b4dc9b208b8d97fea41fa Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:46:51 2013 -0700 perldelta for constant inlining (70e5f2b5) M pod/perldelta.pod commit 0597af6bb06a2731ce10aa5c907bacb64f05fbad Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:43:35 2013 -0700 perldelta for deparsing for my $x (#117081) M pod/perldelta.pod commit 6f397ec198adda42145403649785ca9686b900e3 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:39:36 2013 -0700 perldelta for 3036c853/\N{} deprecations M pod/perldelta.pod commit 94f721723a98a82e5c4c427c91346b26fab91671 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:36:03 2013 -0700 perldelta for #118159 (SvTRUE on ""/1 dualvar) M pod/perldelta.pod commit dfe378f166a453c437c37302508829e66801bf12 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:23:18 2013 -0700 perldiag: Document âCan't call mro_isa_changed_inâ M pod/perldiag.pod M t/porting/diag.t commit dbaf95aca2eb7d377aca1764b72e71120da654fd Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:18:07 2013 -0700 perlfunc: Document fallback to "top" format perl 4âs perl.man says this: By default the topâofâpage format is "top", but it may be set to the format of your choice by assigning the name to the $^ variable. This is still the case, but is completely undocumented in perl 5. In perl 5 the presence of a <FILEHANDLE_NAME>_TOP format will over- ride "top", as will $^, but "top" is still checked for in the absence of those. This should be documented. One thing I do mention here that perl 4 omits is that it is "top" in the current package. I also tweaked the wording of the preceding sentence. M pod/perlfunc.pod commit 319f71293a1ed7c0f55e9fb7822514fb5fbe7944 Author: Father Chrysostomos <[email protected]> Date: Mon Jun 10 00:12:16 2013 -0700 diag.t: Remove more nonexistent exceptions M t/porting/diag.t ----------------------------------------------------------------------- Summary of changes: dist/Cwd/lib/File/Spec.pm | 2 +- pod/perldelta.pod | 105 +++++++++++++++++++++++++++++++++++++++++++- pod/perldiag.pod | 5 ++ pod/perlfunc.pod | 6 ++- t/porting/diag.t | 7 --- 5 files changed, 112 insertions(+), 13 deletions(-) diff --git a/dist/Cwd/lib/File/Spec.pm b/dist/Cwd/lib/File/Spec.pm index 6062c01..5f7157a 100644 --- a/dist/Cwd/lib/File/Spec.pm +++ b/dist/Cwd/lib/File/Spec.pm @@ -3,7 +3,7 @@ package File::Spec; use strict; use vars qw(@ISA $VERSION); -$VERSION = '3.40'; +$VERSION = '3.41'; $VERSION =~ tr/_//; my %module = (MacOS => 'Mac', diff --git a/pod/perldelta.pod b/pod/perldelta.pod index e41038c..321aa48 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -135,6 +135,26 @@ XXX =item * +B::Deparse has been upgraded from version 1.20 to 1.21. + +C<foreach my $lexical> is now deparsed correctly with the B<-p> option. +[RT #117081] + +The B<-l> option no longer puts form feeds in the middle of a line when +outputting C<map> and C<grep> blocks. [RT #117311] + +Elements of C<%#>, such as C<$# {foo}> and C<${#}{foo}> are now deparsed +correctly. [RT #117531] + +=item * + +File::Spec has been upgraded from version 3.40 to 3.41. + +C<tmpdir> now respects changes to environment variables from which the +temporary directory is derived. [RT #88940] + +=item * + Test::Harness has been upgraded from version 3.26 to 3.28 Memory usage is dramatically reduced. t/harness now uses about 10% of the @@ -180,13 +200,13 @@ XXX Changes which significantly change existing files in F<pod/> go here. However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> section. -=head3 L<XXX> +=head3 L<perltrap> =over 4 =item * -XXX Description of the change here +There is now a L<JavaScript|perltrap/JavaScript Traps> section. =back @@ -220,7 +240,13 @@ XXX L<message|perldiag/"message"> =item * -XXX L<message|perldiag/"message"> +L<A sequence of multiple spaces in a charnames alias definition is deprecated|perldiag/"A sequence of multiple spaces in a charnames alias definition is deprecated"> + +L<Trailing white-space in a charnames alias definition is deprecated|perldiag/"Trailing white-space in a charnames alias definition is deprecated"> + +These two deprecation warnings involving C<\N{...}> were incorrectly +implemented. They did not warn by default (now they do) and could not be +made fatal via C<use warnings FATAL => 'deprecated'> (now they can). =back @@ -490,6 +516,79 @@ not visible at compile time were treated as lvalues and could be assigned to, even when the subroutine was not an lvalue sub. This has been fixed. [RT #117947] +=item * + +In Perl v5.18.0 dualvars that had an empty string for the string part but a +non-zero number for the number part starting being treated as true. In +previous versions they were treated as false, the string representation +taking precedeence. The old behaviour has been restored. [RT #118159] + +=item * + +Since Perl v5.12, inlining of constants that override built-in keywords of +the same name had countermanded C<use subs>, causing subsequent mentions of +the constant to use the built-in keyword instead. This has been fixed. + +=item * + +Lexical constants (C<my sub a() { 42 }>) no longer crash when inlined. + +=item * + +Parameter prototypes attached to lexical subroutines are now respected when +compiling sub calls without parentheses. Previously, the prototypes were +honoured only for calls I<with> parentheses. [RT #116735] + +=item * + +Syntax errors in lexical subroutines in combination with calls to the same +subroutines no longer cause crashes at compile time. + +=item * + +The warning produced by C<-l $handle> now applies to IO refs and globs, not +just to glob refs. That warning is also now UTF8-clean. [RT #117595] + +=item * + +Various memory leaks involving the parsing of the C<(?[...])> regular +expression construct have been fixed. + +=item * + +C<(?[...])> now allows interpolation of precompiled patterns consisting of +(?[...])> with bracket character classes inside (C<$pat = +S<qr/(?[ [a] ])/;> S</(?[ $pat ])/>>). Formerly, the brackets would +confuse the regular expression parser. + +=item * + +The "Quantifier unexpected on zero-length expression" warning message could +appear twice starting in Perl v5.10 for a regular expression also +containing alternations (e.g., "a|b") triggering the trie optimisation. + +=item * + +C<delete local $ENV{nonexistent_env_var}> no longer leaks memory. + +=item * + +C<sort> and C<require> followed by a keyword prefixed with C<CORE::> now +treat it as a keyword, and not as a subroutine or module name. [RT #24482] + +=item * + +Through certain conundrums, it is possible to cause the current package to +be freed. Certain operators (C<bless>, C<reset>, C<open>, C<eval>) could +not cope and would crash. They have been made more resilient. [RT #117941] + +=item * + +Aliasing filehandles through glob-to-glob assignment would not update +internal method caches properly if a package of the same name as the +filehandle existed, resulting in filehandle method calls going to the +package instead. This has been fixed. + =back =head1 Known Problems diff --git a/pod/perldiag.pod b/pod/perldiag.pod index a0893d8..2d157d5 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -677,6 +677,11 @@ Something like this will reproduce the error: process $BADREF 1,2,3; $BADREF->process(1,2,3); +=item Can't call mro_isa_changed_in() on anonymous symbol table + +(P) Perl got confused as to whether a hash was a plain hash or a +symbol table hash when trying to update @ISA caches. + =item Can't chdir to %s (F) You called C<perl -x/foo/bar>, but F</foo/bar> is not a directory diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index d386245..9be5931 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -9056,9 +9056,11 @@ explicitly by assigning the name of the format to the C<$~> variable. Top of form processing is handled automatically: if there is insufficient room on the current page for the formatted record, the page is advanced by -writing a form feed, a special top-of-page format is used to format the new +writing a form feed and a special top-of-page +format is used to format the new page header before the record is written. By default, the top-of-page -format is the name of the filehandle with "_TOP" appended. This would be a +format is the name of the filehandle with "_TOP" appended, or "top" +in the current package if the former does not exist. This would be a problem with autovivified filehandles, but it may be dynamically set to the format of your choice by assigning the name to the C<$^> variable while that filehandle is selected. The number of lines remaining on the current diff --git a/t/porting/diag.t b/t/porting/diag.t index 5e4a5c2..dc9a688 100644 --- a/t/porting/diag.t +++ b/t/porting/diag.t @@ -458,7 +458,6 @@ __DATA__ Malformed UTF-8 character (unexpected non-continuation byte 0x%x, immediately after start byte 0x%x) Cannot apply "%s" in non-PerlIO perl -Can't call mro_isa_changed_in() on anonymous symbol table Can't call mro_method_changed_in() on anonymous symbol table Can't coerce readonly %s to string Can't coerce readonly %s to string in %s @@ -482,7 +481,6 @@ Code missing after '/' in unpack '%c' outside of string in pack Debug leaking scalars child failed%s with errno %d: %s '/' does not take a repeat count in %s -Don't know how to get file name Don't know how to handle magic of type \%o -Dp not implemented on this platform Error reading "%s": %s @@ -493,11 +491,8 @@ Filehandle %s opened only for %sput Filehandle STD%s reopened as %s only for input filter_del can only delete in reverse order (currently) YOU HAVEN'T DISABLED SET-ID SCRIPTS IN THE KERNEL YET! FIX YOUR KERNEL, PUT A C WRAPPER AROUND THIS SCRIPT, OR USE -u AND UNDUMP! -fork() not implemented! free %s -Free to wrong pool %p not %p get %s %p %p %p -gethostent not implemented! getpwnam returned invalid UIC %o for user "%s" glob failed (can't start child: %s) glob failed (child exited with status %d%s) @@ -591,8 +586,6 @@ Unknown Unicode option value %d Unrecognized character %s; marked by <-- HERE after %s<-- HERE near column %d Unstable directory path, current directory changed unexpectedly Unterminated compressed integer in unpack -Usage: CODE(0x%x)(%s) -Usage: %s(%s) Usage: %s::%s(%s) Usage: File::Copy::rmscopy(from,to[,date_flag]) Usage: VMS::Filespec::candelete(spec) -- Perl5 Master Repository
