summaryrefslogtreecommitdiff
path: root/pod/perl5358delta.pod
blob: 10c91dd4e222c1cdea732f43f1e45912e367af19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
=encoding utf8

=head1 NAME

perl5358delta - what is new for perl v5.35.8

=head1 DESCRIPTION

This document describes differences between the 5.35.7 release and the 5.35.8
release.

If you are upgrading from an earlier release such as 5.35.6, first read
L<perl5357delta>, which describes differences between 5.35.6 and 5.35.7.

=head1 Core Enhancements

=head2 Try/Catch Syntax Now Recognises C<finally> Blocks

The experimental C<try>/C<catch> syntax has been extended to support an
optional third block introduced by the C<finally> keyword.

    try {
        attempt();
        print "Success\n";
    }
    catch ($e) {
        print "Failure\n";
    }
    finally {
        print "This happens regardless\n";
    }

This provides code which runs at the end of the C<try>/C<catch> construct,
even if aborted by an exception or control-flow keyword. They are similar
to C<defer> blocks.

For more information, see L<perlsyn/"Try Catch Exception Handling">.

=head1 Incompatible Changes

=head2 A physically empty sort is now a compile-time error

    @a = sort @empty; # unaffected
    @a = sort;        # now a compile-time error

A bare sort used to be a weird way to create an empty list; now it croaks
at compile time. This is change is intended to free up some of the syntax
space for possible future enhancements to C<sort>.

=head1 Performance Enhancements

=over 4

=item *

Try / Catch optimization: make sure to rpeep() the body of catch {} blocks

=back

=head1 Modules and Pragmata

=head2 Updated Modules and Pragmata

=over 4

=item *

L<Module::CoreList> has been upgraded from version 5.20211220 to 5.20220120.

=item *

L<bignum> has been upgraded from version 0.63 to 0.64.

=item *

L<Data::Dumper> has been upgraded from version 2.183 to 2.184.

Fixes for EBCDIC.

=item *

L<File::Fetch> has been upgraded from version 1.00 to 1.04.

=item *

L<File::Find> has been upgraded from version 1.39_01 to 1.40.

Replace bareword filehandle with a lexical scalar.

=item *

L<Locale::Maketext> has been upgraded from version 1.29 to 1.30.

Provide inclusive names allowlist and denylist

=item *

L<Math::BigInt> has been upgraded from version 1.999828 to 1.999829.

=item *

L<NEXT> has been upgraded from version 0.68 to 0.69.

=item *

L<POSIX> has been upgraded from version 2.02 to 2.03.

FLT_ROUNDS now emulates (more) standard behavior that reflects
the current rounding mode set by fesetround.

=item *

L<Win32> has been upgraded from version 0.57 to 0.58.

=back

=head1 Documentation

=head2 Changes to Existing Documentation

We have attempted to update the documentation to reflect the changes
listed in this document.  If you find any we have missed, open an issue
at L<https://github.com/Perl/perl5/issues>.

Additionally, the following selected changes have been made:

=head3 L<perlrun>

=over 4

=item *

B<-?> is now a synonym for B<-h>

=back

=head1 Testing

Tests were added and changed to reflect the other additions and changes
in this release.

Tests were added and changed to reflect the other additions and
changes in this release.  Furthermore, these significant changes were
made:

=over 4

=item *

ExtUtils-ParseXS test suite improvement

=item *

Hash::Util::FieldHash test suite improvement

=item *

Pod::Html test suite improvement

=item *

Tie::SubstrHash test suite improvement

=item *

Time-HiRes test suite improvement

=item *

Fix several test failures on CygWin and MSWin32.

=back

=head1 Platform Support

=head2 Platform-Specific Notes

=over 4

=item z/OS

=over 4

=item *

Update z/OS (previously called OS/390) README to describe ASCII and EBCDIC builds 
z/OS ASCII Enablement: Manage untagged header errno.h by copy & tag

=back

=back

=over 4

=item Windows

=over 4

=item *

Support for compiling perl on Windows using Microsoft Visual Studio 2022
(containing Visual C++ 14.3) has been added.

=back

=back

=head1 Internal Changes

=over 4

=item *

Add missing aliases for \p{Present_In}

=item *

Change C<pack> U behavior for EBCDIC

=item *

sv_upgrade: use c99 compound literals to initialize xpvav/xpvhv

=back

=head1 Acknowledgements

Perl 5.35.8 represents approximately 4 weeks of development since Perl
5.35.7 and contains approximately 29,000 lines of changes across 190 files
from 19 authors.

Excluding auto-generated files, documentation and release tools, there were
approximately 23,000 lines of changes to 120 .pm, .t, .c and .h files.

Perl continues to flourish into its fourth decade thanks to a vibrant
community of users and developers. The following people are known to have
contributed the improvements that became Perl 5.35.8:

Chris 'BinGOs' Williams, Craig A. Berry, David Mitchell, E. Choroba,
François Perrad, Graham Knop, Ivan Panchenko, James E Keenan, Karl
Williamson, Michiel Beijen, Mike Fulton, Neil Bowers, Nicholas Clark,
Nicolas R., Paul Evans, Richard Leach, Sawyer X, TAKAI Kousuke, Tomasz
Konojacki.

The list above is almost certainly incomplete as it is automatically
generated from version control history. In particular, it does not include
the names of the (very much appreciated) contributors who reported issues to
the Perl bug tracker.

Many of the changes included in this version originated in the CPAN modules
included in Perl's core. We're grateful to the entire CPAN community for
helping Perl to flourish.

For a more complete list of all of Perl's historical contributors, please
see the F<AUTHORS> file in the Perl source distribution.

=head1 Reporting Bugs

If you find what you think is a bug, you might check the perl bug database
at L<https://github.com/Perl/perl5/issues>.  There may also be information at
L<http://www.perl.org/>, the Perl Home Page.

If you believe you have an unreported bug, please open an issue at
L<https://github.com/Perl/perl5/issues>.  Be sure to trim your bug down to a
tiny but sufficient test case.

If the bug you are reporting has security implications which make it
inappropriate to send to a public issue tracker, then see
L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
for details of how to report the issue.

=head1 Give Thanks

If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
you can do so by running the C<perlthanks> program:

    perlthanks

This will send an email to the Perl 5 Porters list with your show of thanks.

=head1 SEE ALSO

The F<Changes> file for an explanation of how to view exhaustive details on
what changed.

The F<INSTALL> file for how to build Perl.

The F<README> file for general stuff.

The F<Artistic> and F<Copying> files for copyright information.

=cut