summaryrefslogtreecommitdiff
path: root/pod/perl5294delta.pod
blob: aae8ea9297ff53d0c66f9837a31b5dfc4e7e394a (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
=encoding utf8

=head1 NAME

perl5294delta - what is new for perl v5.29.4

=head1 DESCRIPTION

This document describes differences between the 5.29.3 release and the 5.29.4
release.

If you are upgrading from an earlier release such as 5.29.2, first read
L<perl5293delta>, which describes differences between 5.29.2 and 5.29.3.

=head1 Core Enhancements

=head2 The upper limit C<"n"> specifiable in a regular expression
quantifier of the form C<"{m,n}"> has been doubled to 65534

The meaning of an unbounded upper quantifier C<"{m,}"> remains unchanged.
It matches 2**31 - 1 times on most platforms, and more on ones where a C
language short variable is more than 4 bytes long.

=head1 Incompatible Changes

=head2 Assigning non-zero to C<$[> is fatal

Setting L<< C<$[>|perlvar/$[ >> to a non-zero value has been deprecated since
Perl 5.12 and now throws a fatal error.
See L<<< perldeprecation/Assigning non-zero to C<< $[ >> is fatal >>>.

=head2 Previously deprecated sysread()/syswrite() on :utf8 handles now fatal

Calling sysread(), syswrite(), send() or recv() on a C<:utf8> handle,
whether applied explicitly or implicitly, is now fatal.  This was
deprecated in perl 5.24.

There were two problems with calling these functions on C<:utf8>
handles:

=over

=item *

All four functions only paid attention to the C<:utf8> flag.  Other
layers were completely ignored, so a handle with
C<:encoding(UTF-16LE)> layer would be treated as UTF-8.  Other layers,
such as compression are completely ignored with or without the
C<:utf8> flag.

=item *

sysread() and recv() would read from the handle, skipping any
validation by the layers, and do no validation of their own.  This
could lead to invalidly encoded perl scalars.

=back

[perl #125760]

=head2 my() in false conditional prohibited

Declarations such as C<my $x if 0> are no longer permitted.

[perl #133543]

=head2 Fatalize $* and $#

These special variables, long deprecated, now throw exceptions when used.

[perl #133583]

=head2 Fatalize unqualified use of dump()

The C<dump()> function, long discouraged, may no longer be used unless it is
fully qualified, I<i.e.>, C<CORE::dump()>.

[perl #133584]

=head2 Remove File::Glob::glob()

The C<File::Glob::glob()> function, long deprecated, has been removed and now
throws an exception which advises use of C<File::Glob::bsd_glob()> instead.

[perl #133586]

=head1 Modules and Pragmata

=head2 Updated Modules and Pragmata

=over 4

=item *

L<B> has been upgraded from version 1.74 to 1.75.

=item *

L<B::Concise> has been upgraded from version 1.003 to 1.004.

=item *

L<B::Deparse> has been upgraded from version 1.48 to 1.49.

=item *

L<bignum> has been upgraded from version 0.50 to 0.51.

=item *

L<bytes> has been upgraded from version 1.06 to 1.07.

=item *

L<CPAN> has been upgraded from version 2.20-TRIAL to 2.21-TRIAL.

=item *

L<Devel::Peek> has been upgraded from version 1.27 to 1.28.

=item *

L<feature> has been upgraded from version 1.53 to 1.54.

=item *

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

=item *

L<File::Glob> has been upgraded from version 1.31 to 1.32.

=item *

L<Module::CoreList> has been upgraded from version 5.20180920 to 5.20181020.

=item *

L<sigtrap> has been upgraded from version 1.08 to 1.09.

=item *

L<Unicode::UCD> has been upgraded from version 0.71 to 0.72.

=item *

L<vars> has been upgraded from version 1.04 to 1.05.

C<vars.pm> no longer disables non-vars strict when checking if strict
vars is enabled.  [perl #130674]

=back

=head2 Removed Modules and Pragmata

=over 4

=item *

B::Debug is no longer distributed with the core distribution.  It remains
available on CPAN.

=back

=head1 Internal Changes

=over 4

=item *

The sizing pass has been eliminated from the regular expression
compiler.  An extra pass may instead be needed in some cases to count
the number of parenthetical capture groups.

=back

=head1 Selected Bug Fixes

=over 4

=item *

C<pack "u", "invalid uuencoding"> now properly NUL terminates the
zero-length SV produced.  [perl #132655]

=item *

Improve the debugging output for calloc() calls with C<-Dm>.  [perl #133439]

=item *

Regexp script runs were failing to permit ASCII digits in some cases.
[perl #133547]

=item *

On Unix-like systems supporting a platform-specific technique for
determining L<< C<$^X>|perlvar/$^X >>, Perl failed to fall back to the
generic technique when the platform-specific one fails (for example, a Linux
system with /proc not mounted).  This was a regression in Perl 5.28.0.
[perl #133573]

=back

=head1 Acknowledgements

Perl 5.29.4 represents approximately 4 weeks of development since Perl
5.29.3 and contains approximately 8,400 lines of changes across 180 files
from 17 authors.

Excluding auto-generated files, documentation and release tools, there were
approximately 6,300 lines of changes to 110 .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.29.4:

Aaron Crane, Alexandr Savca, Andreas König, Chris 'BinGOs' Williams, Craig
A. Berry, Dagfinn Ilmari Mannsåker, David Mitchell, Eugen Konkov, James E
Keenan, John SJ Anderson, Karl Williamson, Matthias Bethke, Nicolas R.,
Sisyphus, Slaven Rezic, Tomasz Konojacki, 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://rt.perl.org/> .  There may also be information at
L<http://www.perl.org/> , the Perl Home Page.

If you believe you have an unreported bug, please run the L<perlbug> program
included with your release.  Be sure to trim your bug down to a tiny but
sufficient test case.  Your bug report, along with the output of C<perl -V>,
will be sent off to perlbug@perl.org to be analysed by the Perl porting team.

If the bug you are reporting has security implications which make it
inappropriate to send to a publicly archived mailing list, 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