This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add created_as_... builtins to perldelta
[perl5.git] / pod / perl5358delta.pod
CommitLineData
9d30331d
N
1=encoding utf8
2
3=head1 NAME
4
5perl5358delta - what is new for perl v5.35.8
6
7=head1 DESCRIPTION
8
9This document describes differences between the 5.35.7 release and the 5.35.8
10release.
11
12If you are upgrading from an earlier release such as 5.35.6, first read
13L<perl5357delta>, which describes differences between 5.35.6 and 5.35.7.
14
15=head1 Core Enhancements
16
17=head2 Try/Catch Syntax Now Recognises C<finally> Blocks
18
19The experimental C<try>/C<catch> syntax has been extended to support an
20optional third block introduced by the C<finally> keyword.
21
22 try {
23 attempt();
24 print "Success\n";
25 }
26 catch ($e) {
27 print "Failure\n";
28 }
29 finally {
30 print "This happens regardless\n";
31 }
32
33This provides code which runs at the end of the C<try>/C<catch> construct,
34even if aborted by an exception or control-flow keyword. They are similar
35to C<defer> blocks.
36
37For more information, see L<perlsyn/"Try Catch Exception Handling">.
38
39=head1 Incompatible Changes
40
41=head2 A physically empty sort is now a compile-time error
42
43 @a = sort @empty; # unaffected
44 @a = sort; # now a compile-time error
45
46A bare sort used to be a weird way to create an empty list; now it croaks
47at compile time. This is change is intended to free up some of the syntax
48space for possible future enhancements to C<sort>.
49
50=head1 Performance Enhancements
51
52=over 4
53
54=item *
55
56Try / Catch optimization: make sure to rpeep() the body of catch {} blocks
57
58=back
59
60=head1 Modules and Pragmata
61
62=head2 Updated Modules and Pragmata
63
64=over 4
65
66=item *
67
68L<Module::CoreList> has been upgraded from version 5.20211220 to 5.20220120.
69
70=item *
71
72L<bignum> has been upgraded from version 0.63 to 0.64.
73
74=item *
75
76L<Data::Dumper> has been upgraded from version 2.183 to 2.184.
77
78Fixes for EBCDIC.
79
80=item *
81
82L<File::Fetch> has been upgraded from version 1.00 to 1.04.
83
84=item *
85
86L<File::Find> has been upgraded from version 1.39_01 to 1.40.
87
88Replace bareword filehandle with a lexical scalar.
89
90=item *
91
92L<Locale::Maketext> has been upgraded from version 1.29 to 1.30.
93
94Provide inclusive names allowlist and denylist
95
96=item *
97
98L<Math::BigInt> has been upgraded from version 1.999828 to 1.999829.
99
100=item *
101
102L<NEXT> has been upgraded from version 0.68 to 0.69.
103
104=item *
105
106L<POSIX> has been upgraded from version 2.02 to 2.03.
107
108FLT_ROUNDS now emulates (more) standard behavior that reflects
109the current rounding mode set by fesetround.
110
111=item *
112
113L<Win32> has been upgraded from version 0.57 to 0.58.
114
115=back
116
117=head1 Documentation
118
119=head2 Changes to Existing Documentation
120
121We have attempted to update the documentation to reflect the changes
122listed in this document. If you find any we have missed, open an issue
123at L<https://github.com/Perl/perl5/issues>.
124
125Additionally, the following selected changes have been made:
126
127=head3 L<perlrun>
128
129=over 4
130
131=item *
132
133B<-?> is now a synonym for B<-h>
134
135=back
136
137=head1 Testing
138
9d30331d
N
139Tests were added and changed to reflect the other additions and
140changes in this release. Furthermore, these significant changes were
141made:
142
143=over 4
144
145=item *
146
147ExtUtils-ParseXS test suite improvement
148
149=item *
150
151Hash::Util::FieldHash test suite improvement
152
153=item *
154
155Pod::Html test suite improvement
156
157=item *
158
159Tie::SubstrHash test suite improvement
160
161=item *
162
163Time-HiRes test suite improvement
164
165=item *
166
167Fix several test failures on CygWin and MSWin32.
168
169=back
170
171=head1 Platform Support
172
173=head2 Platform-Specific Notes
174
175=over 4
176
177=item z/OS
178
179=over 4
180
181=item *
182
183Update z/OS (previously called OS/390) README to describe ASCII and EBCDIC builds
184z/OS ASCII Enablement: Manage untagged header errno.h by copy & tag
185
186=back
187
188=back
189
190=over 4
191
192=item Windows
193
194=over 4
195
196=item *
197
198Support for compiling perl on Windows using Microsoft Visual Studio 2022
199(containing Visual C++ 14.3) has been added.
200
201=back
202
203=back
204
205=head1 Internal Changes
206
207=over 4
208
209=item *
210
211Add missing aliases for \p{Present_In}
212
213=item *
214
215Change C<pack> U behavior for EBCDIC
216
217=item *
218
219sv_upgrade: use c99 compound literals to initialize xpvav/xpvhv
220
221=back
222
223=head1 Acknowledgements
224
225Perl 5.35.8 represents approximately 4 weeks of development since Perl
2265.35.7 and contains approximately 29,000 lines of changes across 190 files
227from 19 authors.
228
229Excluding auto-generated files, documentation and release tools, there were
230approximately 23,000 lines of changes to 120 .pm, .t, .c and .h files.
231
232Perl continues to flourish into its fourth decade thanks to a vibrant
233community of users and developers. The following people are known to have
234contributed the improvements that became Perl 5.35.8:
235
236Chris 'BinGOs' Williams, Craig A. Berry, David Mitchell, E. Choroba,
237François Perrad, Graham Knop, Ivan Panchenko, James E Keenan, Karl
238Williamson, Michiel Beijen, Mike Fulton, Neil Bowers, Nicholas Clark,
239Nicolas R., Paul Evans, Richard Leach, Sawyer X, TAKAI Kousuke, Tomasz
240Konojacki.
241
242The list above is almost certainly incomplete as it is automatically
243generated from version control history. In particular, it does not include
244the names of the (very much appreciated) contributors who reported issues to
245the Perl bug tracker.
246
247Many of the changes included in this version originated in the CPAN modules
248included in Perl's core. We're grateful to the entire CPAN community for
249helping Perl to flourish.
250
251For a more complete list of all of Perl's historical contributors, please
252see the F<AUTHORS> file in the Perl source distribution.
253
254=head1 Reporting Bugs
255
256If you find what you think is a bug, you might check the perl bug database
257at L<https://github.com/Perl/perl5/issues>. There may also be information at
258L<http://www.perl.org/>, the Perl Home Page.
259
260If you believe you have an unreported bug, please open an issue at
261L<https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a
262tiny but sufficient test case.
263
264If the bug you are reporting has security implications which make it
265inappropriate to send to a public issue tracker, then see
266L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
267for details of how to report the issue.
268
269=head1 Give Thanks
270
271If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
272you can do so by running the C<perlthanks> program:
273
274 perlthanks
275
276This will send an email to the Perl 5 Porters list with your show of thanks.
277
278=head1 SEE ALSO
279
280The F<Changes> file for an explanation of how to view exhaustive details on
281what changed.
282
283The F<INSTALL> file for how to build Perl.
284
285The F<README> file for general stuff.
286
287The F<Artistic> and F<Copying> files for copyright information.
288
289=cut