Skip to content

Commit 973c209

Browse files
committed
Update perldelta with Richard Leach's suggestions
Co-authored-by: #23029
1 parent 82c3b20 commit 973c209

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

pod/perldelta.pod

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ similar to the way that C<:reader> already creates reader accessors.
6060

6161
=head2 New C<any> and C<all> operators
6262

63-
Two new experimental features have been added, which add two new list-processing
64-
operators, C<any> and C<all>.
63+
Two new experimental features have been added, which introduce the
64+
list-processing operators C<any> and C<all>.
6565

6666
use v5.40;
6767
use feature 'keyword_all';
6868
no warnings 'experimental::keyword_all';
6969

7070
my @numbers = ...
7171

72-
if(all { $_ % 2 == 0 } @numbers) {
72+
if ( all { $_ % 2 == 0 } @numbers ) {
7373
say "All the numbers are even";
7474
}
7575

@@ -145,12 +145,9 @@ v5.10. Their behavior was significantly changed in v5.10.1. When the
145145
retroactively declared experimental. Over the years, proposals to fix or
146146
supplement the features have come and gone.
147147

148-
They were deprecated in Perl v5.38.0 and scheduled for removal in Perl
149-
5.42.0, and entirely removed in Perl 5.41.3.
150-
151-
After some discussion these have been re-instated in 5.41.9.
152-
153-
Using them no longer produces a deprecation warning.
148+
They were deprecated in Perl v5.38.0 and scheduled for removal in
149+
Perl v5.42.0. After some discussion their removal has been indefinitely
150+
postponed. Using them no longer produces a deprecation warning.
154151

155152
Switch itself still requires the C<switch> feature, which is enabled
156153
by default for feature bundles from v5.9.5 through to v5.34. Switch
@@ -346,10 +343,6 @@ C<("A" x 1_000_000).time> might be a suitable small change.
346343

347344
=item *
348345

349-
C<Perl_leave_adjust_stacks>: additional efficiency for mortal copies.
350-
351-
=item *
352-
353346
C<tr///> now runs at the same speed regardless of the internal
354347
representation of its operand, as long as the only characters being
355348
translated are ASCII-range, for example C<tr/A-Z/a-z/>. Previously, if
@@ -397,21 +390,6 @@ when coming from an C<SVt_IV>, is now more efficient.
397390

398391
=item *
399392

400-
Subroutines in packages no longer need to be stored in typeglobs:
401-
declaring a subroutine will now put a simple sub reference directly in the
402-
stash if possible, saving memory. The typeglob still notionally exists,
403-
so accessing it will cause the stash entry to be upgraded to a typeglob
404-
(i.e. this is just an internal implementation detail).
405-
This optimization does not currently apply to XSUBs or exported
406-
subroutines, and method calls will undo it, since they cache things in
407-
typeglobs.
408-
[L<GH #23001|https://github.com/Perl/perl5/issues/23001>]
409-
410-
(This optimization was originally announced in L<perl5220delta>, but due to a
411-
bug it only worked for subroutines in package C<main>, not in modules.)
412-
413-
=item *
414-
415393
String reversal from a single argument, when the string buffer is not
416394
"swiped", is now done in a single pass and is noticeably faster.
417395
The extent of the improvement is compiler & hardware dependent.

0 commit comments

Comments
 (0)