summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
blob: 482733026b0af2b0efc2a4a8f8172b1e3d71cbf3 (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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
=encoding utf8

=head1 NAME

perldelta - what is new for perl v5.33.5

=head1 DESCRIPTION

This document describes differences between the 5.33.4 release and the 5.33.5
release.

If you are upgrading from an earlier release such as 5.33.3, first read
L<perl5334delta>, which describes differences between 5.33.3 and 5.33.4.

=head1 Core Enhancements

=head2 New octal syntax C<0oI<ddddd>>

It is now possible to specify octal literals with C<0o> prefixes,
as in C<0o123_456>, parallel to the existing construct to specify
hexadecimal literal C<0xI<ddddd>> and binary literal C<0bI<ddddd>>.
Also, the builtin C<oct()> function now accepts this new syntax.

See L<perldata/Scalar value constructors> and L<perlfunc/oct EXPR>.

=head1 Modules and Pragmata

=head2 Updated Modules and Pragmata

=over 4

=item *

L<Carp> has been upgraded from version 1.50 to 1.51.

=item *

L<Config::Perl::V> has been upgraded from version 0.32 to 0.33.

=item *

L<DynaLoader> has been upgraded from version 1.48 to 1.49.

=item *

L<Encode> has been upgraded from version 3.07 to 3.08.

=item *

L<ExtUtils::Install> has been upgraded from version 2.18 to 2.20.

=item *

L<ExtUtils::ParseXS> has been upgraded from version 3.41 to 3.42.

=item *

L<File::Copy> has been upgraded from version 2.34 to 2.35.

=item *

L<File::Find> has been upgraded from version 1.37 to 1.38.

=item *

L<File::Spec> has been upgraded from version 3.79 to 3.80.

=item *

The libnet distribution has been upgraded from version 3.11 to 3.12.

=item *

L<Module::CoreList> has been upgraded from version 5.20201120 to 5.20201220.

=item *

L<ODBM_File> has been upgraded from version 1.16 to 1.17.

=item *

L<Opcode> has been upgraded from version 1.48 to 1.49.

=item *

L<PerlIO::via::QuotedPrint> has been upgraded from version 0.08 to 0.09.

=item *

L<POSIX> has been upgraded from version 1.95 to 1.96.

=item *

L<Test::Harness> has been upgraded from version 3.42 to 3.43.

=item *

L<Text::Balanced> has been upgraded from version 2.03 to 2.04.

=item *

L<Time::HiRes> has been upgraded from version 1.9765 to 1.9766.

=item *

L<warnings> has been upgraded from version 1.48 to 1.49.

=item *

L<XS::APItest> has been upgraded from version 1.13 to 1.14.

=back

=head1 Documentation

=head2 New Documentation

=head3 L<perldocstyle> has been added to F<pod/>.

This document is a guide for the authorship and maintenance of the
documentation that ships with Perl.

=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<perlfunc>

=over 4

=item *

L<msgsnd()|perlfunc/msgsnd> documented a length field included in the
packed C<MSG> parameter to msgsnd(), but there was no such field.
C<MSG> contains only the type and the message content.

=back

=head1 Testing

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

=over 4

=item *

When testing in parallel on many-core platforms, you can now cause the
test suite to finish somewhat earlier, but with less logical ordering of
the tests, by setting

 PERL_TEST_HARNESS_ASAP=1

while running the test suite.

=back

=head2 Platform-Specific Notes

=over 4

=item Windows

Windows now supports L<symlink()|perlfunc/symlink> and
L<readlink()|perlfunc/readlink>, and L<lstat()|perlfunc/lstat> is no
longer an alias for L<stat()|perlfunc/stat>.
L<[#18005]|https://github.com/Perl/perl5/issues/18005>.

Unlike POSIX systems, creating a symbolic link on Windows requires
either elevated privileges or Windows 10 1703 or later with Developer
Mode enabled.

stat(), including C<stat FILEHANDLE>, and lstat() now uses our own
implementation that populates the device C<dev> and inode numbers
C<ino> returned rather than always returning zero.  The number of
links C<nlink> field is now always populated.

L<< C<${^WIN32_SLOPPY_STAT}> |perlvar/${^WIN32_SLOPPY_STAT} >> previously
controlled whether the C<nlink> field was populated requiring a
separate Windows API call to fetch, since nlink and the other
information required for stat() is now retrieved in a single API call.

The C<-r> and C<-w> operators now return true for the C<STDIN>,
C<STDOUT> and C<STDERR> handles.  Unfortunately it still won't return
true for duplicates of those handles.
L<[#8502]|https://github.com/Perl/perl5/issues/8502>.

The times returned by stat() and lstat() are no longer incorrect
across Daylight Savings Time adjustments.
L<[#6080]|https://github.com/Perl/perl5/issues/6080>.

C<-x> on a filehandle should now match C<-x> on the corresponding
filename on Vista or later.
L<[#4145]|https://github.com/Perl/perl5/issues/4145>.

C<-e '"'> no longer incorrectly returns true.
L<[#12431]|https://github.com/Perl/perl5/issues/12431>.

=back

=head1 Internal Changes

=over 4

=item *

All C<SvTRUE>-ish functions now evaluate their arguments exactly once.
In 5.32, plain L<perlapi/C<SvTRUE>> was changed to do that; now the rest
do as well.

=item *

Unicode is now a first class citizen when considering the pattern /A*B/ where
A and B are arbitrary.  The pattern matching code tries to make a tight loop
to match the span of A's.  The logic of this was now really updated with
support for UTF-8.

=back

=head1 Selected Bug Fixes

=over 4

=item *

L<semctl()|perlfunc/semctl>, L<msgctl()|perlfunc/msgctl>, and
L<shmctl()|perlfunc/shmctl> now properly reset the UTF-8 flag on the
C<ARG> parameter if it's modified for C<IPC_STAT> or C<GETALL>
operations.

=item *

semctl(), msgctl(), and shmctl() now attempt to downgrade the C<ARG>
parameter if it's value is being used as input to C<IPC_SET> or
C<SETALL> calls.  A failed downgrade will thrown an exception.

=item *

In cases where semctl(), msgctl() or shmctl() would treat the C<ARG>
parameter as a pointer, an undefined value no longer generates a
warning.  In most such calls the pointer isn't used anyway and this
allows you to supply C<undef> for a value not used by the underlying
function.

=item *

L<semop()|perlfunc/semop> now downgrades the C<OPSTRING> parameter,
L<msgsnd()|perlfunc/msgsnd> now downgrades the C<MSG> parameter and
L<shmwrite|perlfunc/shmwrite> now downgrades the C<STRING> parameter
to treat them as bytes.  Previously they would be left upgraded,
providing a corrupted structure to the underlying function call.

=item *

L<msgrcv()|perlfunc/msgrcv> now properly resets the UTF-8 flag the
C<VAR> parameter when it is modified.  Previusly the UTF-8 flag could
be left on, resulting in a possibly corrupt result in C<VAR>.

=back

=head1 Known Problems

None

=head1 Errata From Previous Releases

None

=head1 Acknowledgements

Perl 5.33.5 represents approximately 4 weeks of development since Perl
5.33.4 and contains approximately 22,000 lines of changes across 370 files
from 27 authors.

Excluding auto-generated files, documentation and release tools, there were
approximately 15,000 lines of changes to 220 .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.33.5:

Branislav ZahradnĂ­k, Chris 'BinGOs' Williams, Dan Book, Dan Kogai, David
Cantrell, David Mitchell, Graham Knop, H.Merijn Brand, Jae Bradley, James E
Keenan, Jason McIntosh, jkahrman, John Karr, Karen Etheridge, Karl
Williamson, Leon Timmermans, Max Maischein, Paul Evans, Sawyer X, Sevan
Janiyan, Shlomi Fish, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, Tomasz
Konojacki, Tom Hukins, Tony Cook.

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