Debian Codegraph @

upstream/fedora-44/man1/perl5180delta.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERL5180DELTA 1"
61 .TH PERL5180DELTA 1 2026-03-09 "perl v5.42.1" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perl5180delta \- what is new for perl v5.18.0
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 This document describes differences between the v5.16.0 release and the v5.18.0
71 release.
72 .PP
73 If you are upgrading from an earlier release such as v5.14.0, first read
74 perl5160delta, which describes differences between v5.14.0 and v5.16.0.
75 .SH "Core Enhancements"
76 .IX Header "Core Enhancements"
77 .SS "New mechanism for experimental features"
78 .IX Subsection "New mechanism for experimental features"
79 Newly\-added experimental features will now require this incantation:
80 .PP
81 .Vb 2
82 \& no warnings "experimental::feature_name";
83 \& use feature "feature_name"; # would warn without the prev line
84 .Ve
85 .PP
86 There is a new warnings category, called "experimental", containing
87 warnings that the feature pragma emits when enabling experimental
88 features.
89 .PP
90 Newly\-added experimental features will also be given special warning IDs,
91 which consist of "experimental::" followed by the name of the feature. (The
92 plan is to extend this mechanism eventually to all warnings, to allow them
93 to be enabled or disabled individually, and not just by category.)
94 .PP
95 By saying
96 .PP
97 .Vb 1
98 \& no warnings "experimental::feature_name";
99 .Ve
100 .PP
101 you are taking responsibility for any breakage that future changes to, or
102 removal of, the feature may cause.
103 .PP
104 Since some features (like \f(CW\*(C`~~\*(C'\fR or \f(CW\*(C`my $_\*(C'\fR) now emit experimental warnings,
105 and you may want to disable them in code that is also run on perls that do not
106 recognize these warning categories, consider using the \f(CW\*(C`if\*(C'\fR pragma like this:
107 .PP
108 .Vb 1
109 \& no if $] >= 5.018, warnings => "experimental::feature_name";
110 .Ve
111 .PP
112 Existing experimental features may begin emitting these warnings, too. Please
113 consult perlexperiment for information on which features are considered
114 experimental.
115 .SS "Hash overhaul"
116 .IX Subsection "Hash overhaul"
117 Changes to the implementation of hashes in perl v5.18.0 will be one of the most
118 visible changes to the behavior of existing code.
119 .PP
120 By default, two distinct hash variables with identical keys and values may now
121 provide their contents in a different order where it was previously identical.
122 .PP
123 When encountering these changes, the key to cleaning up from them is to accept
124 that \fBhashes are unordered collections\fR and to act accordingly.
125 .PP
126 \fIHash randomization\fR
127 .IX Subsection "Hash randomization"
128 .PP
129 The seed used by Perl\*(Aqs hash function is now random. This means that the
130 order which keys/values will be returned from functions like \f(CWkeys()\fR,
131 \&\f(CWvalues()\fR, and \f(CWeach()\fR will differ from run to run.
132 .PP
133 This change was introduced to make Perl\*(Aqs hashes more robust to algorithmic
134 complexity attacks, and also because we discovered that it exposes hash
135 ordering dependency bugs and makes them easier to track down.
136 .PP
137 Toolchain maintainers might want to invest in additional infrastructure to
138 test for things like this. Running tests several times in a row and then
139 comparing results will make it easier to spot hash order dependencies in
140 code. Authors are strongly encouraged not to expose the key order of
141 Perl\*(Aqs hashes to insecure audiences.
142 .PP
143 Further, every hash has its own iteration order, which should make it much
144 more difficult to determine what the current hash seed is.
145 .PP
146 \fINew hash functions\fR
147 .IX Subsection "New hash functions"
148 .PP
149 Perl v5.18 includes support for multiple hash functions, and changed
150 the default (to ONE_AT_A_TIME_HARD), you can choose a different
151 algorithm by defining a symbol at compile time. For a current list,
152 consult the \fIINSTALL\fR document. Note that as of Perl v5.18 we can
153 only recommend use of the default or SIPHASH. All the others are
154 known to have security issues and are for research purposes only.
155 .PP
156 \fIPERL_HASH_SEED environment variable now takes a hex value\fR
157 .IX Subsection "PERL_HASH_SEED environment variable now takes a hex value"
158 .PP
159 \&\f(CW\*(C`PERL_HASH_SEED\*(C'\fR no longer accepts an integer as a parameter;
160 instead the value is expected to be a binary value encoded in a hex
161 string, such as "0xf5867c55039dc724". This is to make the
162 infrastructure support hash seeds of arbitrary lengths, which might
163 exceed that of an integer. (SipHash uses a 16 byte seed.)
164 .PP
165 \fIPERL_PERTURB_KEYS environment variable added\fR
166 .IX Subsection "PERL_PERTURB_KEYS environment variable added"
167 .PP
168 The \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR environment variable allows one to control the level of
169 randomization applied to \f(CW\*(C`keys\*(C'\fR and friends.
170 .PP
171 When \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR is 0, perl will not randomize the key order at all. The
172 chance that \f(CW\*(C`keys\*(C'\fR changes due to an insert will be the same as in previous
173 perls, basically only when the bucket size is changed.
174 .PP
175 When \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR is 1, perl will randomize keys in a non\-repeatable
176 way. The chance that \f(CW\*(C`keys\*(C'\fR changes due to an insert will be very high. This
177 is the most secure and default mode.
178 .PP
179 When \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR is 2, perl will randomize keys in a repeatable way.
180 Repeated runs of the same program should produce the same output every time.
181 .PP
182 \&\f(CW\*(C`PERL_HASH_SEED\*(C'\fR implies a non\-default \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR setting. Setting
183 \&\f(CW\*(C`PERL_HASH_SEED=0\*(C'\fR (exactly one 0) implies \f(CW\*(C`PERL_PERTURB_KEYS=0\*(C'\fR (hash key
184 randomization disabled); setting \f(CW\*(C`PERL_HASH_SEED\*(C'\fR to any other value implies
185 \&\f(CW\*(C`PERL_PERTURB_KEYS=2\*(C'\fR (deterministic and repeatable hash key randomization).
186 Specifying \f(CW\*(C`PERL_PERTURB_KEYS\*(C'\fR explicitly to a different level overrides this
187 behavior.
188 .PP
189 \fR\f(BIHash::Util::hash_seed()\fR\fI now returns a string\fR
190 .IX Subsection "Hash::Util::hash_seed() now returns a string"
191 .PP
192 \&\fBHash::Util::hash_seed()\fR now returns a string instead of an integer. This
193 is to make the infrastructure support hash seeds of arbitrary lengths
194 which might exceed that of an integer. (SipHash uses a 16 byte seed.)
195 .PP
196 \fIOutput of PERL_HASH_SEED_DEBUG has been changed\fR
197 .IX Subsection "Output of PERL_HASH_SEED_DEBUG has been changed"
198 .PP
199 The environment variable PERL_HASH_SEED_DEBUG now makes perl show both the
200 hash function perl was built with, \fIand\fR the seed, in hex, in use for that
201 process. Code parsing this output, should it exist, must change to accommodate
202 the new format. Example of the new format:
203 .PP
204 .Vb 2
205 \& $ PERL_HASH_SEED_DEBUG=1 ./perl \-e1
206 \& HASH_FUNCTION = MURMUR3 HASH_SEED = 0x1476bb9f
207 .Ve
208 .SS "Upgrade to Unicode 6.2"
209 .IX Subsection "Upgrade to Unicode 6.2"
210 Perl now supports Unicode 6.2. A list of changes from Unicode
211 6.1 is at <http://www.unicode.org/versions/Unicode6.2.0>.
212 .SS "Character name aliases may now include non\-Latin1\-range characters"
213 .IX Subsection "Character name aliases may now include non-Latin1-range characters"
214 It is possible to define your own names for characters for use in
215 \&\f(CW\*(C`\eN{...}\*(C'\fR, \f(CWcharnames::vianame()\fR, etc. These names can now
216 consist of characters from the whole Unicode range. This allows for
217 names to be in your native language, and not just English. Certain
218 restrictions apply to the characters that may be used (you can\*(Aqt define
219 a name that has punctuation in it, for example). See "CUSTOM
220 ALIASES" in charnames.
221 .SS "New DTrace probes"
222 .IX Subsection "New DTrace probes"
223 The following new DTrace probes have been added:
224 .IP \(bu 4
225 \&\f(CW\*(C`op\-entry\*(C'\fR
226 .IP \(bu 4
227 \&\f(CW\*(C`loading\-file\*(C'\fR
228 .IP \(bu 4
229 \&\f(CW\*(C`loaded\-file\*(C'\fR
230 .ie n .SS """${^LAST_FH}"""
231 .el .SS \f(CW${^LAST_FH}\fP
232 .IX Subsection "${^LAST_FH}"
233 This new variable provides access to the filehandle that was last read.
234 This is the handle used by \f(CW$.\fR and by \f(CW\*(C`tell\*(C'\fR and \f(CW\*(C`eof\*(C'\fR without
235 arguments.
236 .SS "Regular Expression Set Operations"
237 .IX Subsection "Regular Expression Set Operations"
238 This is an \fBexperimental\fR feature to allow matching against the union,
239 intersection, etc., of sets of code points, similar to
240 Unicode::Regex::Set. It can also be used to extend \f(CW\*(C`/x\*(C'\fR processing
241 to [bracketed] character classes, and as a replacement of user\-defined
242 properties, allowing more complex expressions than they do. See
243 "Extended Bracketed Character Classes" in perlrecharclass.
244 .SS "Lexical subroutines"
245 .IX Subsection "Lexical subroutines"
246 This new feature is still considered \fBexperimental\fR. To enable it:
247 .PP
248 .Vb 3
249 \& use 5.018;
250 \& no warnings "experimental::lexical_subs";
251 \& use feature "lexical_subs";
252 .Ve
253 .PP
254 You can now declare subroutines with \f(CW\*(C`state sub foo\*(C'\fR, \f(CW\*(C`my sub foo\*(C'\fR, and
255 \&\f(CW\*(C`our sub foo\*(C'\fR. (\f(CW\*(C`state sub\*(C'\fR requires that the "state" feature be
256 enabled, unless you write it as \f(CW\*(C`CORE::state sub foo\*(C'\fR.)
257 .PP
258 \&\f(CW\*(C`state sub\*(C'\fR creates a subroutine visible within the lexical scope in which
259 it is declared. The subroutine is shared between calls to the outer sub.
260 .PP
261 \&\f(CW\*(C`my sub\*(C'\fR declares a lexical subroutine that is created each time the
262 enclosing block is entered. \f(CW\*(C`state sub\*(C'\fR is generally slightly faster than
263 \&\f(CW\*(C`my sub\*(C'\fR.
264 .PP
265 \&\f(CW\*(C`our sub\*(C'\fR declares a lexical alias to the package subroutine of the same
266 name.
267 .PP
268 For more information, see "Lexical Subroutines" in perlsub.
269 .SS "Computed Labels"
270 .IX Subsection "Computed Labels"
271 The loop controls \f(CW\*(C`next\*(C'\fR, \f(CW\*(C`last\*(C'\fR and \f(CW\*(C`redo\*(C'\fR, and the special \f(CW\*(C`dump\*(C'\fR
272 operator, now allow arbitrary expressions to be used to compute labels at run
273 time. Previously, any argument that was not a constant was treated as the
274 empty string.
275 .SS "More CORE:: subs"
276 .IX Subsection "More CORE:: subs"
277 Several more built\-in functions have been added as subroutines to the
278 CORE:: namespace \- namely, those non\-overridable keywords that can be
279 implemented without custom parsers: \f(CW\*(C`defined\*(C'\fR, \f(CW\*(C`delete\*(C'\fR, \f(CW\*(C`exists\*(C'\fR,
280 \&\f(CW\*(C`glob\*(C'\fR, \f(CW\*(C`pos\*(C'\fR, \f(CW\*(C`prototype\*(C'\fR, \f(CW\*(C`scalar\*(C'\fR, \f(CW\*(C`split\*(C'\fR, \f(CW\*(C`study\*(C'\fR, and \f(CW\*(C`undef\*(C'\fR.
281 .PP
282 As some of these have prototypes, \f(CWprototype(\*(AqCORE::...\*(Aq)\fR has been
283 changed to not make a distinction between overridable and non\-overridable
284 keywords. This is to make \f(CWprototype(\*(AqCORE::pos\*(Aq)\fR consistent with
285 \&\f(CWprototype(&CORE::pos)\fR.
286 .ie n .SS """kill"" with negative signal names"
287 .el .SS "\f(CWkill\fP with negative signal names"
288 .IX Subsection "kill with negative signal names"
289 \&\f(CW\*(C`kill\*(C'\fR has always allowed a negative signal number, which kills the
290 process group instead of a single process. It has also allowed signal
291 names. But it did not behave consistently, because negative signal names
292 were treated as 0. Now negative signals names like \f(CW\*(C`\-INT\*(C'\fR are supported
293 and treated the same way as \-2 [perl #112990].
294 .SH Security
295 .IX Header "Security"
296 .SS "See also: hash overhaul"
297 .IX Subsection "See also: hash overhaul"
298 Some of the changes in the hash overhaul were made to
299 enhance security. Please read that section.
300 .ie n .SS """Storable"" security warning in documentation"
301 .el .SS "\f(CWStorable\fP security warning in documentation"
302 .IX Subsection "Storable security warning in documentation"
303 The documentation for \f(CW\*(C`Storable\*(C'\fR now includes a section which warns readers
304 of the danger of accepting Storable documents from untrusted sources. The
305 short version is that deserializing certain types of data can lead to loading
306 modules and other code execution. This is documented behavior and wanted
307 behavior, but this opens an attack vector for malicious entities.
308 .ie n .SS """Locale::Maketext"" allowed code injection via a malicious template"
309 .el .SS "\f(CWLocale::Maketext\fP allowed code injection via a malicious template"
310 .IX Subsection "Locale::Maketext allowed code injection via a malicious template"
311 If users could provide a translation string to Locale::Maketext, this could be
312 used to invoke arbitrary Perl subroutines available in the current process.
313 .PP
314 This has been fixed, but it is still possible to invoke any method provided by
315 \&\f(CW\*(C`Locale::Maketext\*(C'\fR itself or a subclass that you are using. One of these
316 methods in turn will invoke the Perl core\*(Aqs \f(CW\*(C`sprintf\*(C'\fR subroutine.
317 .PP
318 In summary, allowing users to provide translation strings without auditing
319 them is a bad idea.
320 .PP
321 This vulnerability is documented in CVE\-2012\-6329.
322 .SS "Avoid calling memset with a negative count"
323 .IX Subsection "Avoid calling memset with a negative count"
324 Poorly written perl code that allows an attacker to specify the count to perl\*(Aqs
325 \&\f(CW\*(C`x\*(C'\fR string repeat operator can already cause a memory exhaustion
326 denial\-of\-service attack. A flaw in versions of perl before v5.15.5 can escalate
327 that into a heap buffer overrun; coupled with versions of glibc before 2.16, it
328 possibly allows the execution of arbitrary code.
329 .PP
330 The flaw addressed to this commit has been assigned identifier CVE\-2012\-5195
331 and was researched by Tim Brown.
332 .SH "Incompatible Changes"
333 .IX Header "Incompatible Changes"
334 .SS "See also: hash overhaul"
335 .IX Subsection "See also: hash overhaul"
336 Some of the changes in the hash overhaul are not fully
337 compatible with previous versions of perl. Please read that section.
338 .ie n .SS "An unknown character name in ""\eN{...}"" is now a syntax error"
339 .el .SS "An unknown character name in \f(CW\eN{...}\fP is now a syntax error"
340 .IX Subsection "An unknown character name in N{...} is now a syntax error"
341 Previously, it warned, and the Unicode REPLACEMENT CHARACTER was
342 substituted. Unicode now recommends that this situation be a syntax
343 error. Also, the previous behavior led to some confusing warnings and
344 behaviors, and since the REPLACEMENT CHARACTER has no use other than as
345 a stand\-in for some unknown character, any code that has this problem is
346 buggy.
347 .ie n .SS "Formerly deprecated characters in ""\eN{}"" character name aliases are now errors"
348 .el .SS "Formerly deprecated characters in \f(CW\eN{}\fP character name aliases are now errors"
349 .IX Subsection "Formerly deprecated characters in N{} character name aliases are now errors"
350 Since v5.12.0, it has been deprecated to use certain characters in
351 user\-defined \f(CW\*(C`\eN{...}\*(C'\fR character names. These now cause a syntax
352 error. For example, it is now an error to begin a name with a digit,
353 such as in
354 .PP
355 .Vb 1
356 \& my $undraftable = "\eN{4F}"; # Syntax error!
357 .Ve
358 .PP
359 or to have commas anywhere in the name. See "CUSTOM ALIASES" in charnames.
360 .ie n .SS """\eN{BELL}"" now refers to U+1F514 instead of U+0007"
361 .el .SS "\f(CW\eN{BELL}\fP now refers to U+1F514 instead of U+0007"
362 .IX Subsection "N{BELL} now refers to U+1F514 instead of U+0007"
363 Unicode 6.0 reused the name "BELL" for a different code point than it
364 traditionally had meant. Since Perl v5.14, use of this name still
365 referred to U+0007, but would raise a deprecation warning. Now, "BELL"
366 refers to U+1F514, and the name for U+0007 is "ALERT". All the
367 functions in charnames have been correspondingly updated.
368 .SS "New Restrictions in Multi\-Character Case\-Insensitive Matching in Regular Expression Bracketed Character Classes"
369 .IX Subsection "New Restrictions in Multi-Character Case-Insensitive Matching in Regular Expression Bracketed Character Classes"
370 Unicode has now withdrawn their previous recommendation for regular
371 expressions to automatically handle cases where a single character can
372 match multiple characters case\-insensitively, for example, the letter
373 LATIN SMALL LETTER SHARP S and the sequence \f(CW\*(C`ss\*(C'\fR. This is because
374 it turns out to be impracticable to do this correctly in all
375 circumstances. Because Perl has tried to do this as best it can, it
376 will continue to do so. (We are considering an option to turn it off.)
377 However, a new restriction is being added on such matches when they
378 occur in [bracketed] character classes. People were specifying
379 things such as \f(CW\*(C`/[\e0\-\exff]/i\*(C'\fR, and being surprised that it matches the
380 two character sequence \f(CW\*(C`ss\*(C'\fR (since LATIN SMALL LETTER SHARP S occurs in
381 this range). This behavior is also inconsistent with using a
382 property instead of a range: \f(CW\*(C`\ep{Block=Latin1}\*(C'\fR also includes LATIN
383 SMALL LETTER SHARP S, but \f(CW\*(C`/[\ep{Block=Latin1}]/i\*(C'\fR does not match \f(CW\*(C`ss\*(C'\fR.
384 The new rule is that for there to be a multi\-character case\-insensitive
385 match within a bracketed character class, the character must be
386 explicitly listed, and not as an end point of a range. This more
387 closely obeys the Principle of Least Astonishment. See
388 "Bracketed Character Classes" in perlrecharclass. Note that a bug [perl
389 #89774], now fixed as part of this change, prevented the previous
390 behavior from working fully.
391 .SS "Explicit rules for variable names and identifiers"
392 .IX Subsection "Explicit rules for variable names and identifiers"
393 Due to an oversight, single character variable names in v5.16 were
394 completely unrestricted. This opened the door to several kinds of
395 insanity. As of v5.18, these now follow the rules of other identifiers,
396 in addition to accepting characters that match the \f(CW\*(C`\ep{POSIX_Punct}\*(C'\fR
397 property.
398 .PP
399 There is no longer any difference in the parsing of identifiers
400 specified by using braces versus without braces. For instance, perl
401 used to allow \f(CW\*(C`${foo:bar}\*(C'\fR (with a single colon) but not \f(CW$foo:bar\fR.
402 Now that both are handled by a single code path, they are both treated
403 the same way: both are forbidden. Note that this change is about the
404 range of permissible literal identifiers, not other expressions.
405 .SS "Vertical tabs are now whitespace"
406 .IX Subsection "Vertical tabs are now whitespace"
407 No one could recall why \f(CW\*(C`\es\*(C'\fR didn\*(Aqt match \f(CW\*(C`\ecK\*(C'\fR, the vertical tab.
408 Now it does. Given the extreme rarity of that character, very little
409 breakage is expected. That said, here\*(Aqs what it means:
410 .PP
411 \&\f(CW\*(C`\es\*(C'\fR in a regex now matches a vertical tab in all circumstances.
412 .PP
413 Literal vertical tabs in a regex literal are ignored when the \f(CW\*(C`/x\*(C'\fR
414 modifier is used.
415 .PP
416 Leading vertical tabs, alone or mixed with other whitespace, are now
417 ignored when interpreting a string as a number. For example:
418 .PP
419 .Vb 2
420 \& $dec = " \ecK \et 123";
421 \& $hex = " \ecK \et 0xF";
422 \&
423 \& say 0 + $dec; # was 0 with warning, now 123
424 \& say int $dec; # was 0, now 123
425 \& say oct $hex; # was 0, now 15
426 .Ve
427 .ie n .SS """/(?{})/"" and ""/(??{})/"" have been heavily reworked"
428 .el .SS "\f(CW/(?{})/\fP and \f(CW/(??{})/\fP have been heavily reworked"
429 .IX Subsection "/(?{})/ and /(??{})/ have been heavily reworked"
430 The implementation of this feature has been almost completely rewritten.
431 Although its main intent is to fix bugs, some behaviors, especially
432 related to the scope of lexical variables, will have changed. This is
433 described more fully in the "Selected Bug Fixes" section.
434 .SS "Stricter parsing of substitution replacement"
435 .IX Subsection "Stricter parsing of substitution replacement"
436 It is no longer possible to abuse the way the parser parses \f(CW\*(C`s///e\*(C'\fR like
437 this:
438 .PP
439 .Vb 3
440 \& %_=(_,"Just another ");
441 \& $_="Perl hacker,\en";
442 \& s//_}\->{_/e;print
443 .Ve
444 .ie n .SS """given"" now aliases the global $_"
445 .el .SS "\f(CWgiven\fP now aliases the global \f(CW$_\fP"
446 .IX Subsection "given now aliases the global $_"
447 Instead of assigning to an implicit lexical \f(CW$_\fR, \f(CW\*(C`given\*(C'\fR now makes the
448 global \f(CW$_\fR an alias for its argument, just like \f(CW\*(C`foreach\*(C'\fR. However, it
449 still uses lexical \f(CW$_\fR if there is lexical \f(CW$_\fR in scope (again, just like
450 \&\f(CW\*(C`foreach\*(C'\fR) [perl #114020].
451 .SS "The smartmatch family of features are now experimental"
452 .IX Subsection "The smartmatch family of features are now experimental"
453 Smart match, added in v5.10.0 and significantly revised in v5.10.1, has been
454 a regular point of complaint. Although there are a number of ways in which
455 it is useful, it has also proven problematic and confusing for both users and
456 implementors of Perl. There have been a number of proposals on how to best
457 address the problem. It is clear that smartmatch is almost certainly either
458 going to change or go away in the future. Relying on its current behavior
459 is not recommended.
460 .PP
461 Warnings will now be issued when the parser sees \f(CW\*(C`~~\*(C'\fR, \f(CW\*(C`given\*(C'\fR, or \f(CW\*(C`when\*(C'\fR.
462 To disable these warnings, you can add this line to the appropriate scope:
463 .PP
464 .Vb 1
465 \& no if $] >= 5.018, warnings => "experimental::smartmatch";
466 .Ve
467 .PP
468 Consider, though, replacing the use of these features, as they may change
469 behavior again before becoming stable.
470 .ie n .SS "Lexical $_ is now experimental"
471 .el .SS "Lexical \f(CW$_\fP is now experimental"
472 .IX Subsection "Lexical $_ is now experimental"
473 Since it was introduced in Perl v5.10, it has caused much confusion with no
474 obvious solution:
475 .IP \(bu 4
476 Various modules (e.g., List::Util) expect callback routines to use the
477 global \f(CW$_\fR. \f(CW\*(C`use List::Util \*(Aqfirst\*(Aq; my $_; first { $_ == 1 } @list\*(C'\fR
478 does not work as one would expect.
479 .IP \(bu 4
480 A \f(CW\*(C`my $_\*(C'\fR declaration earlier in the same file can cause confusing closure
481 warnings.
482 .IP \(bu 4
483 The "_" subroutine prototype character allows called subroutines to access
484 your lexical \f(CW$_\fR, so it is not really private after all.
485 .IP \(bu 4
486 Nevertheless, subroutines with a "(@)" prototype and methods cannot access
487 the caller\*(Aqs lexical \f(CW$_\fR, unless they are written in XS.
488 .IP \(bu 4
489 But even XS routines cannot access a lexical \f(CW$_\fR declared, not in the
490 calling subroutine, but in an outer scope, iff that subroutine happened not
491 to mention \f(CW$_\fR or use any operators that default to \f(CW$_\fR.
492 .PP
493 It is our hope that lexical \f(CW$_\fR can be rehabilitated, but this may
494 cause changes in its behavior. Please use it with caution until it
495 becomes stable.
496 .ie n .SS "\fBreadline()\fP with ""$/ = \eN"" now reads N characters, not N bytes"
497 .el .SS "\fBreadline()\fP with \f(CW$/ = \eN\fP now reads N characters, not N bytes"
498 .IX Subsection "readline() with $/ = N now reads N characters, not N bytes"
499 Previously, when reading from a stream with I/O layers such as
500 \&\f(CW\*(C`encoding\*(C'\fR, the \fBreadline()\fR function, otherwise known as the \f(CW\*(C`<>\*(C'\fR
501 operator, would read \fIN\fR bytes from the top\-most layer. [perl #79960]
502 .PP
503 Now, \fIN\fR characters are read instead.
504 .PP
505 There is no change in behaviour when reading from streams with no
506 extra layers, since bytes map exactly to characters.
507 .ie n .SS "Overridden ""glob"" is now passed one argument"
508 .el .SS "Overridden \f(CWglob\fP is now passed one argument"
509 .IX Subsection "Overridden glob is now passed one argument"
510 \&\f(CW\*(C`glob\*(C'\fR overrides used to be passed a magical undocumented second argument
511 that identified the caller. Nothing on CPAN was using this, and it got in
512 the way of a bug fix, so it was removed. If you really need to identify
513 the caller, see Devel::Callsite on CPAN.
514 .SS "Here doc parsing"
515 .IX Subsection "Here doc parsing"
516 The body of a here document inside a quote\-like operator now always begins
517 on the line after the "<<foo" marker. Previously, it was documented to
518 begin on the line following the containing quote\-like operator, but that
519 was only sometimes the case [perl #114040].
520 .SS "Alphanumeric operators must now be separated from the closing delimiter of regular expressions"
521 .IX Subsection "Alphanumeric operators must now be separated from the closing delimiter of regular expressions"
522 You may no longer write something like:
523 .PP
524 .Vb 1
525 \& m/a/and 1
526 .Ve
527 .PP
528 Instead you must write
529 .PP
530 .Vb 1
531 \& m/a/ and 1
532 .Ve
533 .PP
534 with whitespace separating the operator from the closing delimiter of
535 the regular expression. Not having whitespace has resulted in a
536 deprecation warning since Perl v5.14.0.
537 .SS "qw(...) can no longer be used as parentheses"
538 .IX Subsection "qw(...) can no longer be used as parentheses"
539 \&\f(CW\*(C`qw\*(C'\fR lists used to fool the parser into thinking they were always
540 surrounded by parentheses. This permitted some surprising constructions
541 such as \f(CW\*(C`foreach $x qw(a b c) {...}\*(C'\fR, which should really be written
542 \&\f(CW\*(C`foreach $x (qw(a b c)) {...}\*(C'\fR. These would sometimes get the lexer into
543 the wrong state, so they didn\*(Aqt fully work, and the similar \f(CW\*(C`foreach qw(a
544 b c) {...}\*(C'\fR that one might expect to be permitted never worked at all.
545 .PP
546 This side effect of \f(CW\*(C`qw\*(C'\fR has now been abolished. It has been deprecated
547 since Perl v5.13.11. It is now necessary to use real parentheses
548 everywhere that the grammar calls for them.
549 .SS "Interaction of lexical and default warnings"
550 .IX Subsection "Interaction of lexical and default warnings"
551 Turning on any lexical warnings used first to disable all default warnings
552 if lexical warnings were not already enabled:
553 .PP
554 .Vb 3
555 \& $*; # deprecation warning
556 \& use warnings "void";
557 \& $#; # void warning; no deprecation warning
558 .Ve
559 .PP
560 Now, the \f(CW\*(C`debugging\*(C'\fR, \f(CW\*(C`deprecated\*(C'\fR, \f(CW\*(C`glob\*(C'\fR, \f(CW\*(C`inplace\*(C'\fR and \f(CW\*(C`malloc\*(C'\fR warnings
561 categories are left on when turning on lexical warnings (unless they are
562 turned off by \f(CW\*(C`no warnings\*(C'\fR, of course).
563 .PP
564 This may cause deprecation warnings to occur in code that used to be free
565 of warnings.
566 .PP
567 Those are the only categories consisting only of default warnings. Default
568 warnings in other categories are still disabled by \f(CW\*(C`use warnings "category"\*(C'\fR,
569 as we do not yet have the infrastructure for controlling
570 individual warnings.
571 .ie n .SS """state sub"" and ""our sub"""
572 .el .SS "\f(CWstate sub\fP and \f(CWour sub\fP"
573 .IX Subsection "state sub and our sub"
574 Due to an accident of history, \f(CW\*(C`state sub\*(C'\fR and \f(CW\*(C`our sub\*(C'\fR were equivalent
575 to a plain \f(CW\*(C`sub\*(C'\fR, so one could even create an anonymous sub with
576 \&\f(CW\*(C`our sub { ... }\*(C'\fR. These are now disallowed outside of the "lexical_subs"
577 feature. Under the "lexical_subs" feature they have new meanings described
578 in "Lexical Subroutines" in perlsub.
579 .SS "Defined values stored in environment are forced to byte strings"
580 .IX Subsection "Defined values stored in environment are forced to byte strings"
581 A value stored in an environment variable has always been stringified when
582 inherited by child processes.
583 .PP
584 In this release, when assigning to \f(CW%ENV\fR, values are immediately stringified,
585 and converted to be only a byte string.
586 .PP
587 First, it is forced to be only a string. Then if the string is utf8 and the
588 equivalent of \f(CWutf8::downgrade()\fR works, that result is used; otherwise, the
589 equivalent of \f(CWutf8::encode()\fR is used, and a warning is issued about wide
590 characters ("Diagnostics").
591 .ie n .SS """require"" dies for unreadable files"
592 .el .SS "\f(CWrequire\fP dies for unreadable files"
593 .IX Subsection "require dies for unreadable files"
594 When \f(CW\*(C`require\*(C'\fR encounters an unreadable file, it now dies. It used to
595 ignore the file and continue searching the directories in \f(CW@INC\fR
596 [perl #113422].
597 .ie n .SS """gv_fetchmeth_*"" and SUPER"
598 .el .SS "\f(CWgv_fetchmeth_*\fP and SUPER"
599 .IX Subsection "gv_fetchmeth_* and SUPER"
600 The various \f(CW\*(C`gv_fetchmeth_*\*(C'\fR XS functions used to treat a package whose
601 named ended with \f(CW\*(C`::SUPER\*(C'\fR specially. A method lookup on the \f(CW\*(C`Foo::SUPER\*(C'\fR
602 package would be treated as a \f(CW\*(C`SUPER\*(C'\fR method lookup on the \f(CW\*(C`Foo\*(C'\fR package. This
603 is no longer the case. To do a \f(CW\*(C`SUPER\*(C'\fR lookup, pass the \f(CW\*(C`Foo\*(C'\fR stash and the
604 \&\f(CW\*(C`GV_SUPER\*(C'\fR flag.
605 .ie n .SS """split""\*(Aqs first argument is more consistently interpreted"
606 .el .SS "\f(CWsplit\fP\*(Aqs first argument is more consistently interpreted"
607 .IX Subsection "split's first argument is more consistently interpreted"
608 After some changes earlier in v5.17, \f(CW\*(C`split\*(C'\fR\*(Aqs behavior has been
609 simplified: if the PATTERN argument evaluates to a string
610 containing one space, it is treated the way that a \fIliteral\fR string
611 containing one space once was.
612 .SH Deprecations
613 .IX Header "Deprecations"
614 .SS "Module removals"
615 .IX Subsection "Module removals"
616 The following modules will be removed from the core distribution in a future
617 release, and will at that time need to be installed from CPAN. Distributions
618 on CPAN which require these modules will need to list them as prerequisites.
619 .PP
620 The core versions of these modules will now issue \f(CW"deprecated"\fR\-category
621 warnings to alert you to this fact. To silence these deprecation warnings,
622 install the modules in question from CPAN.
623 .PP
624 Note that these are (with rare exceptions) fine modules that you are encouraged
625 to continue to use. Their disinclusion from core primarily hinges on their
626 necessity to bootstrapping a fully functional, CPAN\-capable Perl installation,
627 not usually on concerns over their design.
628 .IP encoding 4
629 .IX Item "encoding"
630 The use of this pragma is now strongly discouraged. It conflates the encoding
631 of source text with the encoding of I/O data, reinterprets escape sequences in
632 source text (a questionable choice), and introduces the UTF\-8 bug to all runtime
633 handling of character strings. It is broken as designed and beyond repair.
634 .Sp
635 For using non\-ASCII literal characters in source text, please refer to utf8.
636 For dealing with textual I/O data, please refer to Encode and open.
637 .IP Archive::Extract 4
638 .IX Item "Archive::Extract"
639 .PD 0
640 .IP B::Lint 4
641 .IX Item "B::Lint"
642 .IP B::Lint::Debug 4
643 .IX Item "B::Lint::Debug"
644 .ie n .IP "CPANPLUS and all included ""CPANPLUS::*"" modules" 4
645 .el .IP "CPANPLUS and all included \f(CWCPANPLUS::*\fR modules" 4
646 .IX Item "CPANPLUS and all included CPANPLUS::* modules"
647 .IP Devel::InnerPackage 4
648 .IX Item "Devel::InnerPackage"
649 .IP Log::Message 4
650 .IX Item "Log::Message"
651 .IP Log::Message::Config 4
652 .IX Item "Log::Message::Config"
653 .IP Log::Message::Handlers 4
654 .IX Item "Log::Message::Handlers"
655 .IP Log::Message::Item 4
656 .IX Item "Log::Message::Item"
657 .IP Log::Message::Simple 4
658 .IX Item "Log::Message::Simple"
659 .IP Module::Pluggable 4
660 .IX Item "Module::Pluggable"
661 .IP Module::Pluggable::Object 4
662 .IX Item "Module::Pluggable::Object"
663 .IP Object::Accessor 4
664 .IX Item "Object::Accessor"
665 .IP Pod::LaTeX 4
666 .IX Item "Pod::LaTeX"
667 .IP Term::UI 4
668 .IX Item "Term::UI"
669 .IP Term::UI::History 4
670 .IX Item "Term::UI::History"
671 .PD
672 .SS "Deprecated Utilities"
673 .IX Subsection "Deprecated Utilities"
674 The following utilities will be removed from the core distribution in a
675 future release as their associated modules have been deprecated. They
676 will remain available with the applicable CPAN distribution.
677 .IP cpanp 4
678 .IX Item "cpanp"
679 .PD 0
680 .ie n .IP """cpanp\-run\-perl""" 4
681 .el .IP \f(CWcpanp\-run\-perl\fR 4
682 .IX Item "cpanp-run-perl"
683 .IP cpan2dist 4
684 .IX Item "cpan2dist"
685 .PD
686 These items are part of the \f(CW\*(C`CPANPLUS\*(C'\fR distribution.
687 .IP pod2latex 4
688 .IX Item "pod2latex"
689 This item is part of the \f(CW\*(C`Pod::LaTeX\*(C'\fR distribution.
690 .SS PL_sv_objcount
691 .IX Subsection "PL_sv_objcount"
692 This interpreter\-global variable used to track the total number of
693 Perl objects in the interpreter. It is no longer maintained and will
694 be removed altogether in Perl v5.20.
695 .ie n .SS "Five additional characters should be escaped in patterns with ""/x"""
696 .el .SS "Five additional characters should be escaped in patterns with \f(CW/x\fP"
697 .IX Subsection "Five additional characters should be escaped in patterns with /x"
698 When a regular expression pattern is compiled with \f(CW\*(C`/x\*(C'\fR, Perl treats 6
699 characters as white space to ignore, such as SPACE and TAB. However,
700 Unicode recommends 11 characters be treated thusly. We will conform
701 with this in a future Perl version. In the meantime, use of any of the
702 missing characters will raise a deprecation warning, unless turned off.
703 The five characters are:
704 .PP
705 .Vb 5
706 \& U+0085 NEXT LINE
707 \& U+200E LEFT\-TO\-RIGHT MARK
708 \& U+200F RIGHT\-TO\-LEFT MARK
709 \& U+2028 LINE SEPARATOR
710 \& U+2029 PARAGRAPH SEPARATOR
711 .Ve
712 .SS "User\-defined charnames with surprising whitespace"
713 .IX Subsection "User-defined charnames with surprising whitespace"
714 A user\-defined character name with trailing or multiple spaces in a row is
715 likely a typo. This now generates a warning when defined, on the assumption
716 that uses of it will be unlikely to include the excess whitespace.
717 .SS "Various XS\-callable functions are now deprecated"
718 .IX Subsection "Various XS-callable functions are now deprecated"
719 All the functions used to classify characters will be removed from a
720 future version of Perl, and should not be used. With participating C
721 compilers (e.g., gcc), compiling any file that uses any of these will
722 generate a warning. These were not intended for public use; there are
723 equivalent, faster, macros for most of them.
724 .PP
725 See "Character classes" in perlapi. The complete list is:
726 .PP
727 \&\f(CW\*(C`is_uni_alnum\*(C'\fR, \f(CW\*(C`is_uni_alnumc\*(C'\fR, \f(CW\*(C`is_uni_alnumc_lc\*(C'\fR,
728 \&\f(CW\*(C`is_uni_alnum_lc\*(C'\fR, \f(CW\*(C`is_uni_alpha\*(C'\fR, \f(CW\*(C`is_uni_alpha_lc\*(C'\fR,
729 \&\f(CW\*(C`is_uni_ascii\*(C'\fR, \f(CW\*(C`is_uni_ascii_lc\*(C'\fR, \f(CW\*(C`is_uni_blank\*(C'\fR,
730 \&\f(CW\*(C`is_uni_blank_lc\*(C'\fR, \f(CW\*(C`is_uni_cntrl\*(C'\fR, \f(CW\*(C`is_uni_cntrl_lc\*(C'\fR,
731 \&\f(CW\*(C`is_uni_digit\*(C'\fR, \f(CW\*(C`is_uni_digit_lc\*(C'\fR, \f(CW\*(C`is_uni_graph\*(C'\fR,
732 \&\f(CW\*(C`is_uni_graph_lc\*(C'\fR, \f(CW\*(C`is_uni_idfirst\*(C'\fR, \f(CW\*(C`is_uni_idfirst_lc\*(C'\fR,
733 \&\f(CW\*(C`is_uni_lower\*(C'\fR, \f(CW\*(C`is_uni_lower_lc\*(C'\fR, \f(CW\*(C`is_uni_print\*(C'\fR,
734 \&\f(CW\*(C`is_uni_print_lc\*(C'\fR, \f(CW\*(C`is_uni_punct\*(C'\fR, \f(CW\*(C`is_uni_punct_lc\*(C'\fR,
735 \&\f(CW\*(C`is_uni_space\*(C'\fR, \f(CW\*(C`is_uni_space_lc\*(C'\fR, \f(CW\*(C`is_uni_upper\*(C'\fR,
736 \&\f(CW\*(C`is_uni_upper_lc\*(C'\fR, \f(CW\*(C`is_uni_xdigit\*(C'\fR, \f(CW\*(C`is_uni_xdigit_lc\*(C'\fR,
737 \&\f(CW\*(C`is_utf8_alnum\*(C'\fR, \f(CW\*(C`is_utf8_alnumc\*(C'\fR, \f(CW\*(C`is_utf8_alpha\*(C'\fR,
738 \&\f(CW\*(C`is_utf8_ascii\*(C'\fR, \f(CW\*(C`is_utf8_blank\*(C'\fR, \f(CW\*(C`is_utf8_char\*(C'\fR,
739 \&\f(CW\*(C`is_utf8_cntrl\*(C'\fR, \f(CW\*(C`is_utf8_digit\*(C'\fR, \f(CW\*(C`is_utf8_graph\*(C'\fR,
740 \&\f(CW\*(C`is_utf8_idcont\*(C'\fR, \f(CW\*(C`is_utf8_idfirst\*(C'\fR, \f(CW\*(C`is_utf8_lower\*(C'\fR,
741 \&\f(CW\*(C`is_utf8_mark\*(C'\fR, \f(CW\*(C`is_utf8_perl_space\*(C'\fR, \f(CW\*(C`is_utf8_perl_word\*(C'\fR,
742 \&\f(CW\*(C`is_utf8_posix_digit\*(C'\fR, \f(CW\*(C`is_utf8_print\*(C'\fR, \f(CW\*(C`is_utf8_punct\*(C'\fR,
743 \&\f(CW\*(C`is_utf8_space\*(C'\fR, \f(CW\*(C`is_utf8_upper\*(C'\fR, \f(CW\*(C`is_utf8_xdigit\*(C'\fR,
744 \&\f(CW\*(C`is_utf8_xidcont\*(C'\fR, \f(CW\*(C`is_utf8_xidfirst\*(C'\fR.
745 .PP
746 In addition these three functions that have never worked properly are
747 deprecated:
748 \&\f(CW\*(C`to_uni_lower_lc\*(C'\fR, \f(CW\*(C`to_uni_title_lc\*(C'\fR, and \f(CW\*(C`to_uni_upper_lc\*(C'\fR.
749 .SS "Certain rare uses of backslashes within regexes are now deprecated"
750 .IX Subsection "Certain rare uses of backslashes within regexes are now deprecated"
751 There are three pairs of characters that Perl recognizes as
752 metacharacters in regular expression patterns: \f(CW\*(C`{}\*(C'\fR, \f(CW\*(C`[]\*(C'\fR, and \f(CW\*(C`()\*(C'\fR.
753 These can be used as well to delimit patterns, as in:
754 .PP
755 .Vb 2
756 \& m{foo}
757 \& s(foo)(bar)
758 .Ve
759 .PP
760 Since they are metacharacters, they have special meaning to regular
761 expression patterns, and it turns out that you can\*(Aqt turn off that
762 special meaning by the normal means of preceding them with a backslash,
763 if you use them, paired, within a pattern delimited by them. For
764 example, in
765 .PP
766 .Vb 1
767 \& m{foo\e{1,3\e}}
768 .Ve
769 .PP
770 the backslashes do not change the behavior, and this matches
771 \&\f(CW"f\ o"\fR followed by one to three more occurrences of \f(CW"o"\fR.
772 .PP
773 Usages like this, where they are interpreted as metacharacters, are
774 exceedingly rare; we think there are none, for example, in all of CPAN.
775 Hence, this deprecation should affect very little code. It does give
776 notice, however, that any such code needs to change, which will in turn
777 allow us to change the behavior in future Perl versions so that the
778 backslashes do have an effect, and without fear that we are silently
779 breaking any existing code.
780 .ie n .SS "Splitting the tokens ""(?"" and ""(*"" in regular expressions"
781 .el .SS "Splitting the tokens \f(CW(?\fP and \f(CW(*\fP in regular expressions"
782 .IX Subsection "Splitting the tokens (? and (* in regular expressions"
783 A deprecation warning is now raised if the \f(CW\*(C`(\*(C'\fR and \f(CW\*(C`?\*(C'\fR are separated
784 by white space or comments in \f(CW\*(C`(?...)\*(C'\fR regular expression constructs.
785 Similarly, if the \f(CW\*(C`(\*(C'\fR and \f(CW\*(C`*\*(C'\fR are separated in \f(CW\*(C`(*VERB...)\*(C'\fR
786 constructs.
787 .SS "Pre\-PerlIO IO implementations"
788 .IX Subsection "Pre-PerlIO IO implementations"
789 In theory, you can currently build perl without PerlIO. Instead, you\*(Aqd use a
790 wrapper around stdio or sfio. In practice, this isn\*(Aqt very useful. It\*(Aqs not
791 well tested, and without any support for IO layers or (thus) Unicode, it\*(Aqs not
792 much of a perl. Building without PerlIO will most likely be removed in the
793 next version of perl.
794 .PP
795 PerlIO supports a \f(CW\*(C`stdio\*(C'\fR layer if stdio use is desired. Similarly a
796 sfio layer could be produced in the future, if needed.
797 .SH "Future Deprecations"
798 .IX Header "Future Deprecations"
799 .IP \(bu 4
800 Platforms without support infrastructure
801 .Sp
802 Both Windows CE and z/OS have been historically under\-maintained, and are
803 currently neither successfully building nor regularly being smoke tested.
804 Efforts are underway to change this situation, but it should not be taken for
805 granted that the platforms are safe and supported. If they do not become
806 buildable and regularly smoked, support for them may be actively removed in
807 future releases. If you have an interest in these platforms and you can lend
808 your time, expertise, or hardware to help support these platforms, please let
809 the perl development effort know by emailing \f(CW\*(C`perl5\[email protected]\*(C'\fR.
810 .Sp
811 Some platforms that appear otherwise entirely dead are also on the short list
812 for removal between now and v5.20.0:
813 .RS 4
814 .IP DG/UX 4
815 .IX Item "DG/UX"
816 .PD 0
817 .IP NeXT 4
818 .IX Item "NeXT"
819 .PD
820 .RE
821 .RS 4
822 .Sp
823 We also think it likely that current versions of Perl will no longer
824 build AmigaOS, DJGPP, NetWare (natively), OS/2 and Plan 9. If you
825 are using Perl on such a platform and have an interest in ensuring
826 Perl\*(Aqs future on them, please contact us.
827 .Sp
828 We believe that Perl has long been unable to build on mixed endian
829 architectures (such as PDP\-11s), and intend to remove any remaining
830 support code. Similarly, code supporting the long unmaintained GNU
831 dld will be removed soon if no\-one makes themselves known as an
832 active user.
833 .RE
834 .IP \(bu 4
835 Swapping of $< and $>
836 .Sp
837 Perl has supported the idiom of swapping $< and $> (and likewise $( and
838 $)) to temporarily drop permissions since 5.0, like this:
839 .Sp
840 .Vb 1
841 \& ($<, $>) = ($>, $<);
842 .Ve
843 .Sp
844 However, this idiom modifies the real user/group id, which can have
845 undesirable side\-effects, is no longer useful on any platform perl
846 supports and complicates the implementation of these variables and list
847 assignment in general.
848 .Sp
849 As an alternative, assignment only to \f(CW$>\fR is recommended:
850 .Sp
851 .Vb 1
852 \& local $> = $<;
853 .Ve
854 .Sp
855 See also: Setuid Demystified <http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf>.
856 .IP \(bu 4
857 \&\f(CW\*(C`microperl\*(C'\fR, long broken and of unclear present purpose, will be removed.
858 .IP \(bu 4
859 Revamping \f(CW"\eQ"\fR semantics in double\-quotish strings when combined with
860 other escapes.
861 .Sp
862 There are several bugs and inconsistencies involving combinations
863 of \f(CW\*(C`\eQ\*(C'\fR and escapes like \f(CW\*(C`\ex\*(C'\fR, \f(CW\*(C`\eL\*(C'\fR, etc., within a \f(CW\*(C`\eQ...\eE\*(C'\fR pair.
864 These need to be fixed, and doing so will necessarily change current
865 behavior. The changes have not yet been settled.
866 .IP \(bu 4
867 Use of \f(CW$x\fR, where \f(CW\*(C`x\*(C'\fR stands for any actual (non\-printing) C0 control
868 character will be disallowed in a future Perl version. Use \f(CW\*(C`${x}\*(C'\fR
869 instead (where again \f(CW\*(C`x\*(C'\fR stands for a control character),
870 or better, \f(CW$^A\fR , where \f(CW\*(C`^\*(C'\fR is a caret (CIRCUMFLEX ACCENT),
871 and \f(CW\*(C`A\*(C'\fR stands for any of the characters listed at the end of
872 "OPERATOR DIFFERENCES" in perlebcdic.
873 .SH "Performance Enhancements"
874 .IX Header "Performance Enhancements"
875 .IP \(bu 4
876 Lists of lexical variable declarations (\f(CW\*(C`my($x, $y)\*(C'\fR) are now optimised
877 down to a single op and are hence faster than before.
878 .IP \(bu 4
879 A new C preprocessor define \f(CW\*(C`NO_TAINT_SUPPORT\*(C'\fR was added that, if set,
880 disables Perl\*(Aqs taint support altogether. Using the \-T or \-t command
881 line flags will cause a fatal error. Beware that both core tests as
882 well as many CPAN distribution\*(Aqs tests will fail with this change. On
883 the upside, it provides a small performance benefit due to reduced
884 branching.
885 .Sp
886 \&\fBDo not enable this unless you know exactly what you are getting yourself
887 into.\fR
888 .IP \(bu 4
889 \&\f(CW\*(C`pack\*(C'\fR with constant arguments is now constant folded in most cases
890 [perl #113470].
891 .IP \(bu 4
892 Speed up in regular expression matching against Unicode properties. The
893 largest gain is for \f(CW\*(C`\eX\*(C'\fR, the Unicode "extended grapheme cluster." The
894 gain for it is about 35% \- 40%. Bracketed character classes, e.g.,
895 \&\f(CW\*(C`[0\-9\ex{100}]\*(C'\fR containing code points above 255 are also now faster.
896 .IP \(bu 4
897 On platforms supporting it, several former macros are now implemented as static
898 inline functions. This should speed things up slightly on non\-GCC platforms.
899 .IP \(bu 4
900 The optimisation of hashes in boolean context has been extended to
901 affect \f(CWscalar(%hash)\fR, \f(CW\*(C`%hash ? ... : ...\*(C'\fR, and \f(CW\*(C`sub { %hash || ... }\*(C'\fR.
902 .IP \(bu 4
903 Filetest operators manage the stack in a fractionally more efficient manner.
904 .IP \(bu 4
905 Globs used in a numeric context are now numified directly in most cases,
906 rather than being numified via stringification.
907 .IP \(bu 4
908 The \f(CW\*(C`x\*(C'\fR repetition operator is now folded to a single constant at compile
909 time if called in scalar context with constant operands and no parentheses
910 around the left operand.
911 .SH "Modules and Pragmata"
912 .IX Header "Modules and Pragmata"
913 .SS "New Modules and Pragmata"
914 .IX Subsection "New Modules and Pragmata"
915 .IP \(bu 4
916 Config::Perl::V version 0.16 has been added as a dual\-lifed module.
917 It provides structured data retrieval of \f(CW\*(C`perl \-V\*(C'\fR output including
918 information only known to the \f(CW\*(C`perl\*(C'\fR binary and not available via Config.
919 .SS "Updated Modules and Pragmata"
920 .IX Subsection "Updated Modules and Pragmata"
921 For a complete list of updates, run:
922 .PP
923 .Vb 1
924 \& $ corelist \-\-diff 5.16.0 5.18.0
925 .Ve
926 .PP
927 You can substitute your favorite version in place of \f(CW5.16.0\fR, too.
928 .IP \(bu 4
929 Archive::Extract has been upgraded to 0.68.
930 .Sp
931 Work around an edge case on Linux with Busybox\*(Aqs unzip.
932 .IP \(bu 4
933 Archive::Tar has been upgraded to 1.90.
934 .Sp
935 ptar now supports the \-T option as well as dashless options
936 [rt.cpan.org #75473], [rt.cpan.org #75475].
937 .Sp
938 Auto\-encode filenames marked as UTF\-8 [rt.cpan.org #75474].
939 .Sp
940 Don\*(Aqt use \f(CW\*(C`tell\*(C'\fR on IO::Zlib handles [rt.cpan.org #64339].
941 .Sp
942 Don\*(Aqt try to \f(CW\*(C`chown\*(C'\fR on symlinks.
943 .IP \(bu 4
944 autodie has been upgraded to 2.13.
945 .Sp
946 \&\f(CW\*(C`autodie\*(C'\fR now plays nicely with the \*(Aqopen\*(Aq pragma.
947 .IP \(bu 4
948 B has been upgraded to 1.42.
949 .Sp
950 The \f(CW\*(C`stashoff\*(C'\fR method of COPs has been added. This provides access to an
951 internal field added in perl 5.16 under threaded builds [perl #113034].
952 .Sp
953 \&\f(CW\*(C`B::COP::stashpv\*(C'\fR now supports UTF\-8 package names and embedded NULs.
954 .Sp
955 All \f(CW\*(C`CVf_*\*(C'\fR and \f(CW\*(C`GVf_*\*(C'\fR
956 and more SV\-related flag values are now provided as constants in the \f(CW\*(C`B::\*(C'\fR
957 namespace and available for export. The default export list has not changed.
958 .Sp
959 This makes the module work with the new pad API.
960 .IP \(bu 4
961 B::Concise has been upgraded to 0.95.
962 .Sp
963 The \f(CW\*(C`\-nobanner\*(C'\fR option has been fixed, and \f(CW\*(C`format\*(C'\fRs can now be dumped.
964 When passed a sub name to dump, it will check also to see whether it
965 is the name of a format. If a sub and a format share the same name,
966 it will dump both.
967 .Sp
968 This adds support for the new \f(CW\*(C`OpMAYBE_TRUEBOOL\*(C'\fR and \f(CW\*(C`OPpTRUEBOOL\*(C'\fR flags.
969 .IP \(bu 4
970 B::Debug has been upgraded to 1.18.
971 .Sp
972 This adds support (experimentally) for \f(CW\*(C`B::PADLIST\*(C'\fR, which was
973 added in Perl 5.17.4.
974 .IP \(bu 4
975 B::Deparse has been upgraded to 1.20.
976 .Sp
977 Avoid warning when run under \f(CW\*(C`perl \-w\*(C'\fR.
978 .Sp
979 It now deparses
980 loop controls with the correct precedence, and multiple statements in a
981 \&\f(CW\*(C`format\*(C'\fR line are also now deparsed correctly.
982 .Sp
983 This release suppresses trailing semicolons in formats.
984 .Sp
985 This release adds stub deparsing for lexical subroutines.
986 .Sp
987 It no longer dies when deparsing \f(CW\*(C`sort\*(C'\fR without arguments. It now
988 correctly omits the comma for \f(CW\*(C`system $prog @args\*(C'\fR and \f(CWexec $prog
989 @args\fR.
990 .IP \(bu 4
991 bignum, bigint and bigrat have been upgraded to 0.33.
992 .Sp
993 The overrides for \f(CW\*(C`hex\*(C'\fR and \f(CW\*(C`oct\*(C'\fR have been rewritten, eliminating
994 several problems, and making one incompatible change:
995 .RS 4
996 .IP \(bu 4
997 Formerly, whichever of \f(CW\*(C`use bigint\*(C'\fR or \f(CW\*(C`use bigrat\*(C'\fR was compiled later
998 would take precedence over the other, causing \f(CW\*(C`hex\*(C'\fR and \f(CW\*(C`oct\*(C'\fR not to
999 respect the other pragma when in scope.
1000 .IP \(bu 4
1001 Using any of these three pragmata would cause \f(CW\*(C`hex\*(C'\fR and \f(CW\*(C`oct\*(C'\fR anywhere
1002 else in the program to evaluate their arguments in list context and prevent
1003 them from inferring \f(CW$_\fR when called without arguments.
1004 .IP \(bu 4
1005 Using any of these three pragmata would make \f(CWoct("1234")\fR return 1234
1006 (for any number not beginning with 0) anywhere in the program. Now "1234"
1007 is translated from octal to decimal, whether within the pragma\*(Aqs scope or
1008 not.
1009 .IP \(bu 4
1010 The global overrides that facilitate lexical use of \f(CW\*(C`hex\*(C'\fR and \f(CW\*(C`oct\*(C'\fR now
1011 respect any existing overrides that were in place before the new overrides
1012 were installed, falling back to them outside of the scope of \f(CW\*(C`use bignum\*(C'\fR.
1013 .IP \(bu 4
1014 \&\f(CW\*(C`use bignum "hex"\*(C'\fR, \f(CW\*(C`use bignum "oct"\*(C'\fR and similar invocations for bigint
1015 and bigrat now export a \f(CW\*(C`hex\*(C'\fR or \f(CW\*(C`oct\*(C'\fR function, instead of providing a
1016 global override.
1017 .RE
1018 .RS 4
1019 .RE
1020 .IP \(bu 4
1021 Carp has been upgraded to 1.29.
1022 .Sp
1023 Carp is no longer confused when \f(CW\*(C`caller\*(C'\fR returns undef for a package that
1024 has been deleted.
1025 .Sp
1026 The \f(CWlongmess()\fR and \f(CWshortmess()\fR functions are now documented.
1027 .IP \(bu 4
1028 CGI has been upgraded to 3.63.
1029 .Sp
1030 Unrecognized HTML escape sequences are now handled better, problematic
1031 trailing newlines are no longer inserted after <form> tags
1032 by \f(CWstartform()\fR or \f(CWstart_form()\fR, and bogus "Insecure Dependency"
1033 warnings appearing with some versions of perl are now worked around.
1034 .IP \(bu 4
1035 Class::Struct has been upgraded to 0.64.
1036 .Sp
1037 The constructor now respects overridden accessor methods [perl #29230].
1038 .IP \(bu 4
1039 Compress::Raw::Bzip2 has been upgraded to 2.060.
1040 .Sp
1041 The misuse of Perl\*(Aqs "magic" API has been fixed.
1042 .IP \(bu 4
1043 Compress::Raw::Zlib has been upgraded to 2.060.
1044 .Sp
1045 Upgrade bundled zlib to version 1.2.7.
1046 .Sp
1047 Fix build failures on Irix, Solaris, and Win32, and also when building as C++
1048 [rt.cpan.org #69985], [rt.cpan.org #77030], [rt.cpan.org #75222].
1049 .Sp
1050 The misuse of Perl\*(Aqs "magic" API has been fixed.
1051 .Sp
1052 \&\f(CWcompress()\fR, \f(CWuncompress()\fR, \f(CWmemGzip()\fR and \f(CWmemGunzip()\fR have
1053 been speeded up by making parameter validation more efficient.
1054 .IP \(bu 4
1055 CPAN::Meta::Requirements has been upgraded to 2.122.
1056 .Sp
1057 Treat undef requirements to \f(CW\*(C`from_string_hash\*(C'\fR as 0 (with a warning).
1058 .Sp
1059 Added \f(CW\*(C`requirements_for_module\*(C'\fR method.
1060 .IP \(bu 4
1061 CPANPLUS has been upgraded to 0.9135.
1062 .Sp
1063 Allow adding \fIblib/script\fR to PATH.
1064 .Sp
1065 Save the history between invocations of the shell.
1066 .Sp
1067 Handle multiple \f(CW\*(C`makemakerargs\*(C'\fR and \f(CW\*(C`makeflags\*(C'\fR arguments better.
1068 .Sp
1069 This resolves issues with the SQLite source engine.
1070 .IP \(bu 4
1071 Data::Dumper has been upgraded to 2.145.
1072 .Sp
1073 It has been optimized to only build a seen\-scalar hash as necessary,
1074 thereby speeding up serialization drastically.
1075 .Sp
1076 Additional tests were added in order to improve statement, branch, condition
1077 and subroutine coverage. On the basis of the coverage analysis, some of the
1078 internals of Dumper.pm were refactored. Almost all methods are now
1079 documented.
1080 .IP \(bu 4
1081 DB_File has been upgraded to 1.827.
1082 .Sp
1083 The main Perl module no longer uses the \f(CW"@_"\fR construct.
1084 .IP \(bu 4
1085 Devel::Peek has been upgraded to 1.11.
1086 .Sp
1087 This fixes compilation with C++ compilers and makes the module work with
1088 the new pad API.
1089 .IP \(bu 4
1090 Digest::MD5 has been upgraded to 2.52.
1091 .Sp
1092 Fix \f(CW\*(C`Digest::Perl::MD5\*(C'\fR OO fallback [rt.cpan.org #66634].
1093 .IP \(bu 4
1094 Digest::SHA has been upgraded to 5.84.
1095 .Sp
1096 This fixes a double\-free bug, which might have caused vulnerabilities
1097 in some cases.
1098 .IP \(bu 4
1099 DynaLoader has been upgraded to 1.18.
1100 .Sp
1101 This is due to a minor code change in the XS for the VMS implementation.
1102 .Sp
1103 This fixes warnings about using \f(CW\*(C`CODE\*(C'\fR sections without an \f(CW\*(C`OUTPUT\*(C'\fR
1104 section.
1105 .IP \(bu 4
1106 Encode has been upgraded to 2.49.
1107 .Sp
1108 The Mac alias x\-mac\-ce has been added, and various bugs have been fixed
1109 in Encode::Unicode, Encode::UTF7 and Encode::GSM0338.
1110 .IP \(bu 4
1111 Env has been upgraded to 1.04.
1112 .Sp
1113 Its SPLICE implementation no longer misbehaves in list context.
1114 .IP \(bu 4
1115 ExtUtils::CBuilder has been upgraded to 0.280210.
1116 .Sp
1117 Manifest files are now correctly embedded for those versions of VC++ which
1118 make use of them. [perl #111782, #111798].
1119 .Sp
1120 A list of symbols to export can now be passed to \f(CWlink()\fR when on
1121 Windows, as on other OSes [perl #115100].
1122 .IP \(bu 4
1123 ExtUtils::ParseXS has been upgraded to 3.18.
1124 .Sp
1125 The generated C code now avoids unnecessarily incrementing
1126 \&\f(CW\*(C`PL_amagic_generation\*(C'\fR on Perl versions where it\*(Aqs done automatically
1127 (or on current Perl where the variable no longer exists).
1128 .Sp
1129 This avoids a bogus warning for initialised XSUB non\-parameters [perl
1130 #112776].
1131 .IP \(bu 4
1132 File::Copy has been upgraded to 2.26.
1133 .Sp
1134 \&\f(CWcopy()\fR no longer zeros files when copying into the same directory,
1135 and also now fails (as it has long been documented to do) when attempting
1136 to copy a file over itself.
1137 .IP \(bu 4
1138 File::DosGlob has been upgraded to 1.10.
1139 .Sp
1140 The internal cache of file names that it keeps for each caller is now
1141 freed when that caller is freed. This means
1142 \&\f(CW\*(C`use File::DosGlob \*(Aqglob\*(Aq; eval \*(Aqscalar <*>\*(Aq\*(C'\fR no longer leaks memory.
1143 .IP \(bu 4
1144 File::Fetch has been upgraded to 0.38.
1145 .Sp
1146 Added the \*(Aqfile_default\*(Aq option for URLs that do not have a file
1147 component.
1148 .Sp
1149 Use \f(CW\*(C`File::HomeDir\*(C'\fR when available, and provide \f(CW\*(C`PERL5_CPANPLUS_HOME\*(C'\fR to
1150 override the autodetection.
1151 .Sp
1152 Always re\-fetch \fICHECKSUMS\fR if \f(CW\*(C`fetchdir\*(C'\fR is set.
1153 .IP \(bu 4
1154 File::Find has been upgraded to 1.23.
1155 .Sp
1156 This fixes inconsistent unixy path handling on VMS.
1157 .Sp
1158 Individual files may now appear in list of directories to be searched
1159 [perl #59750].
1160 .IP \(bu 4
1161 File::Glob has been upgraded to 1.20.
1162 .Sp
1163 File::Glob has had exactly the same fix as File::DosGlob. Since it is
1164 what Perl\*(Aqs own \f(CW\*(C`glob\*(C'\fR operator itself uses (except on VMS), this means
1165 \&\f(CW\*(C`eval \*(Aqscalar <*>\*(Aq\*(C'\fR no longer leaks.
1166 .Sp
1167 A space\-separated list of patterns return long lists of results no longer
1168 results in memory corruption or crashes. This bug was introduced in
1169 Perl 5.16.0. [perl #114984]
1170 .IP \(bu 4
1171 File::Spec::Unix has been upgraded to 3.40.
1172 .Sp
1173 \&\f(CW\*(C`abs2rel\*(C'\fR could produce incorrect results when given two relative paths or
1174 the root directory twice [perl #111510].
1175 .IP \(bu 4
1176 File::stat has been upgraded to 1.07.
1177 .Sp
1178 \&\f(CW\*(C`File::stat\*(C'\fR ignores the filetest pragma, and warns when used in
1179 combination therewith. But it was not warning for \f(CW\*(C`\-r\*(C'\fR. This has been
1180 fixed [perl #111640].
1181 .Sp
1182 \&\f(CW\*(C`\-p\*(C'\fR now works, and does not return false for pipes [perl #111638].
1183 .Sp
1184 Previously \f(CW\*(C`File::stat\*(C'\fR\*(Aqs overloaded \f(CW\*(C`\-x\*(C'\fR and \f(CW\*(C`\-X\*(C'\fR operators did not give
1185 the correct results for directories or executable files when running as
1186 root. They had been treating executable permissions for root just like for
1187 any other user, performing group membership tests \fIetc\fR for files not owned
1188 by root. They now follow the correct Unix behaviour \- for a directory they
1189 are always true, and for a file if any of the three execute permission bits
1190 are set then they report that root can execute the file. Perl\*(Aqs builtin
1191 \&\f(CW\*(C`\-x\*(C'\fR and \f(CW\*(C`\-X\*(C'\fR operators have always been correct.
1192 .IP \(bu 4
1193 File::Temp has been upgraded to 0.23
1194 .Sp
1195 Fixes various bugs involving directory removal. Defers unlinking tempfiles if
1196 the initial unlink fails, which fixes problems on NFS.
1197 .IP \(bu 4
1198 GDBM_File has been upgraded to 1.15.
1199 .Sp
1200 The undocumented optional fifth parameter to \f(CW\*(C`TIEHASH\*(C'\fR has been
1201 removed. This was intended to provide control of the callback used by
1202 \&\f(CW\*(C`gdbm*\*(C'\fR functions in case of fatal errors (such as filesystem problems),
1203 but did not work (and could never have worked). No code on CPAN even
1204 attempted to use it. The callback is now always the previous default,
1205 \&\f(CW\*(C`croak\*(C'\fR. Problems on some platforms with how the \f(CW\*(C`C\*(C'\fR \f(CW\*(C`croak\*(C'\fR function
1206 is called have also been resolved.
1207 .IP \(bu 4
1208 Hash::Util has been upgraded to 0.15.
1209 .Sp
1210 \&\f(CW\*(C`hash_unlocked\*(C'\fR and \f(CW\*(C`hashref_unlocked\*(C'\fR now returns true if the hash is
1211 unlocked, instead of always returning false [perl #112126].
1212 .Sp
1213 \&\f(CW\*(C`hash_unlocked\*(C'\fR, \f(CW\*(C`hashref_unlocked\*(C'\fR, \f(CW\*(C`lock_hash_recurse\*(C'\fR and
1214 \&\f(CW\*(C`unlock_hash_recurse\*(C'\fR are now exportable [perl #112126].
1215 .Sp
1216 Two new functions, \f(CW\*(C`hash_locked\*(C'\fR and \f(CW\*(C`hashref_locked\*(C'\fR, have been added.
1217 Oddly enough, these two functions were already exported, even though they
1218 did not exist [perl #112126].
1219 .IP \(bu 4
1220 HTTP::Tiny has been upgraded to 0.025.
1221 .Sp
1222 Add SSL verification features [github #6], [github #9].
1223 .Sp
1224 Include the final URL in the response hashref.
1225 .Sp
1226 Add \f(CW\*(C`local_address\*(C'\fR option.
1227 .Sp
1228 This improves SSL support.
1229 .IP \(bu 4
1230 IO has been upgraded to 1.28.
1231 .Sp
1232 \&\f(CWsync()\fR can now be called on read\-only file handles [perl #64772].
1233 .Sp
1234 IO::Socket tries harder to cache or otherwise fetch socket
1235 information.
1236 .IP \(bu 4
1237 IPC::Cmd has been upgraded to 0.80.
1238 .Sp
1239 Use \f(CW\*(C`POSIX::_exit\*(C'\fR instead of \f(CW\*(C`exit\*(C'\fR in \f(CW\*(C`run_forked\*(C'\fR [rt.cpan.org #76901].
1240 .IP \(bu 4
1241 IPC::Open3 has been upgraded to 1.13.
1242 .Sp
1243 The \f(CWopen3()\fR function no longer uses \f(CWPOSIX::close()\fR to close file
1244 descriptors since that breaks the ref\-counting of file descriptors done by
1245 PerlIO in cases where the file descriptors are shared by PerlIO streams,
1246 leading to attempts to close the file descriptors a second time when
1247 any such PerlIO streams are closed later on.
1248 .IP \(bu 4
1249 Locale::Codes has been upgraded to 3.25.
1250 .Sp
1251 It includes some new codes.
1252 .IP \(bu 4
1253 Memoize has been upgraded to 1.03.
1254 .Sp
1255 Fix the \f(CW\*(C`MERGE\*(C'\fR cache option.
1256 .IP \(bu 4
1257 Module::Build has been upgraded to 0.4003.
1258 .Sp
1259 Fixed bug where modules without \f(CW$VERSION\fR might have a version of \*(Aq0\*(Aq listed
1260 in \*(Aqprovides\*(Aq metadata, which will be rejected by PAUSE.
1261 .Sp
1262 Fixed bug in PodParser to allow numerals in module names.
1263 .Sp
1264 Fixed bug where giving arguments twice led to them becoming arrays, resulting
1265 in install paths like \fR\f(BIARRAY\fR\fI\|(0xdeadbeef)/lib/Foo.pm\fR.
1266 .Sp
1267 A minor bug fix allows markup to be used around the leading "Name" in
1268 a POD "abstract" line, and some documentation improvements have been made.
1269 .IP \(bu 4
1270 Module::CoreList has been upgraded to 2.90
1271 .Sp
1272 Version information is now stored as a delta, which greatly reduces the
1273 size of the \fICoreList.pm\fR file.
1274 .Sp
1275 This restores compatibility with older versions of perl and cleans up
1276 the corelist data for various modules.
1277 .IP \(bu 4
1278 Module::Load::Conditional has been upgraded to 0.54.
1279 .Sp
1280 Fix use of \f(CW\*(C`requires\*(C'\fR on perls installed to a path with spaces.
1281 .Sp
1282 Various enhancements include the new use of Module::Metadata.
1283 .IP \(bu 4
1284 Module::Metadata has been upgraded to 1.000011.
1285 .Sp
1286 The creation of a Module::Metadata object for a typical module file has
1287 been sped up by about 40%, and some spurious warnings about \f(CW$VERSION\fRs
1288 have been suppressed.
1289 .IP \(bu 4
1290 Module::Pluggable has been upgraded to 4.7.
1291 .Sp
1292 Amongst other changes, triggers are now allowed on events, which gives
1293 a powerful way to modify behaviour.
1294 .IP \(bu 4
1295 Net::Ping has been upgraded to 2.41.
1296 .Sp
1297 This fixes some test failures on Windows.
1298 .IP \(bu 4
1299 Opcode has been upgraded to 1.25.
1300 .Sp
1301 Reflect the removal of the boolkeys opcode and the addition of the
1302 clonecv, introcv and padcv opcodes.
1303 .IP \(bu 4
1304 overload has been upgraded to 1.22.
1305 .Sp
1306 \&\f(CW\*(C`no overload\*(C'\fR now warns for invalid arguments, just like \f(CW\*(C`use overload\*(C'\fR.
1307 .IP \(bu 4
1308 PerlIO::encoding has been upgraded to 0.16.
1309 .Sp
1310 This is the module implementing the ":encoding(...)" I/O layer. It no
1311 longer corrupts memory or crashes when the encoding back\-end reallocates
1312 the buffer or gives it a typeglob or shared hash key scalar.
1313 .IP \(bu 4
1314 PerlIO::scalar has been upgraded to 0.16.
1315 .Sp
1316 The buffer scalar supplied may now only contain code points 0xFF or
1317 lower. [perl #109828]
1318 .IP \(bu 4
1319 Perl::OSType has been upgraded to 1.003.
1320 .Sp
1321 This fixes a bug detecting the VOS operating system.
1322 .IP \(bu 4
1323 Pod::Html has been upgraded to 1.18.
1324 .Sp
1325 The option \f(CW\*(C`\-\-libpods\*(C'\fR has been reinstated. It is deprecated, and its use
1326 does nothing other than issue a warning that it is no longer supported.
1327 .Sp
1328 Since the HTML files generated by pod2html claim to have a UTF\-8 charset,
1329 actually write the files out using UTF\-8 [perl #111446].
1330 .IP \(bu 4
1331 Pod::Simple has been upgraded to 3.28.
1332 .Sp
1333 Numerous improvements have been made, mostly to Pod::Simple::XHTML,
1334 which also has a compatibility change: the \f(CW\*(C`codes_in_verbatim\*(C'\fR option
1335 is now disabled by default. See \fIcpan/Pod\-Simple/ChangeLog\fR for the
1336 full details.
1337 .IP \(bu 4
1338 re has been upgraded to 0.23
1339 .Sp
1340 Single character [class]es like \f(CW\*(C`/[s]/\*(C'\fR or \f(CW\*(C`/[s]/i\*(C'\fR are now optimized
1341 as if they did not have the brackets, i.e. \f(CW\*(C`/s/\*(C'\fR or \f(CW\*(C`/s/i\*(C'\fR.
1342 .Sp
1343 See note about \f(CW\*(C`op_comp\*(C'\fR in the "Internal Changes" section below.
1344 .IP \(bu 4
1345 Safe has been upgraded to 2.35.
1346 .Sp
1347 Fix interactions with \f(CW\*(C`Devel::Cover\*(C'\fR.
1348 .Sp
1349 Don\*(Aqt eval code under \f(CW\*(C`no strict\*(C'\fR.
1350 .IP \(bu 4
1351 Scalar::Util has been upgraded to version 1.27.
1352 .Sp
1353 Fix an overloading issue with \f(CW\*(C`sum\*(C'\fR.
1354 .Sp
1355 \&\f(CW\*(C`first\*(C'\fR and \f(CW\*(C`reduce\*(C'\fR now check the callback first (so \f(CW&first(1)\fR is
1356 disallowed).
1357 .Sp
1358 Fix \f(CW\*(C`tainted\*(C'\fR on magical values [rt.cpan.org #55763].
1359 .Sp
1360 Fix \f(CW\*(C`sum\*(C'\fR on previously magical values [rt.cpan.org #61118].
1361 .Sp
1362 Fix reading past the end of a fixed buffer [rt.cpan.org #72700].
1363 .IP \(bu 4
1364 Search::Dict has been upgraded to 1.07.
1365 .Sp
1366 No longer require \f(CW\*(C`stat\*(C'\fR on filehandles.
1367 .Sp
1368 Use \f(CW\*(C`fc\*(C'\fR for casefolding.
1369 .IP \(bu 4
1370 Socket has been upgraded to 2.009.
1371 .Sp
1372 Constants and functions required for IP multicast source group membership
1373 have been added.
1374 .Sp
1375 \&\f(CWunpack_sockaddr_in()\fR and \f(CWunpack_sockaddr_in6()\fR now return just the IP
1376 address in scalar context, and \f(CWinet_ntop()\fR now guards against incorrect
1377 length scalars being passed in.
1378 .Sp
1379 This fixes an uninitialized memory read.
1380 .IP \(bu 4
1381 Storable has been upgraded to 2.41.
1382 .Sp
1383 Modifying \f(CW$_[0]\fR within \f(CW\*(C`STORABLE_freeze\*(C'\fR no longer results in crashes
1384 [perl #112358].
1385 .Sp
1386 An object whose class implements \f(CW\*(C`STORABLE_attach\*(C'\fR is now thawed only once
1387 when there are multiple references to it in the structure being thawed
1388 [perl #111918].
1389 .Sp
1390 Restricted hashes were not always thawed correctly [perl #73972].
1391 .Sp
1392 Storable would croak when freezing a blessed REF object with a
1393 \&\f(CWSTORABLE_freeze()\fR method [perl #113880].
1394 .Sp
1395 It can now freeze and thaw vstrings correctly. This causes a slight
1396 incompatible change in the storage format, so the format version has
1397 increased to 2.9.
1398 .Sp
1399 This contains various bugfixes, including compatibility fixes for older
1400 versions of Perl and vstring handling.
1401 .IP \(bu 4
1402 Sys::Syslog has been upgraded to 0.32.
1403 .Sp
1404 This contains several bug fixes relating to \f(CWgetservbyname()\fR,
1405 \&\f(CWsetlogsock()\fRand log levels in \f(CWsyslog()\fR, together with fixes for
1406 Windows, Haiku\-OS and GNU/kFreeBSD. See \fIcpan/Sys\-Syslog/Changes\fR
1407 for the full details.
1408 .IP \(bu 4
1409 Term::ANSIColor has been upgraded to 4.02.
1410 .Sp
1411 Add support for italics.
1412 .Sp
1413 Improve error handling.
1414 .IP \(bu 4
1415 Term::ReadLine has been upgraded to 1.10. This fixes the
1416 use of the \fBcpan\fR and \fBcpanp\fR shells on Windows in the event that the current
1417 drive happens to contain a \fI\edev\etty\fR file.
1418 .IP \(bu 4
1419 Test::Harness has been upgraded to 3.26.
1420 .Sp
1421 Fix glob semantics on Win32 [rt.cpan.org #49732].
1422 .Sp
1423 Don\*(Aqt use \f(CW\*(C`Win32::GetShortPathName\*(C'\fR when calling perl [rt.cpan.org #47890].
1424 .Sp
1425 Ignore \-T when reading shebang [rt.cpan.org #64404].
1426 .Sp
1427 Handle the case where we don\*(Aqt know the wait status of the test more
1428 gracefully.
1429 .Sp
1430 Make the test summary \*(Aqok\*(Aq line overridable so that it can be changed to a
1431 plugin to make the output of prove idempotent.
1432 .Sp
1433 Don\*(Aqt run world\-writable files.
1434 .IP \(bu 4
1435 Text::Tabs and Text::Wrap have been upgraded to
1436 2012.0818. Support for Unicode combining characters has been added to them
1437 both.
1438 .IP \(bu 4
1439 threads::shared has been upgraded to 1.31.
1440 .Sp
1441 This adds the option to warn about or ignore attempts to clone structures
1442 that can\*(Aqt be cloned, as opposed to just unconditionally dying in
1443 that case.
1444 .Sp
1445 This adds support for dual\-valued values as created by
1446 Scalar::Util::dualvar.
1447 .IP \(bu 4
1448 Tie::StdHandle has been upgraded to 4.3.
1449 .Sp
1450 \&\f(CW\*(C`READ\*(C'\fR now respects the offset argument to \f(CW\*(C`read\*(C'\fR [perl #112826].
1451 .IP \(bu 4
1452 Time::Local has been upgraded to 1.2300.
1453 .Sp
1454 Seconds values greater than 59 but less than 60 no longer cause
1455 \&\f(CWtimegm()\fR and \f(CWtimelocal()\fR to croak.
1456 .IP \(bu 4
1457 Unicode::UCD has been upgraded to 0.53.
1458 .Sp
1459 This adds a function \fBall_casefolds()\fR
1460 that returns all the casefolds.
1461 .IP \(bu 4
1462 Win32 has been upgraded to 0.47.
1463 .Sp
1464 New APIs have been added for getting and setting the current code page.
1465 .SS "Removed Modules and Pragmata"
1466 .IX Subsection "Removed Modules and Pragmata"
1467 .IP \(bu 4
1468 Version::Requirements has been removed from the core distribution. It is
1469 available under a different name: CPAN::Meta::Requirements.
1470 .SH Documentation
1471 .IX Header "Documentation"
1472 .SS "Changes to Existing Documentation"
1473 .IX Subsection "Changes to Existing Documentation"
1474 \fIperlcheat\fR
1475 .IX Subsection "perlcheat"
1476 .IP \(bu 4
1477 perlcheat has been reorganized, and a few new sections were added.
1478 .PP
1479 \fIperldata\fR
1480 .IX Subsection "perldata"
1481 .IP \(bu 4
1482 Now explicitly documents the behaviour of hash initializer lists that
1483 contain duplicate keys.
1484 .PP
1485 \fIperldiag\fR
1486 .IX Subsection "perldiag"
1487 .IP \(bu 4
1488 The explanation of symbolic references being prevented by "strict refs"
1489 now doesn\*(Aqt assume that the reader knows what symbolic references are.
1490 .PP
1491 \fIperlfaq\fR
1492 .IX Subsection "perlfaq"
1493 .IP \(bu 4
1494 perlfaq has been synchronized with version 5.0150040 from CPAN.
1495 .PP
1496 \fIperlfunc\fR
1497 .IX Subsection "perlfunc"
1498 .IP \(bu 4
1499 The return value of \f(CW\*(C`pipe\*(C'\fR is now documented.
1500 .IP \(bu 4
1501 Clarified documentation of \f(CW\*(C`our\*(C'\fR.
1502 .PP
1503 \fIperlop\fR
1504 .IX Subsection "perlop"
1505 .IP \(bu 4
1506 Loop control verbs (\f(CW\*(C`dump\*(C'\fR, \f(CW\*(C`goto\*(C'\fR, \f(CW\*(C`next\*(C'\fR, \f(CW\*(C`last\*(C'\fR and \f(CW\*(C`redo\*(C'\fR) have always
1507 had the same precedence as assignment operators, but this was not documented
1508 until now.
1509 .PP
1510 \fIDiagnostics\fR
1511 .IX Subsection "Diagnostics"
1512 .PP
1513 The following additions or changes have been made to diagnostic output,
1514 including warnings and fatal error messages. For the complete list of
1515 diagnostic messages, see perldiag.
1516 .SS "New Diagnostics"
1517 .IX Subsection "New Diagnostics"
1518 \fINew Errors\fR
1519 .IX Subsection "New Errors"
1520 .IP \(bu 4
1521 Unterminated delimiter for here document
1522 .Sp
1523 This message now occurs when a here document label has an initial quotation
1524 mark but the final quotation mark is missing.
1525 .Sp
1526 This replaces a bogus and misleading error message about not finding the label
1527 itself [perl #114104].
1528 .IP \(bu 4
1529 panic: child pseudo\-process was never scheduled
1530 .Sp
1531 This error is thrown when a child pseudo\-process in the ithreads implementation
1532 on Windows was not scheduled within the time period allowed and therefore was
1533 not able to initialize properly [perl #88840].
1534 .IP \(bu 4
1535 Group name must start with a non\-digit word character in regex; marked by <\-\- HERE in m/%s/
1536 .Sp
1537 This error has been added for \f(CW\*(C`(?&0)\*(C'\fR, which is invalid. It used to
1538 produce an incomprehensible error message [perl #101666].
1539 .IP \(bu 4
1540 Can\*(Aqt use an undefined value as a subroutine reference
1541 .Sp
1542 Calling an undefined value as a subroutine now produces this error message.
1543 It used to, but was accidentally disabled, first in Perl 5.004 for
1544 non\-magical variables, and then in Perl v5.14 for magical (e.g., tied)
1545 variables. It has now been restored. In the mean time, undef was treated
1546 as an empty string [perl #113576].
1547 .IP \(bu 4
1548 Experimental "%s" subs not enabled
1549 .Sp
1550 To use lexical subs, you must first enable them:
1551 .Sp
1552 .Vb 3
1553 \& no warnings \*(Aqexperimental::lexical_subs\*(Aq;
1554 \& use feature \*(Aqlexical_subs\*(Aq;
1555 \& my sub foo { ... }
1556 .Ve
1557 .PP
1558 \fINew Warnings\fR
1559 .IX Subsection "New Warnings"
1560 .IP \(bu 4
1561 \&\*(AqStrings with code points over 0xFF may not be mapped into in\-memory file handles\*(Aq
1562 .IP \(bu 4
1563 \&\*(Aq%s\*(Aq resolved to \*(Aq\eo{%s}%d\*(Aq
1564 .IP \(bu 4
1565 \&\*(AqTrailing white\-space in a charnames alias definition is deprecated\*(Aq
1566 .IP \(bu 4
1567 \&\*(AqA sequence of multiple spaces in a charnames alias definition is deprecated\*(Aq
1568 .IP \(bu 4
1569 \&\*(AqPassing malformed UTF\-8 to "%s" is deprecated\*(Aq
1570 .IP \(bu 4
1571 Subroutine "&%s" is not available
1572 .Sp
1573 (W closure) During compilation, an inner named subroutine or eval is
1574 attempting to capture an outer lexical subroutine that is not currently
1575 available. This can happen for one of two reasons. First, the lexical
1576 subroutine may be declared in an outer anonymous subroutine that has not
1577 yet been created. (Remember that named subs are created at compile time,
1578 while anonymous subs are created at run\-time.) For example,
1579 .Sp
1580 .Vb 1
1581 \& sub { my sub a {...} sub f { \e&a } }
1582 .Ve
1583 .Sp
1584 At the time that f is created, it can\*(Aqt capture the current the "a" sub,
1585 since the anonymous subroutine hasn\*(Aqt been created yet. Conversely, the
1586 following won\*(Aqt give a warning since the anonymous subroutine has by now
1587 been created and is live:
1588 .Sp
1589 .Vb 1
1590 \& sub { my sub a {...} eval \*(Aqsub f { \e&a }\*(Aq }\->();
1591 .Ve
1592 .Sp
1593 The second situation is caused by an eval accessing a variable that has
1594 gone out of scope, for example,
1595 .Sp
1596 .Vb 5
1597 \& sub f {
1598 \& my sub a {...}
1599 \& sub { eval \*(Aq\e&a\*(Aq }
1600 \& }
1601 \& f()\->();
1602 .Ve
1603 .Sp
1604 Here, when the \*(Aq\e&a\*(Aq in the eval is being compiled, f() is not currently
1605 being executed, so its &a is not available for capture.
1606 .IP \(bu 4
1607 "%s" subroutine &%s masks earlier declaration in same \f(CW%s\fR
1608 .Sp
1609 (W misc) A "my" or "state" subroutine has been redeclared in the
1610 current scope or statement, effectively eliminating all access to
1611 the previous instance. This is almost always a typographical error.
1612 Note that the earlier subroutine will still exist until the end of
1613 the scope or until all closure references to it are destroyed.
1614 .IP \(bu 4
1615 The \f(CW%s\fR feature is experimental
1616 .Sp
1617 (S experimental) This warning is emitted if you enable an experimental
1618 feature via \f(CW\*(C`use feature\*(C'\fR. Simply suppress the warning if you want
1619 to use the feature, but know that in doing so you are taking the risk
1620 of using an experimental feature which may change or be removed in a
1621 future Perl version:
1622 .Sp
1623 .Vb 2
1624 \& no warnings "experimental::lexical_subs";
1625 \& use feature "lexical_subs";
1626 .Ve
1627 .IP \(bu 4
1628 sleep(%u) too large
1629 .Sp
1630 (W overflow) You called \f(CW\*(C`sleep\*(C'\fR with a number that was larger than it can
1631 reliably handle and \f(CW\*(C`sleep\*(C'\fR probably slept for less time than requested.
1632 .IP \(bu 4
1633 Wide character in setenv
1634 .Sp
1635 Attempts to put wide characters into environment variables via \f(CW%ENV\fR now
1636 provoke this warning.
1637 .IP \(bu 4
1638 "Invalid negative number (%s) in chr"
1639 .Sp
1640 \&\f(CWchr()\fR now warns when passed a negative value [perl #83048].
1641 .IP \(bu 4
1642 "Integer overflow in srand"
1643 .Sp
1644 \&\f(CWsrand()\fR now warns when passed a value that doesn\*(Aqt fit in a \f(CW\*(C`UV\*(C'\fR (since the
1645 value will be truncated rather than overflowing) [perl #40605].
1646 .IP \(bu 4
1647 "\-i used with no filenames on the command line, reading from STDIN"
1648 .Sp
1649 Running perl with the \f(CW\*(C`\-i\*(C'\fR flag now warns if no input files are provided on
1650 the command line [perl #113410].
1651 .SS "Changes to Existing Diagnostics"
1652 .IX Subsection "Changes to Existing Diagnostics"
1653 .IP \(bu 4
1654 $* is no longer supported
1655 .Sp
1656 The warning that use of \f(CW$*\fR and \f(CW$#\fR is no longer supported is now
1657 generated for every location that references them. Previously it would fail
1658 to be generated if another variable using the same typeglob was seen first
1659 (e.g. \f(CW\*(C`@*\*(C'\fR before \f(CW$*\fR), and would not be generated for the second and
1660 subsequent uses. (It\*(Aqs hard to fix the failure to generate warnings at all
1661 without also generating them every time, and warning every time is
1662 consistent with the warnings that \f(CW$[\fR used to generate.)
1663 .IP \(bu 4
1664 The warnings for \f(CW\*(C`\eb{\*(C'\fR and \f(CW\*(C`\eB{\*(C'\fR were added. They are a deprecation
1665 warning which should be turned off by that category. One should not
1666 have to turn off regular regexp warnings as well to get rid of these.
1667 .IP \(bu 4
1668 Constant(%s): Call to &{$^H{%s}} did not return a defined value
1669 .Sp
1670 Constant overloading that returns \f(CW\*(C`undef\*(C'\fR results in this error message.
1671 For numeric constants, it used to say "Constant(undef)". "undef" has been
1672 replaced with the number itself.
1673 .IP \(bu 4
1674 The error produced when a module cannot be loaded now includes a hint that
1675 the module may need to be installed: "Can\*(Aqt locate hopping.pm in \f(CW@INC\fR (you
1676 may need to install the hopping module) (@INC contains: ...)"
1677 .IP \(bu 4
1678 vector argument not supported with alpha versions
1679 .Sp
1680 This warning was not suppressible, even with \f(CW\*(C`no warnings\*(C'\fR. Now it is
1681 suppressible, and has been moved from the "internal" category to the
1682 "printf" category.
1683 .IP \(bu 4
1684 \&\f(CW\*(C`Can\*(Aqt do {n,m} with n > m in regex; marked by <\-\- HERE in m/%s/\*(C'\fR
1685 .Sp
1686 This fatal error has been turned into a warning that reads:
1687 .Sp
1688 Quantifier {n,m} with n > m can\*(Aqt match in regex
1689 .Sp
1690 (W regexp) Minima should be less than or equal to maxima. If you really want
1691 your regexp to match something 0 times, just put {0}.
1692 .IP \(bu 4
1693 The "Runaway prototype" warning that occurs in bizarre cases has been
1694 removed as being unhelpful and inconsistent.
1695 .IP \(bu 4
1696 The "Not a format reference" error has been removed, as the only case in
1697 which it could be triggered was a bug.
1698 .IP \(bu 4
1699 The "Unable to create sub named \f(CW%s\fR" error has been removed for the same
1700 reason.
1701 .IP \(bu 4
1702 The \*(AqCan\*(Aqt use "my \f(CW%s\fR" in sort comparison\*(Aq error has been downgraded to a
1703 warning, \*(Aq"my \f(CW%s\fR" used in sort comparison\*(Aq (with \*(Aqstate\*(Aq instead of \*(Aqmy\*(Aq
1704 for state variables). In addition, the heuristics for guessing whether
1705 lexical \f(CW$a\fR or \f(CW$b\fR has been misused have been improved to generate fewer
1706 false positives. Lexical \f(CW$a\fR and \f(CW$b\fR are no longer disallowed if they are
1707 outside the sort block. Also, a named unary or list operator inside the
1708 sort block no longer causes the \f(CW$a\fR or \f(CW$b\fR to be ignored [perl #86136].
1709 .SH "Utility Changes"
1710 .IX Header "Utility Changes"
1711 \fIh2xs\fR
1712 .IX Subsection "h2xs"
1713 .IP \(bu 4
1714 \&\fIh2xs\fR no longer produces invalid code for empty defines. [perl #20636]
1715 .SH "Configuration and Compilation"
1716 .IX Header "Configuration and Compilation"
1717 .IP \(bu 4
1718 Added \f(CW\*(C`useversionedarchname\*(C'\fR option to Configure
1719 .Sp
1720 When set, it includes \*(Aqapi_versionstring\*(Aq in \*(Aqarchname\*(Aq. E.g.
1721 x86_64\-linux\-5.13.6\-thread\-multi. It is unset by default.
1722 .Sp
1723 This feature was requested by Tim Bunce, who observed that
1724 \&\f(CW\*(C`INSTALL_BASE\*(C'\fR creates a library structure that does not
1725 differentiate by perl version. Instead, it places architecture
1726 specific files in "$install_base/lib/perl5/$archname". This makes
1727 it difficult to use a common \f(CW\*(C`INSTALL_BASE\*(C'\fR library path with
1728 multiple versions of perl.
1729 .Sp
1730 By setting \f(CW\*(C`\-Duseversionedarchname\*(C'\fR, the \f(CW$archname\fR will be
1731 distinct for architecture \fIand\fR API version, allowing mixed use of
1732 \&\f(CW\*(C`INSTALL_BASE\*(C'\fR.
1733 .IP \(bu 4
1734 Add a \f(CW\*(C`PERL_NO_INLINE_FUNCTIONS\*(C'\fR option
1735 .Sp
1736 If \f(CW\*(C`PERL_NO_INLINE_FUNCTIONS\*(C'\fR is defined, don\*(Aqt include "inline.h"
1737 .Sp
1738 This permits test code to include the perl headers for definitions without
1739 creating a link dependency on the perl library (which may not exist yet).
1740 .IP \(bu 4
1741 Configure will honour the external \f(CW\*(C`MAILDOMAIN\*(C'\fR environment variable, if set.
1742 .IP \(bu 4
1743 \&\f(CW\*(C`installman\*(C'\fR no longer ignores the silent option
1744 .IP \(bu 4
1745 Both \f(CW\*(C`META.yml\*(C'\fR and \f(CW\*(C`META.json\*(C'\fR files are now included in the distribution.
1746 .IP \(bu 4
1747 \&\fIConfigure\fR will now correctly detect \f(CWisblank()\fR when compiling with a C++
1748 compiler.
1749 .IP \(bu 4
1750 The pager detection in \fIConfigure\fR has been improved to allow responses which
1751 specify options after the program name, e.g. \fB/usr/bin/less \-R\fR, if the user
1752 accepts the default value. This helps \fBperldoc\fR when handling ANSI escapes
1753 [perl #72156].
1754 .SH Testing
1755 .IX Header "Testing"
1756 .IP \(bu 4
1757 The test suite now has a section for tests that require very large amounts
1758 of memory. These tests won\*(Aqt run by default; they can be enabled by
1759 setting the \f(CW\*(C`PERL_TEST_MEMORY\*(C'\fR environment variable to the number of
1760 gibibytes of memory that may be safely used.
1761 .SH "Platform Support"
1762 .IX Header "Platform Support"
1763 .SS "Discontinued Platforms"
1764 .IX Subsection "Discontinued Platforms"
1765 .IP BeOS 4
1766 .IX Item "BeOS"
1767 BeOS was an operating system for personal computers developed by Be Inc,
1768 initially for their BeBox hardware. The OS Haiku was written as an open
1769 source replacement for/continuation of BeOS, and its perl port is current and
1770 actively maintained.
1771 .IP "UTS Global" 4
1772 .IX Item "UTS Global"
1773 Support code relating to UTS global has been removed. UTS was a mainframe
1774 version of System V created by Amdahl, subsequently sold to UTS Global. The
1775 port has not been touched since before Perl v5.8.0, and UTS Global is now
1776 defunct.
1777 .IP VM/ESA 4
1778 .IX Item "VM/ESA"
1779 Support for VM/ESA has been removed. The port was tested on 2.3.0, which
1780 IBM ended service on in March 2002. 2.4.0 ended service in June 2003, and
1781 was superseded by Z/VM. The current version of Z/VM is V6.2.0, and scheduled
1782 for end of service on 2015/04/30.
1783 .IP MPE/IX 4
1784 .IX Item "MPE/IX"
1785 Support for MPE/IX has been removed.
1786 .IP EPOC 4
1787 .IX Item "EPOC"
1788 Support code relating to EPOC has been removed. EPOC was a family of
1789 operating systems developed by Psion for mobile devices. It was the
1790 predecessor of Symbian. The port was last updated in April 2002.
1791 .IP Rhapsody 4
1792 .IX Item "Rhapsody"
1793 Support for Rhapsody has been removed.
1794 .SS "Platform\-Specific Notes"
1795 .IX Subsection "Platform-Specific Notes"
1796 \fIAIX\fR
1797 .IX Subsection "AIX"
1798 .PP
1799 Configure now always adds \f(CW\*(C`\-qlanglvl=extc99\*(C'\fR to the CC flags on AIX when
1800 using xlC. This will make it easier to compile a number of XS\-based modules
1801 that assume C99 [perl #113778].
1802 .PP
1803 \fIclang++\fR
1804 .IX Subsection "clang++"
1805 .PP
1806 There is now a workaround for a compiler bug that prevented compiling
1807 with clang++ since Perl v5.15.7 [perl #112786].
1808 .PP
1809 \fIC++\fR
1810 .IX Subsection "C++"
1811 .PP
1812 When compiling the Perl core as C++ (which is only semi\-supported), the
1813 mathom functions are now compiled as \f(CW\*(C`extern "C"\*(C'\fR, to ensure proper
1814 binary compatibility. (However, binary compatibility isn\*(Aqt generally
1815 guaranteed anyway in the situations where this would matter.)
1816 .PP
1817 \fIDarwin\fR
1818 .IX Subsection "Darwin"
1819 .PP
1820 Stop hardcoding an alignment on 8 byte boundaries to fix builds using
1821 \&\-Dusemorebits.
1822 .PP
1823 \fIHaiku\fR
1824 .IX Subsection "Haiku"
1825 .PP
1826 Perl should now work out of the box on Haiku R1 Alpha 4.
1827 .PP
1828 \fIMidnightBSD\fR
1829 .IX Subsection "MidnightBSD"
1830 .PP
1831 \&\f(CW\*(C`libc_r\*(C'\fR was removed from recent versions of MidnightBSD and older versions
1832 work better with \f(CW\*(C`pthread\*(C'\fR. Threading is now enabled using \f(CW\*(C`pthread\*(C'\fR which
1833 corrects build errors with threading enabled on 0.4\-CURRENT.
1834 .PP
1835 \fISolaris\fR
1836 .IX Subsection "Solaris"
1837 .PP
1838 In Configure, avoid running sed commands with flags not supported on Solaris.
1839 .PP
1840 \fIVMS\fR
1841 .IX Subsection "VMS"
1842 .IP \(bu 4
1843 Where possible, the case of filenames and command\-line arguments is now
1844 preserved by enabling the CRTL features \f(CW\*(C`DECC$EFS_CASE_PRESERVE\*(C'\fR and
1845 \&\f(CW\*(C`DECC$ARGV_PARSE_STYLE\*(C'\fR at start\-up time. The latter only takes effect
1846 when extended parse is enabled in the process from which Perl is run.
1847 .IP \(bu 4
1848 The character set for Extended Filename Syntax (EFS) is now enabled by default
1849 on VMS. Among other things, this provides better handling of dots in directory
1850 names, multiple dots in filenames, and spaces in filenames. To obtain the old
1851 behavior, set the logical name \f(CW\*(C`DECC$EFS_CHARSET\*(C'\fR to \f(CW\*(C`DISABLE\*(C'\fR.
1852 .IP \(bu 4
1853 Fixed linking on builds configured with \f(CW\*(C`\-Dusemymalloc=y\*(C'\fR.
1854 .IP \(bu 4
1855 Experimental support for building Perl with the HP C++ compiler is available
1856 by configuring with \f(CW\*(C`\-Dusecxx\*(C'\fR.
1857 .IP \(bu 4
1858 All C header files from the top\-level directory of the distribution are now
1859 installed on VMS, providing consistency with a long\-standing practice on other
1860 platforms. Previously only a subset were installed, which broke non\-core
1861 extension builds for extensions that depended on the missing include files.
1862 .IP \(bu 4
1863 Quotes are now removed from the command verb (but not the parameters) for
1864 commands spawned via \f(CW\*(C`system\*(C'\fR, backticks, or a piped \f(CW\*(C`open\*(C'\fR. Previously,
1865 quotes on the verb were passed through to DCL, which would fail to recognize
1866 the command. Also, if the verb is actually a path to an image or command
1867 procedure on an ODS\-5 volume, quoting it now allows the path to contain spaces.
1868 .IP \(bu 4
1869 The \fBa2p\fR build has been fixed for the HP C++ compiler on OpenVMS.
1870 .PP
1871 \fIWin32\fR
1872 .IX Subsection "Win32"
1873 .IP \(bu 4
1874 Perl can now be built using Microsoft\*(Aqs Visual C++ 2012 compiler by specifying
1875 CCTYPE=MSVC110 (or MSVC110FREE if you are using the free Express edition for
1876 Windows Desktop) in \fIwin32/Makefile\fR.
1877 .IP \(bu 4
1878 The option to build without \f(CW\*(C`USE_SOCKETS_AS_HANDLES\*(C'\fR has been removed.
1879 .IP \(bu 4
1880 Fixed a problem where perl could crash while cleaning up threads (including the
1881 main thread) in threaded debugging builds on Win32 and possibly other platforms
1882 [perl #114496].
1883 .IP \(bu 4
1884 A rare race condition that would lead to sleep taking more
1885 time than requested, and possibly even hanging, has been fixed [perl #33096].
1886 .IP \(bu 4
1887 \&\f(CW\*(C`link\*(C'\fR on Win32 now attempts to set \f(CW$!\fR to more appropriate values
1888 based on the Win32 API error code. [perl #112272]
1889 .Sp
1890 Perl no longer mangles the environment block, e.g. when launching a new
1891 sub\-process, when the environment contains non\-ASCII characters. Known
1892 problems still remain, however, when the environment contains characters
1893 outside of the current ANSI codepage (e.g. see the item about Unicode in
1894 \&\f(CW%ENV\fR in <http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/todo.pod>).
1895 [perl #113536]
1896 .IP \(bu 4
1897 Building perl with some Windows compilers used to fail due to a problem
1898 with miniperl\*(Aqs \f(CW\*(C`glob\*(C'\fR operator (which uses the \f(CW\*(C`perlglob\*(C'\fR program)
1899 deleting the PATH environment variable [perl #113798].
1900 .IP \(bu 4
1901 A new makefile option, \f(CW\*(C`USE_64_BIT_INT\*(C'\fR, has been added to the Windows
1902 makefiles. Set this to "define" when building a 32\-bit perl if you want
1903 it to use 64\-bit integers.
1904 .Sp
1905 Machine code size reductions, already made to the DLLs of XS modules in
1906 Perl v5.17.2, have now been extended to the perl DLL itself.
1907 .Sp
1908 Building with VC++ 6.0 was inadvertently broken in Perl v5.17.2 but has
1909 now been fixed again.
1910 .PP
1911 \fIWinCE\fR
1912 .IX Subsection "WinCE"
1913 .PP
1914 Building on WinCE is now possible once again, although more work is required
1915 to fully restore a clean build.
1916 .SH "Internal Changes"
1917 .IX Header "Internal Changes"
1918 .IP \(bu 4
1919 Synonyms for the misleadingly named \f(CWav_len()\fR have been created:
1920 \&\f(CWav_top_index()\fR and \f(CW\*(C`av_tindex\*(C'\fR. All three of these return the
1921 number of the highest index in the array, not the number of elements it
1922 contains.
1923 .IP \(bu 4
1924 \&\fBSvUPGRADE()\fR is no longer an expression. Originally this macro (and its
1925 underlying function, \fBsv_upgrade()\fR) were documented as boolean, although
1926 in reality they always croaked on error and never returned false. In 2005
1927 the documentation was updated to specify a void return value, but
1928 \&\fBSvUPGRADE()\fR was left always returning 1 for backwards compatibility. This
1929 has now been removed, and \fBSvUPGRADE()\fR is now a statement with no return
1930 value.
1931 .Sp
1932 So this is now a syntax error:
1933 .Sp
1934 .Vb 1
1935 \& if (!SvUPGRADE(sv)) { croak(...); }
1936 .Ve
1937 .Sp
1938 If you have code like that, simply replace it with
1939 .Sp
1940 .Vb 1
1941 \& SvUPGRADE(sv);
1942 .Ve
1943 .Sp
1944 or to avoid compiler warnings with older perls, possibly
1945 .Sp
1946 .Vb 1
1947 \& (void)SvUPGRADE(sv);
1948 .Ve
1949 .IP \(bu 4
1950 Perl has a new copy\-on\-write mechanism that allows any SvPOK scalar to be
1951 upgraded to a copy\-on\-write scalar. A reference count on the string buffer
1952 is stored in the string buffer itself. This feature is \fBnot enabled by
1953 default\fR.
1954 .Sp
1955 It can be enabled in a perl build by running \fIConfigure\fR with
1956 \&\fB\-Accflags=\-DPERL_NEW_COPY_ON_WRITE\fR, and we would encourage XS authors
1957 to try their code with such an enabled perl, and provide feedback.
1958 Unfortunately, there is not yet a good guide to updating XS code to cope
1959 with COW. Until such a document is available, consult the perl5\-porters
1960 mailing list.
1961 .Sp
1962 It breaks a few XS modules by allowing copy\-on\-write scalars to go
1963 through code paths that never encountered them before.
1964 .IP \(bu 4
1965 Copy\-on\-write no longer uses the SvFAKE and SvREADONLY flags. Hence,
1966 SvREADONLY indicates a true read\-only SV.
1967 .Sp
1968 Use the SvIsCOW macro (as before) to identify a copy\-on\-write scalar.
1969 .IP \(bu 4
1970 \&\f(CW\*(C`PL_glob_index\*(C'\fR is gone.
1971 .IP \(bu 4
1972 The private Perl_croak_no_modify has had its context parameter removed. It
1973 now has a void prototype. Users of the public API croak_no_modify remain
1974 unaffected.
1975 .IP \(bu 4
1976 Copy\-on\-write (shared hash key) scalars are no longer marked read\-only.
1977 \&\f(CW\*(C`SvREADONLY\*(C'\fR returns false on such an SV, but \f(CW\*(C`SvIsCOW\*(C'\fR still returns
1978 true.
1979 .IP \(bu 4
1980 A new op type, \f(CW\*(C`OP_PADRANGE\*(C'\fR has been introduced. The perl peephole
1981 optimiser will, where possible, substitute a single padrange op for a
1982 pushmark followed by one or more pad ops, and possibly also skipping list
1983 and nextstate ops. In addition, the op can carry out the tasks associated
1984 with the RHS of a \f(CW\*(C`my(...) = @_\*(C'\fR assignment, so those ops may be optimised
1985 away too.
1986 .IP \(bu 4
1987 Case\-insensitive matching inside a [bracketed] character class with a
1988 multi\-character fold no longer excludes one of the possibilities in the
1989 circumstances that it used to. [perl #89774].
1990 .IP \(bu 4
1991 \&\f(CW\*(C`PL_formfeed\*(C'\fR has been removed.
1992 .IP \(bu 4
1993 The regular expression engine no longer reads one byte past the end of the
1994 target string. While for all internally well\-formed scalars this should
1995 never have been a problem, this change facilitates clever tricks with
1996 string buffers in CPAN modules. [perl #73542]
1997 .IP \(bu 4
1998 Inside a BEGIN block, \f(CW\*(C`PL_compcv\*(C'\fR now points to the currently\-compiling
1999 subroutine, rather than the BEGIN block itself.
2000 .IP \(bu 4
2001 \&\f(CW\*(C`mg_length\*(C'\fR has been deprecated.
2002 .IP \(bu 4
2003 \&\f(CW\*(C`sv_len\*(C'\fR now always returns a byte count and \f(CW\*(C`sv_len_utf8\*(C'\fR a character
2004 count. Previously, \f(CW\*(C`sv_len\*(C'\fR and \f(CW\*(C`sv_len_utf8\*(C'\fR were both buggy and would
2005 sometimes return bytes and sometimes characters. \f(CW\*(C`sv_len_utf8\*(C'\fR no longer
2006 assumes that its argument is in UTF\-8. Neither of these creates UTF\-8 caches
2007 for tied or overloaded values or for non\-PVs any more.
2008 .IP \(bu 4
2009 \&\f(CW\*(C`sv_mortalcopy\*(C'\fR now copies string buffers of shared hash key scalars when
2010 called from XS modules [perl #79824].
2011 .IP \(bu 4
2012 The new \f(CW\*(C`RXf_MODIFIES_VARS\*(C'\fR flag can be set by custom regular expression
2013 engines to indicate that the execution of the regular expression may cause
2014 variables to be modified. This lets \f(CW\*(C`s///\*(C'\fR know to skip certain
2015 optimisations. Perl\*(Aqs own regular expression engine sets this flag for the
2016 special backtracking verbs that set \f(CW$REGMARK\fR and \f(CW$REGERROR\fR.
2017 .IP \(bu 4
2018 The APIs for accessing lexical pads have changed considerably.
2019 .Sp
2020 \&\f(CW\*(C`PADLIST\*(C'\fRs are now longer \f(CW\*(C`AV\*(C'\fRs, but their own type instead.
2021 \&\f(CW\*(C`PADLIST\*(C'\fRs now contain a \f(CW\*(C`PAD\*(C'\fR and a \f(CW\*(C`PADNAMELIST\*(C'\fR of \f(CW\*(C`PADNAME\*(C'\fRs,
2022 rather than \f(CW\*(C`AV\*(C'\fRs for the pad and the list of pad names. \f(CW\*(C`PAD\*(C'\fRs,
2023 \&\f(CW\*(C`PADNAMELIST\*(C'\fRs, and \f(CW\*(C`PADNAME\*(C'\fRs are to be accessed as such through the
2024 newly added pad API instead of the plain \f(CW\*(C`AV\*(C'\fR and \f(CW\*(C`SV\*(C'\fR APIs. See
2025 perlapi for details.
2026 .IP \(bu 4
2027 In the regex API, the numbered capture callbacks are passed an index
2028 indicating what match variable is being accessed. There are special
2029 index values for the \f(CW\*(C`$\`, $&, $&\*(C'\fR variables. Previously the same three
2030 values were used to retrieve \f(CW\*(C`${^PREMATCH}, ${^MATCH}, ${^POSTMATCH}\*(C'\fR
2031 too, but these have now been assigned three separate values. See
2032 "Numbered capture callbacks" in perlreapi.
2033 .IP \(bu 4
2034 \&\f(CW\*(C`PL_sawampersand\*(C'\fR was previously a boolean indicating that any of
2035 \&\f(CW\*(C`$\`, $&, $&\*(C'\fR had been seen; it now contains three one\-bit flags
2036 indicating the presence of each of the variables individually.
2037 .IP \(bu 4
2038 The \f(CW\*(C`CV *\*(C'\fR typemap entry now supports \f(CW\*(C`&{}\*(C'\fR overloading and typeglobs,
2039 just like \f(CW\*(C`&{...}\*(C'\fR [perl #96872].
2040 .IP \(bu 4
2041 The \f(CW\*(C`SVf_AMAGIC\*(C'\fR flag to indicate overloading is now on the stash, not the
2042 object. It is now set automatically whenever a method or \f(CW@ISA\fR changes, so
2043 its meaning has changed, too. It now means "potentially overloaded". When
2044 the overload table is calculated, the flag is automatically turned off if
2045 there is no overloading, so there should be no noticeable slowdown.
2046 .Sp
2047 The staleness of the overload tables is now checked when overload methods
2048 are invoked, rather than during \f(CW\*(C`bless\*(C'\fR.
2049 .Sp
2050 "A" magic is gone. The changes to the handling of the \f(CW\*(C`SVf_AMAGIC\*(C'\fR flag
2051 eliminate the need for it.
2052 .Sp
2053 \&\f(CW\*(C`PL_amagic_generation\*(C'\fR has been removed as no longer necessary. For XS
2054 modules, it is now a macro alias to \f(CW\*(C`PL_na\*(C'\fR.
2055 .Sp
2056 The fallback overload setting is now stored in a stash entry separate from
2057 overloadedness itself.
2058 .IP \(bu 4
2059 The character\-processing code has been cleaned up in places. The changes
2060 should be operationally invisible.
2061 .IP \(bu 4
2062 The \f(CW\*(C`study\*(C'\fR function was made a no\-op in v5.16. It was simply disabled via
2063 a \f(CW\*(C`return\*(C'\fR statement; the code was left in place. Now the code supporting
2064 what \f(CW\*(C`study\*(C'\fR used to do has been removed.
2065 .IP \(bu 4
2066 Under threaded perls, there is no longer a separate PV allocated for every
2067 COP to store its package name (\f(CW\*(C`cop\->stashpv\*(C'\fR). Instead, there is an
2068 offset (\f(CW\*(C`cop\->stashoff\*(C'\fR) into the new \f(CW\*(C`PL_stashpad\*(C'\fR array, which
2069 holds stash pointers.
2070 .IP \(bu 4
2071 In the pluggable regex API, the \f(CW\*(C`regexp_engine\*(C'\fR struct has acquired a new
2072 field \f(CW\*(C`op_comp\*(C'\fR, which is currently just for perl\*(Aqs internal use, and
2073 should be initialized to NULL by other regex plugin modules.
2074 .IP \(bu 4
2075 A new function \f(CW\*(C`alloccopstash\*(C'\fR has been added to the API, but is considered
2076 experimental. See perlapi.
2077 .IP \(bu 4
2078 Perl used to implement get magic in a way that would sometimes hide bugs in
2079 code that could call \fBmg_get()\fR too many times on magical values. This hiding of
2080 errors no longer occurs, so long\-standing bugs may become visible now. If
2081 you see magic\-related errors in XS code, check to make sure it, together
2082 with the Perl API functions it uses, calls \fBmg_get()\fR only once on \fBSvGMAGICAL()\fR
2083 values.
2084 .IP \(bu 4
2085 OP allocation for CVs now uses a slab allocator. This simplifies
2086 memory management for OPs allocated to a CV, so cleaning up after a
2087 compilation error is simpler and safer [perl #111462][perl #112312].
2088 .IP \(bu 4
2089 \&\f(CW\*(C`PERL_DEBUG_READONLY_OPS\*(C'\fR has been rewritten to work with the new slab
2090 allocator, allowing it to catch more violations than before.
2091 .IP \(bu 4
2092 The old slab allocator for ops, which was only enabled for \f(CW\*(C`PERL_IMPLICIT_SYS\*(C'\fR
2093 and \f(CW\*(C`PERL_DEBUG_READONLY_OPS\*(C'\fR, has been retired.
2094 .SH "Selected Bug Fixes"
2095 .IX Header "Selected Bug Fixes"
2096 .IP \(bu 4
2097 Here document terminators no longer require a terminating newline character when
2098 they occur at the end of a file. This was already the case at the end of a
2099 string eval [perl #65838].
2100 .IP \(bu 4
2101 \&\f(CW\*(C`\-DPERL_GLOBAL_STRUCT\*(C'\fR builds now free the global struct \fBafter\fR
2102 they\*(Aqve finished using it.
2103 .IP \(bu 4
2104 A trailing \*(Aq/\*(Aq on a path in \f(CW@INC\fR will no longer have an additional \*(Aq/\*(Aq
2105 appended.
2106 .IP \(bu 4
2107 The \f(CW\*(C`:crlf\*(C'\fR layer now works when unread data doesn\*(Aqt fit into its own
2108 buffer. [perl #112244].
2109 .IP \(bu 4
2110 \&\f(CWungetc()\fR now handles UTF\-8 encoded data. [perl #116322].
2111 .IP \(bu 4
2112 A bug in the core typemap caused any C types that map to the T_BOOL core
2113 typemap entry to not be set, updated, or modified when the T_BOOL variable was
2114 used in an OUTPUT: section with an exception for RETVAL. T_BOOL in an INPUT:
2115 section was not affected. Using a T_BOOL return type for an XSUB (RETVAL)
2116 was not affected. A side effect of fixing this bug is, if a T_BOOL is specified
2117 in the OUTPUT: section (which previous did nothing to the SV), and a read only
2118 SV (literal) is passed to the XSUB, croaks like "Modification of a read\-only
2119 value attempted" will happen. [perl #115796]
2120 .IP \(bu 4
2121 On many platforms, providing a directory name as the script name caused perl
2122 to do nothing and report success. It should now universally report an error
2123 and exit nonzero. [perl #61362]
2124 .IP \(bu 4
2125 \&\f(CW\*(C`sort {undef} ...\*(C'\fR under fatal warnings no longer crashes. It had
2126 begun crashing in Perl v5.16.
2127 .IP \(bu 4
2128 Stashes blessed into each other
2129 (\f(CW\*(C`bless \e%Foo::, \*(AqBar\*(Aq; bless \e%Bar::, \*(AqFoo\*(Aq\*(C'\fR) no longer result in double
2130 frees. This bug started happening in Perl v5.16.
2131 .IP \(bu 4
2132 Numerous memory leaks have been fixed, mostly involving fatal warnings and
2133 syntax errors.
2134 .IP \(bu 4
2135 Some failed regular expression matches such as \f(CW\*(C`\*(Aqf\*(Aq =~ /../g\*(C'\fR were not
2136 resetting \f(CW\*(C`pos\*(C'\fR. Also, "match\-once" patterns (\f(CW\*(C`m?...?g\*(C'\fR) failed to reset
2137 it, too, when invoked a second time [perl #23180].
2138 .IP \(bu 4
2139 Several bugs involving \f(CW\*(C`local *ISA\*(C'\fR and \f(CW\*(C`local *Foo::\*(C'\fR causing stale
2140 MRO caches have been fixed.
2141 .IP \(bu 4
2142 Defining a subroutine when its typeglob has been aliased no longer results
2143 in stale method caches. This bug was introduced in Perl v5.10.
2144 .IP \(bu 4
2145 Localising a typeglob containing a subroutine when the typeglob\*(Aqs package
2146 has been deleted from its parent stash no longer produces an error. This
2147 bug was introduced in Perl v5.14.
2148 .IP \(bu 4
2149 Under some circumstances, \f(CW\*(C`local *method=...\*(C'\fR would fail to reset method
2150 caches upon scope exit.
2151 .IP \(bu 4
2152 \&\f(CW\*(C`/[.foo.]/\*(C'\fR is no longer an error, but produces a warning (as before) and
2153 is treated as \f(CW\*(C`/[.fo]/\*(C'\fR [perl #115818].
2154 .IP \(bu 4
2155 \&\f(CW\*(C`goto $tied_var\*(C'\fR now calls FETCH before deciding what type of goto
2156 (subroutine or label) this is.
2157 .IP \(bu 4
2158 Renaming packages through glob assignment
2159 (\f(CW\*(C`*Foo:: = *Bar::; *Bar:: = *Baz::\*(C'\fR) in combination with \f(CW\*(C`m?...?\*(C'\fR and
2160 \&\f(CW\*(C`reset\*(C'\fR no longer makes threaded builds crash.
2161 .IP \(bu 4
2162 A number of bugs related to assigning a list to hash have been fixed. Many of
2163 these involve lists with repeated keys like \f(CW\*(C`(1, 1, 1, 1)\*(C'\fR.
2164 .RS 4
2165 .IP \(bu 4
2166 The expression \f(CW\*(C`scalar(%h = (1, 1, 1, 1))\*(C'\fR now returns \f(CW4\fR, not \f(CW2\fR.
2167 .IP \(bu 4
2168 The return value of \f(CW\*(C`%h = (1, 1, 1)\*(C'\fR in list context was wrong. Previously
2169 this would return \f(CW\*(C`(1, undef, 1)\*(C'\fR, now it returns \f(CW\*(C`(1, undef)\*(C'\fR.
2170 .IP \(bu 4
2171 Perl now issues the same warning on \f(CW\*(C`($s, %h) = (1, {})\*(C'\fR as it does for
2172 \&\f(CW\*(C`(%h) = ({})\*(C'\fR, "Reference found where even\-sized list expected".
2173 .IP \(bu 4
2174 A number of additional edge cases in list assignment to hashes were
2175 corrected. For more details see commit 23b7025ebc.
2176 .RE
2177 .RS 4
2178 .RE
2179 .IP \(bu 4
2180 Attributes applied to lexical variables no longer leak memory.
2181 [perl #114764]
2182 .IP \(bu 4
2183 \&\f(CW\*(C`dump\*(C'\fR, \f(CW\*(C`goto\*(C'\fR, \f(CW\*(C`last\*(C'\fR, \f(CW\*(C`next\*(C'\fR, \f(CW\*(C`redo\*(C'\fR or \f(CW\*(C`require\*(C'\fR followed by a
2184 bareword (or version) and then an infix operator is no longer a syntax
2185 error. It used to be for those infix operators (like \f(CW\*(C`+\*(C'\fR) that have a
2186 different meaning where a term is expected. [perl #105924]
2187 .IP \(bu 4
2188 \&\f(CW\*(C`require a::b . 1\*(C'\fR and \f(CW\*(C`require a::b + 1\*(C'\fR no longer produce erroneous
2189 ambiguity warnings. [perl #107002]
2190 .IP \(bu 4
2191 Class method calls are now allowed on any string, and not just strings
2192 beginning with an alphanumeric character. [perl #105922]
2193 .IP \(bu 4
2194 An empty pattern created with \f(CW\*(C`qr//\*(C'\fR used in \f(CW\*(C`m///\*(C'\fR no longer triggers
2195 the "empty pattern reuses last pattern" behaviour. [perl #96230]
2196 .IP \(bu 4
2197 Tying a hash during iteration no longer results in a memory leak.
2198 .IP \(bu 4
2199 Freeing a tied hash during iteration no longer results in a memory leak.
2200 .IP \(bu 4
2201 List assignment to a tied array or hash that dies on STORE no longer
2202 results in a memory leak.
2203 .IP \(bu 4
2204 If the hint hash (\f(CW\*(C`%^H\*(C'\fR) is tied, compile\-time scope entry (which copies
2205 the hint hash) no longer leaks memory if FETCH dies. [perl #107000]
2206 .IP \(bu 4
2207 Constant folding no longer inappropriately triggers the special
2208 \&\f(CW\*(C`split " "\*(C'\fR behaviour. [perl #94490]
2209 .IP \(bu 4
2210 \&\f(CW\*(C`defined scalar(@array)\*(C'\fR, \f(CW\*(C`defined do { &foo }\*(C'\fR, and similar constructs
2211 now treat the argument to \f(CW\*(C`defined\*(C'\fR as a simple scalar. [perl #97466]
2212 .IP \(bu 4
2213 Running a custom debugging that defines no \f(CW*DB::DB\fR glob or provides a
2214 subroutine stub for \f(CW&DB::DB\fR no longer results in a crash, but an error
2215 instead. [perl #114990]
2216 .IP \(bu 4
2217 \&\f(CW\*(C`reset ""\*(C'\fR now matches its documentation. \f(CW\*(C`reset\*(C'\fR only resets \f(CW\*(C`m?...?\*(C'\fR
2218 patterns when called with no argument. An empty string for an argument now
2219 does nothing. (It used to be treated as no argument.) [perl #97958]
2220 .IP \(bu 4
2221 \&\f(CW\*(C`printf\*(C'\fR with an argument returning an empty list no longer reads past the
2222 end of the stack, resulting in erratic behaviour. [perl #77094]
2223 .IP \(bu 4
2224 \&\f(CW\*(C`\-\-subname\*(C'\fR no longer produces erroneous ambiguity warnings.
2225 [perl #77240]
2226 .IP \(bu 4
2227 \&\f(CW\*(C`v10\*(C'\fR is now allowed as a label or package name. This was inadvertently
2228 broken when v\-strings were added in Perl v5.6. [perl #56880]
2229 .IP \(bu 4
2230 \&\f(CW\*(C`length\*(C'\fR, \f(CW\*(C`pos\*(C'\fR, \f(CW\*(C`substr\*(C'\fR and \f(CW\*(C`sprintf\*(C'\fR could be confused by ties,
2231 overloading, references and typeglobs if the stringification of such
2232 changed the internal representation to or from UTF\-8. [perl #114410]
2233 .IP \(bu 4
2234 utf8::encode now calls FETCH and STORE on tied variables. utf8::decode now
2235 calls STORE (it was already calling FETCH).
2236 .IP \(bu 4
2237 \&\f(CW\*(C`$tied =~ s/$non_utf8/$utf8/\*(C'\fR no longer loops infinitely if the tied
2238 variable returns a Latin\-1 string, shared hash key scalar, or reference or
2239 typeglob that stringifies as ASCII or Latin\-1. This was a regression from
2240 v5.12.
2241 .IP \(bu 4
2242 \&\f(CW\*(C`s///\*(C'\fR without /e is now better at detecting when it needs to forego
2243 certain optimisations, fixing some buggy cases:
2244 .RS 4
2245 .IP \(bu 4
2246 Match variables in certain constructs (\f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, \f(CW\*(C`..\*(C'\fR and others) in
2247 the replacement part; e.g., \f(CW\*(C`s/(.)/$l{$a||$1}/g\*(C'\fR. [perl #26986]
2248 .IP \(bu 4
2249 Aliases to match variables in the replacement.
2250 .IP \(bu 4
2251 \&\f(CW$REGERROR\fR or \f(CW$REGMARK\fR in the replacement. [perl #49190]
2252 .IP \(bu 4
2253 An empty pattern (\f(CW\*(C`s//$foo/\*(C'\fR) that causes the last\-successful pattern to
2254 be used, when that pattern contains code blocks that modify the variables
2255 in the replacement.
2256 .RE
2257 .RS 4
2258 .RE
2259 .IP \(bu 4
2260 The taintedness of the replacement string no longer affects the taintedness
2261 of the return value of \f(CW\*(C`s///e\*(C'\fR.
2262 .IP \(bu 4
2263 The \f(CW$|\fR autoflush variable is created on\-the\-fly when needed. If this
2264 happened (e.g., if it was mentioned in a module or eval) when the
2265 currently\-selected filehandle was a typeglob with an empty IO slot, it used
2266 to crash. [perl #115206]
2267 .IP \(bu 4
2268 Line numbers at the end of a string eval are no longer off by one.
2269 [perl #114658]
2270 .IP \(bu 4
2271 \&\f(CW@INC\fR filters (subroutines returned by subroutines in \f(CW@INC\fR) that set \f(CW$_\fR to a
2272 copy\-on\-write scalar no longer cause the parser to modify that string
2273 buffer in place.
2274 .IP \(bu 4
2275 \&\f(CWlength($object)\fR no longer returns the undefined value if the object has
2276 string overloading that returns undef. [perl #115260]
2277 .IP \(bu 4
2278 The use of \f(CW\*(C`PL_stashcache\*(C'\fR, the stash name lookup cache for method calls, has
2279 been restored,
2280 .Sp
2281 Commit da6b625f78f5f133 in August 2011 inadvertently broke the code that looks
2282 up values in \f(CW\*(C`PL_stashcache\*(C'\fR. As it\*(Aqs only a cache, quite correctly everything
2283 carried on working without it.
2284 .IP \(bu 4
2285 The error "Can\*(Aqt localize through a reference" had disappeared in v5.16.0
2286 when \f(CW\*(C`local %$ref\*(C'\fR appeared on the last line of an lvalue subroutine.
2287 This error disappeared for \f(CW\*(C`\elocal %$ref\*(C'\fR in perl v5.8.1. It has now
2288 been restored.
2289 .IP \(bu 4
2290 The parsing of here\-docs has been improved significantly, fixing several
2291 parsing bugs and crashes and one memory leak, and correcting wrong
2292 subsequent line numbers under certain conditions.
2293 .IP \(bu 4
2294 Inside an eval, the error message for an unterminated here\-doc no longer
2295 has a newline in the middle of it [perl #70836].
2296 .IP \(bu 4
2297 A substitution inside a substitution pattern (\f(CW\*(C`s/${s|||}//\*(C'\fR) no longer
2298 confuses the parser.
2299 .IP \(bu 4
2300 It may be an odd place to allow comments, but \f(CW\*(C`s//"" # hello/e\*(C'\fR has
2301 always worked, \fIunless\fR there happens to be a null character before the
2302 first #. Now it works even in the presence of nulls.
2303 .IP \(bu 4
2304 An invalid range in \f(CW\*(C`tr///\*(C'\fR or \f(CW\*(C`y///\*(C'\fR no longer results in a memory leak.
2305 .IP \(bu 4
2306 String eval no longer treats a semicolon\-delimited quote\-like operator at
2307 the very end (\f(CW\*(C`eval \*(Aqq;;\*(Aq\*(C'\fR) as a syntax error.
2308 .IP \(bu 4
2309 \&\f(CW\*(C`warn {$_ => 1} + 1\*(C'\fR is no longer a syntax error. The parser used to
2310 get confused with certain list operators followed by an anonymous hash and
2311 then an infix operator that shares its form with a unary operator.
2312 .IP \(bu 4
2313 \&\f(CW\*(C`(caller $n)[6]\*(C'\fR (which gives the text of the eval) used to return the
2314 actual parser buffer. Modifying it could result in crashes. Now it always
2315 returns a copy. The string returned no longer has "\en;" tacked on to the
2316 end. The returned text also includes here\-doc bodies, which used to be
2317 omitted.
2318 .IP \(bu 4
2319 The UTF\-8 position cache is now reset when accessing magical variables, to
2320 avoid the string buffer and the UTF\-8 position cache getting out of sync
2321 [perl #114410].
2322 .IP \(bu 4
2323 Various cases of get magic being called twice for magical UTF\-8
2324 strings have been fixed.
2325 .IP \(bu 4
2326 This code (when not in the presence of \f(CW$&\fR etc)
2327 .Sp
2328 .Vb 2
2329 \& $_ = \*(Aqx\*(Aq x 1_000_000;
2330 \& 1 while /(.)/;
2331 .Ve
2332 .Sp
2333 used to skip the buffer copy for performance reasons, but suffered from \f(CW$1\fR
2334 etc changing if the original string changed. That\*(Aqs now been fixed.
2335 .IP \(bu 4
2336 Perl doesn\*(Aqt use PerlIO anymore to report out of memory messages, as PerlIO
2337 might attempt to allocate more memory.
2338 .IP \(bu 4
2339 In a regular expression, if something is quantified with \f(CW\*(C`{n,m}\*(C'\fR where
2340 \&\f(CW\*(C`n\ >\ m\*(C'\fR, it can\*(Aqt possibly match. Previously this was a fatal
2341 error, but now is merely a warning (and that something won\*(Aqt match).
2342 [perl #82954].
2343 .IP \(bu 4
2344 It used to be possible for formats defined in subroutines that have
2345 subsequently been undefined and redefined to close over variables in the
2346 wrong pad (the newly\-defined enclosing sub), resulting in crashes or
2347 "Bizarre copy" errors.
2348 .IP \(bu 4
2349 Redefinition of XSUBs at run time could produce warnings with the wrong
2350 line number.
2351 .IP \(bu 4
2352 The \f(CW%vd\fR sprintf format does not support version objects for alpha versions.
2353 It used to output the format itself (%vd) when passed an alpha version, and
2354 also emit an "Invalid conversion in printf" warning. It no longer does,
2355 but produces the empty string in the output. It also no longer leaks
2356 memory in this case.
2357 .IP \(bu 4
2358 \&\f(CW\*(C`$obj\->SUPER::method\*(C'\fR calls in the main package could fail if the
2359 SUPER package had already been accessed by other means.
2360 .IP \(bu 4
2361 Stash aliasing (\f(CW\*(C`*foo:: = *bar::\*(C'\fR) no longer causes SUPER calls to ignore
2362 changes to methods or \f(CW@ISA\fR or use the wrong package.
2363 .IP \(bu 4
2364 Method calls on packages whose names end in ::SUPER are no longer treated
2365 as SUPER method calls, resulting in failure to find the method.
2366 Furthermore, defining subroutines in such packages no longer causes them to
2367 be found by SUPER method calls on the containing package [perl #114924].
2368 .IP \(bu 4
2369 \&\f(CW\*(C`\ew\*(C'\fR now matches the code points U+200C (ZERO WIDTH NON\-JOINER) and U+200D
2370 (ZERO WIDTH JOINER). \f(CW\*(C`\eW\*(C'\fR no longer matches these. This change is because
2371 Unicode corrected their definition of what \f(CW\*(C`\ew\*(C'\fR should match.
2372 .IP \(bu 4
2373 \&\f(CW\*(C`dump LABEL\*(C'\fR no longer leaks its label.
2374 .IP \(bu 4
2375 Constant folding no longer changes the behaviour of functions like \f(CWstat()\fR
2376 and \f(CWtruncate()\fR that can take either filenames or handles.
2377 \&\f(CW\*(C`stat 1 ? foo : bar\*(C'\fR nows treats its argument as a file name (since it is an
2378 arbitrary expression), rather than the handle "foo".
2379 .IP \(bu 4
2380 \&\f(CW\*(C`truncate FOO, $len\*(C'\fR no longer falls back to treating "FOO" as a file name if
2381 the filehandle has been deleted. This was broken in Perl v5.16.0.
2382 .IP \(bu 4
2383 Subroutine redefinitions after sub\-to\-glob and glob\-to\-glob assignments no
2384 longer cause double frees or panic messages.
2385 .IP \(bu 4
2386 \&\f(CW\*(C`s///\*(C'\fR now turns vstrings into plain strings when performing a substitution,
2387 even if the resulting string is the same (\f(CW\*(C`s/a/a/\*(C'\fR).
2388 .IP \(bu 4
2389 Prototype mismatch warnings no longer erroneously treat constant subs as having
2390 no prototype when they actually have "".
2391 .IP \(bu 4
2392 Constant subroutines and forward declarations no longer prevent prototype
2393 mismatch warnings from omitting the sub name.
2394 .IP \(bu 4
2395 \&\f(CW\*(C`undef\*(C'\fR on a subroutine now clears call checkers.
2396 .IP \(bu 4
2397 The \f(CW\*(C`ref\*(C'\fR operator started leaking memory on blessed objects in Perl v5.16.0.
2398 This has been fixed [perl #114340].
2399 .IP \(bu 4
2400 \&\f(CW\*(C`use\*(C'\fR no longer tries to parse its arguments as a statement, making
2401 \&\f(CW\*(C`use constant { () };\*(C'\fR a syntax error [perl #114222].
2402 .IP \(bu 4
2403 On debugging builds, "uninitialized" warnings inside formats no longer cause
2404 assertion failures.
2405 .IP \(bu 4
2406 On debugging builds, subroutines nested inside formats no longer cause
2407 assertion failures [perl #78550].
2408 .IP \(bu 4
2409 Formats and \f(CW\*(C`use\*(C'\fR statements are now permitted inside formats.
2410 .IP \(bu 4
2411 \&\f(CW\*(C`print $x\*(C'\fR and \f(CW\*(C`sub { print $x }\->()\*(C'\fR now always produce the same output.
2412 It was possible for the latter to refuse to close over \f(CW$x\fR if the variable was
2413 not active; e.g., if it was defined outside a currently\-running named
2414 subroutine.
2415 .IP \(bu 4
2416 Similarly, \f(CW\*(C`print $x\*(C'\fR and \f(CW\*(C`print eval \*(Aq$x\*(Aq\*(C'\fR now produce the same output.
2417 This also allows "my \f(CW$x\fR if 0" variables to be seen in the debugger [perl
2418 #114018].
2419 .IP \(bu 4
2420 Formats called recursively no longer stomp on their own lexical variables, but
2421 each recursive call has its own set of lexicals.
2422 .IP \(bu 4
2423 Attempting to free an active format or the handle associated with it no longer
2424 results in a crash.
2425 .IP \(bu 4
2426 Format parsing no longer gets confused by braces, semicolons and low\-precedence
2427 operators. It used to be possible to use braces as format delimiters (instead
2428 of \f(CW\*(C`=\*(C'\fR and \f(CW\*(C`.\*(C'\fR), but only sometimes. Semicolons and low\-precedence operators
2429 in format argument lines no longer confuse the parser into ignoring the line\*(Aqs
2430 return value. In format argument lines, braces can now be used for anonymous
2431 hashes, instead of being treated always as \f(CW\*(C`do\*(C'\fR blocks.
2432 .IP \(bu 4
2433 Formats can now be nested inside code blocks in regular expressions and other
2434 quoted constructs (\f(CW\*(C`/(?{...})/\*(C'\fR and \f(CW\*(C`qq/${...}/\*(C'\fR) [perl #114040].
2435 .IP \(bu 4
2436 Formats are no longer created after compilation errors.
2437 .IP \(bu 4
2438 Under debugging builds, the \fB\-DA\fR command line option started crashing in Perl
2439 v5.16.0. It has been fixed [perl #114368].
2440 .IP \(bu 4
2441 A potential deadlock scenario involving the premature termination of a pseudo\-
2442 forked child in a Windows build with ithreads enabled has been fixed. This
2443 resolves the common problem of the \fIt/op/fork.t\fR test hanging on Windows [perl
2444 #88840].
2445 .IP \(bu 4
2446 The code which generates errors from \f(CWrequire()\fR could potentially read one or
2447 two bytes before the start of the filename for filenames less than three bytes
2448 long and ending \f(CW\*(C`/\e.p?\ez/\*(C'\fR. This has now been fixed. Note that it could
2449 never have happened with module names given to \f(CWuse()\fR or \f(CWrequire()\fR anyway.
2450 .IP \(bu 4
2451 The handling of pathnames of modules given to \f(CWrequire()\fR has been made
2452 thread\-safe on VMS.
2453 .IP \(bu 4
2454 Non\-blocking sockets have been fixed on VMS.
2455 .IP \(bu 4
2456 Pod can now be nested in code inside a quoted construct outside of a string
2457 eval. This used to work only within string evals [perl #114040].
2458 .IP \(bu 4
2459 \&\f(CW\*(C`goto \*(Aq\*(Aq\*(C'\fR now looks for an empty label, producing the "goto must have
2460 label" error message, instead of exiting the program [perl #111794].
2461 .IP \(bu 4
2462 \&\f(CW\*(C`goto "\e0"\*(C'\fR now dies with "Can\*(Aqt find label" instead of "goto must have
2463 label".
2464 .IP \(bu 4
2465 The C function \f(CW\*(C`hv_store\*(C'\fR used to result in crashes when used on \f(CW\*(C`%^H\*(C'\fR
2466 [perl #111000].
2467 .IP \(bu 4
2468 A call checker attached to a closure prototype via \f(CW\*(C`cv_set_call_checker\*(C'\fR
2469 is now copied to closures cloned from it. So \f(CW\*(C`cv_set_call_checker\*(C'\fR now
2470 works inside an attribute handler for a closure.
2471 .IP \(bu 4
2472 Writing to \f(CW$^N\fR used to have no effect. Now it croaks with "Modification
2473 of a read\-only value" by default, but that can be overridden by a custom
2474 regular expression engine, as with \f(CW$1\fR [perl #112184].
2475 .IP \(bu 4
2476 \&\f(CW\*(C`undef\*(C'\fR on a control character glob (\f(CW\*(C`undef *^H\*(C'\fR) no longer emits an
2477 erroneous warning about ambiguity [perl #112456].
2478 .IP \(bu 4
2479 For efficiency\*(Aqs sake, many operators and built\-in functions return the
2480 same scalar each time. Lvalue subroutines and subroutines in the CORE::
2481 namespace were allowing this implementation detail to leak through.
2482 \&\f(CW\*(C`print &CORE::uc("a"), &CORE::uc("b")\*(C'\fR used to print "BB". The same thing
2483 would happen with an lvalue subroutine returning the return value of \f(CW\*(C`uc\*(C'\fR.
2484 Now the value is copied in such cases.
2485 .IP \(bu 4
2486 \&\f(CW\*(C`method {}\*(C'\fR syntax with an empty block or a block returning an empty list
2487 used to crash or use some random value left on the stack as its invocant.
2488 Now it produces an error.
2489 .IP \(bu 4
2490 \&\f(CW\*(C`vec\*(C'\fR now works with extremely large offsets (>2 GB) [perl #111730].
2491 .IP \(bu 4
2492 Changes to overload settings now take effect immediately, as do changes to
2493 inheritance that affect overloading. They used to take effect only after
2494 \&\f(CW\*(C`bless\*(C'\fR.
2495 .Sp
2496 Objects that were created before a class had any overloading used to remain
2497 non\-overloaded even if the class gained overloading through \f(CW\*(C`use overload\*(C'\fR
2498 or \f(CW@ISA\fR changes, and even after \f(CW\*(C`bless\*(C'\fR. This has been fixed
2499 [perl #112708].
2500 .IP \(bu 4
2501 Classes with overloading can now inherit fallback values.
2502 .IP \(bu 4
2503 Overloading was not respecting a fallback value of 0 if there were
2504 overloaded objects on both sides of an assignment operator like \f(CW\*(C`+=\*(C'\fR
2505 [perl #111856].
2506 .IP \(bu 4
2507 \&\f(CW\*(C`pos\*(C'\fR now croaks with hash and array arguments, instead of producing
2508 erroneous warnings.
2509 .IP \(bu 4
2510 \&\f(CW\*(C`while(each %h)\*(C'\fR now implies \f(CW\*(C`while(defined($_ = each %h))\*(C'\fR, like
2511 \&\f(CW\*(C`readline\*(C'\fR and \f(CW\*(C`readdir\*(C'\fR.
2512 .IP \(bu 4
2513 Subs in the CORE:: namespace no longer crash after \f(CW\*(C`undef *_\*(C'\fR when called
2514 with no argument list (\f(CW&CORE::time\fR with no parentheses).
2515 .IP \(bu 4
2516 \&\f(CW\*(C`unpack\*(C'\fR no longer produces the "\*(Aq/\*(Aq must follow a numeric type in unpack"
2517 error when it is the data that are at fault [perl #60204].
2518 .IP \(bu 4
2519 \&\f(CW\*(C`join\*(C'\fR and \f(CW"@array"\fR now call FETCH only once on a tied \f(CW$"\fR
2520 [perl #8931].
2521 .IP \(bu 4
2522 Some subroutine calls generated by compiling core ops affected by a
2523 \&\f(CW\*(C`CORE::GLOBAL\*(C'\fR override had op checking performed twice. The checking
2524 is always idempotent for pure Perl code, but the double checking can
2525 matter when custom call checkers are involved.
2526 .IP \(bu 4
2527 A race condition used to exist around fork that could cause a signal sent to
2528 the parent to be handled by both parent and child. Signals are now blocked
2529 briefly around fork to prevent this from happening [perl #82580].
2530 .IP \(bu 4
2531 The implementation of code blocks in regular expressions, such as \f(CW\*(C`(?{})\*(C'\fR
2532 and \f(CW\*(C`(??{})\*(C'\fR, has been heavily reworked to eliminate a whole slew of bugs.
2533 The main user\-visible changes are:
2534 .RS 4
2535 .IP \(bu 4
2536 Code blocks within patterns are now parsed in the same pass as the
2537 surrounding code; in particular it is no longer necessary to have balanced
2538 braces: this now works:
2539 .Sp
2540 .Vb 1
2541 \& /(?{ $x=\*(Aq{\*(Aq })/
2542 .Ve
2543 .Sp
2544 This means that this error message is no longer generated:
2545 .Sp
2546 .Vb 1
2547 \& Sequence (?{...}) not terminated or not {}\-balanced in regex
2548 .Ve
2549 .Sp
2550 but a new error may be seen:
2551 .Sp
2552 .Vb 1
2553 \& Sequence (?{...}) not terminated with \*(Aq)\*(Aq
2554 .Ve
2555 .Sp
2556 In addition, literal code blocks within run\-time patterns are only
2557 compiled once, at perl compile\-time:
2558 .Sp
2559 .Vb 5
2560 \& for my $p (...) {
2561 \& # this \*(AqFOO\*(Aq block of code is compiled once,
2562 \& # at the same time as the surrounding \*(Aqfor\*(Aq loop
2563 \& /$p{(?{FOO;})/;
2564 \& }
2565 .Ve
2566 .IP \(bu 4
2567 Lexical variables are now sane as regards scope, recursion and closure
2568 behavior. In particular, \f(CW\*(C`/A(?{B})C/\*(C'\fR behaves (from a closure viewpoint)
2569 exactly like \f(CW\*(C`/A/ && do { B } && /C/\*(C'\fR, while \f(CW\*(C`qr/A(?{B})C/\*(C'\fR is like
2570 \&\f(CW\*(C`sub {/A/ && do { B } && /C/}\*(C'\fR. So this code now works how you might
2571 expect, creating three regexes that match 0, 1, and 2:
2572 .Sp
2573 .Vb 4
2574 \& for my $i (0..2) {
2575 \& push @r, qr/^(??{$i})$/;
2576 \& }
2577 \& "1" =~ $r[1]; # matches
2578 .Ve
2579 .IP \(bu 4
2580 The \f(CW\*(C`use re \*(Aqeval\*(Aq\*(C'\fR pragma is now only required for code blocks defined
2581 at runtime; in particular in the following, the text of the \f(CW$r\fR pattern is
2582 still interpolated into the new pattern and recompiled, but the individual
2583 compiled code\-blocks within \f(CW$r\fR are reused rather than being recompiled,
2584 and \f(CW\*(C`use re \*(Aqeval\*(Aq\*(C'\fR isn\*(Aqt needed any more:
2585 .Sp
2586 .Vb 2
2587 \& my $r = qr/abc(?{....})def/;
2588 \& /xyz$r/;
2589 .Ve
2590 .IP \(bu 4
2591 Flow control operators no longer crash. Each code block runs in a new
2592 dynamic scope, so \f(CW\*(C`next\*(C'\fR etc. will not see
2593 any enclosing loops. \f(CW\*(C`return\*(C'\fR returns a value
2594 from the code block, not from any enclosing subroutine.
2595 .IP \(bu 4
2596 Perl normally caches the compilation of run\-time patterns, and doesn\*(Aqt
2597 recompile if the pattern hasn\*(Aqt changed, but this is now disabled if
2598 required for the correct behavior of closures. For example:
2599 .Sp
2600 .Vb 5
2601 \& my $code = \*(Aq(??{$x})\*(Aq;
2602 \& for my $x (1..3) {
2603 \& # recompile to see fresh value of $x each time
2604 \& $x =~ /$code/;
2605 \& }
2606 .Ve
2607 .IP \(bu 4
2608 The \f(CW\*(C`/msix\*(C'\fR and \f(CW\*(C`(?msix)\*(C'\fR etc. flags are now propagated into the return
2609 value from \f(CW\*(C`(??{})\*(C'\fR; this now works:
2610 .Sp
2611 .Vb 1
2612 \& "AB" =~ /a(??{\*(Aqb\*(Aq})/i;
2613 .Ve
2614 .IP \(bu 4
2615 Warnings and errors will appear to come from the surrounding code (or for
2616 run\-time code blocks, from an eval) rather than from an \f(CW\*(C`re_eval\*(C'\fR:
2617 .Sp
2618 .Vb 2
2619 \& use re \*(Aqeval\*(Aq; $c = \*(Aq(?{ warn "foo" })\*(Aq; /$c/;
2620 \& /(?{ warn "foo" })/;
2621 .Ve
2622 .Sp
2623 formerly gave:
2624 .Sp
2625 .Vb 2
2626 \& foo at (re_eval 1) line 1.
2627 \& foo at (re_eval 2) line 1.
2628 .Ve
2629 .Sp
2630 and now gives:
2631 .Sp
2632 .Vb 2
2633 \& foo at (eval 1) line 1.
2634 \& foo at /some/prog line 2.
2635 .Ve
2636 .RE
2637 .RS 4
2638 .RE
2639 .IP \(bu 4
2640 Perl now can be recompiled to use any Unicode version. In v5.16, it
2641 worked on Unicodes 6.0 and 6.1, but there were various bugs if earlier
2642 releases were used; the older the release the more problems.
2643 .IP \(bu 4
2644 \&\f(CW\*(C`vec\*(C'\fR no longer produces "uninitialized" warnings in lvalue context
2645 [perl #9423].
2646 .IP \(bu 4
2647 An optimization involving fixed strings in regular expressions could cause
2648 a severe performance penalty in edge cases. This has been fixed
2649 [perl #76546].
2650 .IP \(bu 4
2651 In certain cases, including empty subpatterns within a regular expression (such
2652 as \f(CW\*(C`(?:)\*(C'\fR or \f(CW\*(C`(?:|)\*(C'\fR) could disable some optimizations. This has been fixed.
2653 .IP \(bu 4
2654 The "Can\*(Aqt find an opnumber" message that \f(CW\*(C`prototype\*(C'\fR produces when passed
2655 a string like "CORE::nonexistent_keyword" now passes UTF\-8 and embedded
2656 NULs through unchanged [perl #97478].
2657 .IP \(bu 4
2658 \&\f(CW\*(C`prototype\*(C'\fR now treats magical variables like \f(CW$1\fR the same way as
2659 non\-magical variables when checking for the CORE:: prefix, instead of
2660 treating them as subroutine names.
2661 .IP \(bu 4
2662 Under threaded perls, a runtime code block in a regular expression could
2663 corrupt the package name stored in the op tree, resulting in bad reads
2664 in \f(CW\*(C`caller\*(C'\fR, and possibly crashes [perl #113060].
2665 .IP \(bu 4
2666 Referencing a closure prototype (\f(CW\*(C`\e&{$_[1]}\*(C'\fR in an attribute handler for a
2667 closure) no longer results in a copy of the subroutine (or assertion
2668 failures on debugging builds).
2669 .IP \(bu 4
2670 \&\f(CW\*(C`eval \*(Aq_\|_PACKAGE_\|_\*(Aq\*(C'\fR now returns the right answer on threaded builds if
2671 the current package has been assigned over (as in
2672 \&\f(CW\*(C`*ThisPackage:: = *ThatPackage::\*(C'\fR) [perl #78742].
2673 .IP \(bu 4
2674 If a package is deleted by code that it calls, it is possible for \f(CW\*(C`caller\*(C'\fR
2675 to see a stack frame belonging to that deleted package. \f(CW\*(C`caller\*(C'\fR could
2676 crash if the stash\*(Aqs memory address was reused for a scalar and a
2677 substitution was performed on the same scalar [perl #113486].
2678 .IP \(bu 4
2679 \&\f(CW\*(C`UNIVERSAL::can\*(C'\fR no longer treats its first argument differently
2680 depending on whether it is a string or number internally.
2681 .IP \(bu 4
2682 \&\f(CW\*(C`open\*(C'\fR with \f(CW\*(C`<&\*(C'\fR for the mode checks to see whether the third argument is
2683 a number, in determining whether to treat it as a file descriptor or a handle
2684 name. Magical variables like \f(CW$1\fR were always failing the numeric check and
2685 being treated as handle names.
2686 .IP \(bu 4
2687 \&\f(CW\*(C`warn\*(C'\fR\*(Aqs handling of magical variables (\f(CW$1\fR, ties) has undergone several
2688 fixes. \f(CW\*(C`FETCH\*(C'\fR is only called once now on a tied argument or a tied \f(CW$@\fR
2689 [perl #97480]. Tied variables returning objects that stringify as "" are
2690 no longer ignored. A tied \f(CW$@\fR that happened to return a reference the
2691 \&\fIprevious\fR time it was used is no longer ignored.
2692 .IP \(bu 4
2693 \&\f(CW\*(C`warn ""\*(C'\fR now treats \f(CW$@\fR with a number in it the same way, regardless of
2694 whether it happened via \f(CW\*(C`$@=3\*(C'\fR or \f(CW\*(C`$@="3"\*(C'\fR. It used to ignore the
2695 former. Now it appends "\et...caught", as it has always done with
2696 \&\f(CW\*(C`$@="3"\*(C'\fR.
2697 .IP \(bu 4
2698 Numeric operators on magical variables (e.g., \f(CW\*(C`$1\ +\ 1\*(C'\fR) used to use
2699 floating point operations even where integer operations were more appropriate,
2700 resulting in loss of accuracy on 64\-bit platforms [perl #109542].
2701 .IP \(bu 4
2702 Unary negation no longer treats a string as a number if the string happened
2703 to be used as a number at some point. So, if \f(CW$x\fR contains the string "dogs",
2704 \&\f(CW\*(C`\-$x\*(C'\fR returns "\-dogs" even if \f(CW\*(C`$y=0+$x\*(C'\fR has happened at some point.
2705 .IP \(bu 4
2706 In Perl v5.14, \f(CW\*(C`\-\*(Aq\-10\*(Aq\*(C'\fR was fixed to return "10", not "+10". But magical
2707 variables (\f(CW$1\fR, ties) were not fixed till now [perl #57706].
2708 .IP \(bu 4
2709 Unary negation now treats strings consistently, regardless of the internal
2710 \&\f(CW\*(C`UTF8\*(C'\fR flag.
2711 .IP \(bu 4
2712 A regression introduced in Perl v5.16.0 involving
2713 \&\f(CW\*(C`tr/\fR\f(CISEARCHLIST\fR\f(CW/\fR\f(CIREPLACEMENTLIST\fR\f(CW/\*(C'\fR has been fixed. Only the first
2714 instance is supposed to be meaningful if a character appears more than
2715 once in \f(CW\*(C`\fR\f(CISEARCHLIST\fR\f(CW\*(C'\fR. Under some circumstances, the final instance
2716 was overriding all earlier ones. [perl #113584]
2717 .IP \(bu 4
2718 Regular expressions like \f(CW\*(C`qr/\e87/\*(C'\fR previously silently inserted a NUL
2719 character, thus matching as if it had been written \f(CW\*(C`qr/\e00087/\*(C'\fR. Now it
2720 matches as if it had been written as \f(CW\*(C`qr/87/\*(C'\fR, with a message that the
2721 sequence \f(CW"\e8"\fR is unrecognized.
2722 .IP \(bu 4
2723 \&\f(CW\*(C`_\|_SUB_\|_\*(C'\fR now works in special blocks (\f(CW\*(C`BEGIN\*(C'\fR, \f(CW\*(C`END\*(C'\fR, etc.).
2724 .IP \(bu 4
2725 Thread creation on Windows could theoretically result in a crash if done
2726 inside a \f(CW\*(C`BEGIN\*(C'\fR block. It still does not work properly, but it no longer
2727 crashes [perl #111610].
2728 .IP \(bu 4
2729 \&\f(CW\*(C`\e&{\*(Aq\*(Aq}\*(C'\fR (with the empty string) now autovivifies a stub like any other
2730 sub name, and no longer produces the "Unable to create sub" error
2731 [perl #94476].
2732 .IP \(bu 4
2733 A regression introduced in v5.14.0 has been fixed, in which some calls
2734 to the \f(CW\*(C`re\*(C'\fR module would clobber \f(CW$_\fR [perl #113750].
2735 .IP \(bu 4
2736 \&\f(CW\*(C`do FILE\*(C'\fR now always either sets or clears \f(CW$@\fR, even when the file can\*(Aqt be
2737 read. This ensures that testing \f(CW$@\fR first (as recommended by the
2738 documentation) always returns the correct result.
2739 .IP \(bu 4
2740 The array iterator used for the \f(CW\*(C`each @array\*(C'\fR construct is now correctly
2741 reset when \f(CW@array\fR is cleared [perl #75596]. This happens, for example, when
2742 the array is globally assigned to, as in \f(CW\*(C`@array = (...)\*(C'\fR, but not when its
2743 \&\fBvalues\fR are assigned to. In terms of the XS API, it means that \f(CWav_clear()\fR
2744 will now reset the iterator.
2745 .Sp
2746 This mirrors the behaviour of the hash iterator when the hash is cleared.
2747 .IP \(bu 4
2748 \&\f(CW\*(C`$class\->can\*(C'\fR, \f(CW\*(C`$class\->isa\*(C'\fR, and \f(CW\*(C`$class\->DOES\*(C'\fR now return
2749 correct results, regardless of whether that package referred to by \f(CW$class\fR
2750 exists [perl #47113].
2751 .IP \(bu 4
2752 Arriving signals no longer clear \f(CW$@\fR [perl #45173].
2753 .IP \(bu 4
2754 Allow \f(CW\*(C`my ()\*(C'\fR declarations with an empty variable list [perl #113554].
2755 .IP \(bu 4
2756 During parsing, subs declared after errors no longer leave stubs
2757 [perl #113712].
2758 .IP \(bu 4
2759 Closures containing no string evals no longer hang on to their containing
2760 subroutines, allowing variables closed over by outer subroutines to be
2761 freed when the outer sub is freed, even if the inner sub still exists
2762 [perl #89544].
2763 .IP \(bu 4
2764 Duplication of in\-memory filehandles by opening with a "<&=" or ">&=" mode
2765 stopped working properly in v5.16.0. It was causing the new handle to
2766 reference a different scalar variable. This has been fixed [perl #113764].
2767 .IP \(bu 4
2768 \&\f(CW\*(C`qr//\*(C'\fR expressions no longer crash with custom regular expression engines
2769 that do not set \f(CW\*(C`offs\*(C'\fR at regular expression compilation time
2770 [perl #112962].
2771 .IP \(bu 4
2772 \&\f(CW\*(C`delete local\*(C'\fR no longer crashes with certain magical arrays and hashes
2773 [perl #112966].
2774 .IP \(bu 4
2775 \&\f(CW\*(C`local\*(C'\fR on elements of certain magical arrays and hashes used not to
2776 arrange to have the element deleted on scope exit, even if the element did
2777 not exist before \f(CW\*(C`local\*(C'\fR.
2778 .IP \(bu 4
2779 \&\f(CWscalar(write)\fR no longer returns multiple items [perl #73690].
2780 .IP \(bu 4
2781 String to floating point conversions no longer misparse certain strings under
2782 \&\f(CW\*(C`use locale\*(C'\fR [perl #109318].
2783 .IP \(bu 4
2784 \&\f(CW@INC\fR filters that die no longer leak memory [perl #92252].
2785 .IP \(bu 4
2786 The implementations of overloaded operations are now called in the correct
2787 context. This allows, among other things, being able to properly override
2788 \&\f(CW\*(C`<>\*(C'\fR [perl #47119].
2789 .IP \(bu 4
2790 Specifying only the \f(CW\*(C`fallback\*(C'\fR key when calling \f(CW\*(C`use overload\*(C'\fR now behaves
2791 properly [perl #113010].
2792 .IP \(bu 4
2793 \&\f(CW\*(C`sub foo { my $a = 0; while ($a) { ... } }\*(C'\fR and
2794 \&\f(CW\*(C`sub foo { while (0) { ... } }\*(C'\fR now return the same thing [perl #73618].
2795 .IP \(bu 4
2796 String negation now behaves the same under \f(CW\*(C`use integer;\*(C'\fR as it does
2797 without [perl #113012].
2798 .IP \(bu 4
2799 \&\f(CW\*(C`chr\*(C'\fR now returns the Unicode replacement character (U+FFFD) for \-1,
2800 regardless of the internal representation. \-1 used to wrap if the argument
2801 was tied or a string internally.
2802 .IP \(bu 4
2803 Using a \f(CW\*(C`format\*(C'\fR after its enclosing sub was freed could crash as of
2804 perl v5.12.0, if the format referenced lexical variables from the outer sub.
2805 .IP \(bu 4
2806 Using a \f(CW\*(C`format\*(C'\fR after its enclosing sub was undefined could crash as of
2807 perl v5.10.0, if the format referenced lexical variables from the outer sub.
2808 .IP \(bu 4
2809 Using a \f(CW\*(C`format\*(C'\fR defined inside a closure, which format references
2810 lexical variables from outside, never really worked unless the \f(CW\*(C`write\*(C'\fR
2811 call was directly inside the closure. In v5.10.0 it even started crashing.
2812 Now the copy of that closure nearest the top of the call stack is used to
2813 find those variables.
2814 .IP \(bu 4
2815 Formats that close over variables in special blocks no longer crash if a
2816 stub exists with the same name as the special block before the special
2817 block is compiled.
2818 .IP \(bu 4
2819 The parser no longer gets confused, treating \f(CW\*(C`eval foo ()\*(C'\fR as a syntax
2820 error if preceded by \f(CW\*(C`print;\*(C'\fR [perl #16249].
2821 .IP \(bu 4
2822 The return value of \f(CW\*(C`syscall\*(C'\fR is no longer truncated on 64\-bit platforms
2823 [perl #113980].
2824 .IP \(bu 4
2825 Constant folding no longer causes \f(CW\*(C`print 1 ? FOO : BAR\*(C'\fR to print to the
2826 FOO handle [perl #78064].
2827 .IP \(bu 4
2828 \&\f(CW\*(C`do subname\*(C'\fR now calls the named subroutine and uses the file name it
2829 returns, instead of opening a file named "subname".
2830 .IP \(bu 4
2831 Subroutines looked up by rv2cv check hooks (registered by XS modules) are
2832 now taken into consideration when determining whether \f(CW\*(C`foo bar\*(C'\fR should be
2833 the sub call \f(CWfoo(bar)\fR or the method call \f(CW\*(C`"bar"\->foo\*(C'\fR.
2834 .IP \(bu 4
2835 \&\f(CW\*(C`CORE::foo::bar\*(C'\fR is no longer treated specially, allowing global overrides
2836 to be called directly via \f(CWCORE::GLOBAL::uc(...)\fR [perl #113016].
2837 .IP \(bu 4
2838 Calling an undefined sub whose typeglob has been undefined now produces the
2839 customary "Undefined subroutine called" error, instead of "Not a CODE
2840 reference".
2841 .IP \(bu 4
2842 Two bugs involving \f(CW@ISA\fR have been fixed. \f(CW\*(C`*ISA = *glob_without_array\*(C'\fR and
2843 \&\f(CW\*(C`undef *ISA; @{*ISA}\*(C'\fR would prevent future modifications to \f(CW@ISA\fR from
2844 updating the internal caches used to look up methods. The
2845 *glob_without_array case was a regression from Perl v5.12.
2846 .IP \(bu 4
2847 Regular expression optimisations sometimes caused \f(CW\*(C`$\*(C'\fR with \f(CW\*(C`/m\*(C'\fR to
2848 produce failed or incorrect matches [perl #114068].
2849 .IP \(bu 4
2850 \&\f(CW\*(C`_\|_SUB_\|_\*(C'\fR now works in a \f(CW\*(C`sort\*(C'\fR block when the enclosing subroutine is
2851 predeclared with \f(CW\*(C`sub foo;\*(C'\fR syntax [perl #113710].
2852 .IP \(bu 4
2853 Unicode properties only apply to Unicode code points, which leads to
2854 some subtleties when regular expressions are matched against
2855 above\-Unicode code points. There is a warning generated to draw your
2856 attention to this. However, this warning was being generated
2857 inappropriately in some cases, such as when a program was being parsed.
2858 Non\-Unicode matches such as \f(CW\*(C`\ew\*(C'\fR and \f(CW\*(C`[:word:]\*(C'\fR should not generate the
2859 warning, as their definitions don\*(Aqt limit them to apply to only Unicode
2860 code points. Now the message is only generated when matching against
2861 \&\f(CW\*(C`\ep{}\*(C'\fR and \f(CW\*(C`\eP{}\*(C'\fR. There remains a bug, [perl #114148], for the very
2862 few properties in Unicode that match just a single code point. The
2863 warning is not generated if they are matched against an above\-Unicode
2864 code point.
2865 .IP \(bu 4
2866 Uninitialized warnings mentioning hash elements would only mention the
2867 element name if it was not in the first bucket of the hash, due to an
2868 off\-by\-one error.
2869 .IP \(bu 4
2870 A regular expression optimizer bug could cause multiline "^" to behave
2871 incorrectly in the presence of line breaks, such that
2872 \&\f(CW\*(C`"/\en\en" =~ m#\eA(?:^/$)#im\*(C'\fR would not match [perl #115242].
2873 .IP \(bu 4
2874 Failed \f(CW\*(C`fork\*(C'\fR in list context no longer corrupts the stack.
2875 \&\f(CW\*(C`@a = (1, 2, fork, 3)\*(C'\fR used to gobble up the 2 and assign \f(CW\*(C`(1, undef, 3)\*(C'\fR
2876 if the \f(CW\*(C`fork\*(C'\fR call failed.
2877 .IP \(bu 4
2878 Numerous memory leaks have been fixed, mostly involving tied variables that
2879 die, regular expression character classes and code blocks, and syntax
2880 errors.
2881 .IP \(bu 4
2882 Assigning a regular expression (\f(CW\*(C`${qr//}\*(C'\fR) to a variable that happens to
2883 hold a floating point number no longer causes assertion failures on
2884 debugging builds.
2885 .IP \(bu 4
2886 Assigning a regular expression to a scalar containing a number no longer
2887 causes subsequent numification to produce random numbers.
2888 .IP \(bu 4
2889 Assigning a regular expression to a magic variable no longer wipes away the
2890 magic. This was a regression from v5.10.
2891 .IP \(bu 4
2892 Assigning a regular expression to a blessed scalar no longer results in
2893 crashes. This was also a regression from v5.10.
2894 .IP \(bu 4
2895 Regular expression can now be assigned to tied hash and array elements with
2896 flattening into strings.
2897 .IP \(bu 4
2898 Numifying a regular expression no longer results in an uninitialized
2899 warning.
2900 .IP \(bu 4
2901 Negative array indices no longer cause EXISTS methods of tied variables to
2902 be ignored. This was a regression from v5.12.
2903 .IP \(bu 4
2904 Negative array indices no longer result in crashes on arrays tied to
2905 non\-objects.
2906 .IP \(bu 4
2907 \&\f(CW\*(C`$byte_overload .= $utf8\*(C'\fR no longer results in doubly\-encoded UTF\-8 if the
2908 left\-hand scalar happened to have produced a UTF\-8 string the last time
2909 overloading was invoked.
2910 .IP \(bu 4
2911 \&\f(CW\*(C`goto &sub\*(C'\fR now uses the current value of \f(CW@_\fR, instead of using the array
2912 the subroutine was originally called with. This means
2913 \&\f(CW\*(C`local @_ = (...); goto &sub\*(C'\fR now works [perl #43077].
2914 .IP \(bu 4
2915 If a debugger is invoked recursively, it no longer stomps on its own
2916 lexical variables. Formerly under recursion all calls would share the same
2917 set of lexical variables [perl #115742].
2918 .IP \(bu 4
2919 \&\f(CW*_{ARRAY}\fR returned from a subroutine no longer spontaneously
2920 becomes empty.
2921 .IP \(bu 4
2922 When using \f(CW\*(C`say\*(C'\fR to print to a tied filehandle, the value of \f(CW\*(C`$\e\*(C'\fR is
2923 correctly localized, even if it was previously undef. [perl #119927]
2924 .SH "Known Problems"
2925 .IX Header "Known Problems"
2926 .IP \(bu 4
2927 UTF8\-flagged strings in \f(CW%ENV\fR on HP\-UX 11.00 are buggy
2928 .Sp
2929 The interaction of UTF8\-flagged strings and \f(CW%ENV\fR on HP\-UX 11.00 is
2930 currently dodgy in some not\-yet\-fully\-diagnosed way. Expect test
2931 failures in \fIt/op/magic.t\fR, followed by unknown behavior when storing
2932 wide characters in the environment.
2933 .SH Obituary
2934 .IX Header "Obituary"
2935 Hojung Yoon (AMORETTE), 24, of Seoul, South Korea, went to his long rest
2936 on May 8, 2013 with llama figurine and autographed TIMTOADY card. He
2937 was a brilliant young Perl 5 & 6 hacker and a devoted member of
2938 Seoul.pm. He programmed Perl, talked Perl, ate Perl, and loved Perl. We
2939 believe that he is still programming in Perl with his broken IBM laptop
2940 somewhere. He will be missed.
2941 .SH Acknowledgements
2942 .IX Header "Acknowledgements"
2943 Perl v5.18.0 represents approximately 12 months of development since
2944 Perl v5.16.0 and contains approximately 400,000 lines of changes across
2945 2,100 files from 113 authors.
2946 .PP
2947 Perl continues to flourish into its third decade thanks to a vibrant
2948 community of users and developers. The following people are known to
2949 have contributed the improvements that became Perl v5.18.0:
2950 .PP
2951 Aaron Crane, Aaron Trevena, Abhijit Menon\-Sen, Adrian M. Enache, Alan
2952 Haggai Alavi, Alexandr Ciornii, Andrew Tam, Andy Dougherty, Anton Nikishaev,
2953 Aristotle Pagaltzis, Augustina Blair, Bob Ernst, Brad Gilbert, Breno G. de
2954 Oliveira, Brian Carlson, Brian Fraser, Charlie Gonzalez, Chip Salzenberg, Chris
2955 \&\*(AqBinGOs\*(Aq Williams, Christian Hansen, Colin Kuskie, Craig A. Berry, Dagfinn
2956 Ilmari Mannsåker, Daniel Dragan, Daniel Perrett, Darin McBride, Dave Rolsky,
2957 David Golden, David Leadbeater, David Mitchell, David Nicol, Dominic
2958 Hargreaves, E. Choroba, Eric Brine, Evan Miller, Father Chrysostomos, Florian
2959 Ragwitz, François Perrad, George Greer, Goro Fuji, H.Merijn Brand, Herbert
2960 Breunung, Hugo van der Sanden, Igor Zaytsev, James E Keenan, Jan Dubois,
2961 Jasmine Ahuja, Jerry D. Hedden, Jess Robinson, Jesse Luehrs, Joaquin Ferrero,
2962 Joel Berger, John Goodyear, John Peacock, Karen Etheridge, Karl Williamson,
2963 Karthik Rajagopalan, Kent Fredric, Leon Timmermans, Lucas Holt, Lukas Mai,
2964 Marcus Holland\-Moritz, Markus Jansen, Martin Hasch, Matthew Horsfall, Max
2965 Maischein, Michael G Schwern, Michael Schroeder, Moritz Lenz, Nicholas Clark,
2966 Niko Tyni, Oleg Nesterov, Patrik Hägglund, Paul Green, Paul Johnson, Paul
2967 Marquess, Peter Martini, Rafael Garcia\-Suarez, Reini Urban, Renee Baecker,
2968 Rhesa Rozendaal, Ricardo Signes, Robin Barker, Ronald J. Kimball, Ruslan
2969 Zakirov, Salvador Fandiño, Sawyer X, Scott Lanning, Sergey Alekseev, Shawn M
2970 Moore, Shirakata Kentaro, Shlomi Fish, Sisyphus, Smylers, Steffen Müller,
2971 Steve Hay, Steve Peters, Steven Schubiger, Sullivan Beck, Sven Strickroth,
2972 Sébastien Aperghis\-Tramoni, Thomas Sibley, Tobias Leich, Tom Wyant, Tony Cook,
2973 Vadim Konovalov, Vincent Pit, Volker Schatz, Walt Mankowski, Yves Orton,
2974 Zefram.
2975 .PP
2976 The list above is almost certainly incomplete as it is automatically generated
2977 from version control history. In particular, it does not include the names of
2978 the (very much appreciated) contributors who reported issues to the Perl bug
2979 tracker.
2980 .PP
2981 Many of the changes included in this version originated in the CPAN modules
2982 included in Perl\*(Aqs core. We\*(Aqre grateful to the entire CPAN community for
2983 helping Perl to flourish.
2984 .PP
2985 For a more complete list of all of Perl\*(Aqs historical contributors, please see
2986 the \fIAUTHORS\fR file in the Perl source distribution.
2987 .SH "Reporting Bugs"
2988 .IX Header "Reporting Bugs"
2989 If you find what you think is a bug, you might check the articles recently
2990 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
2991 http://rt.perl.org/perlbug/ . There may also be information at
2992 http://www.perl.org/ , the Perl Home Page.
2993 .PP
2994 If you believe you have an unreported bug, please run the perlbug program
2995 included with your release. Be sure to trim your bug down to a tiny but
2996 sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
2997 will be sent off to [email protected] to be analysed by the Perl porting team.
2998 .PP
2999 If the bug you are reporting has security implications, which make it
3000 inappropriate to send to a publicly archived mailing list, then please send it
3001 to perl5\-security\[email protected]. This points to a closed subscription
3002 unarchived mailing list, which includes all the core committers, who will be
3003 able to help assess the impact of issues, figure out a resolution, and help
3004 co\-ordinate the release of patches to mitigate or fix the problem across all
3005 platforms on which Perl is supported. Please only use this address for
3006 security issues in the Perl core, not for modules independently distributed on
3007 CPAN.
3008 .SH "SEE ALSO"
3009 .IX Header "SEE ALSO"
3010 The \fIChanges\fR file for an explanation of how to view exhaustive details on
3011 what changed.
3012 .PP
3013 The \fIINSTALL\fR file for how to build Perl.
3014 .PP
3015 The \fIREADME\fR file for general stuff.
3016 .PP
3017 The \fIArtistic\fR and \fICopying\fR files for copyright information.