| 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 "PERLDELTA 1" |
| 61 |
.TH PERLDELTA 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 |
perldelta \- what is new for perl v5.42.1 |
| 68 |
.SH DESCRIPTION |
| 69 |
.IX Header "DESCRIPTION" |
| 70 |
This document describes differences between the 5.42.0 release and the 5.42.1 |
| 71 |
release. |
| 72 |
.PP |
| 73 |
If you are upgrading from an earlier release such as 5.40.0, first read |
| 74 |
perl5420delta, which describes differences between 5.40.0 and 5.42.0. |
| 75 |
.SH "Incompatible Changes" |
| 76 |
.IX Header "Incompatible Changes" |
| 77 |
There are no changes intentionally incompatible with Perl 5.42.0. If any |
| 78 |
exist, they are bugs, and we request that you submit a report. See |
| 79 |
"Reporting Bugs" below. |
| 80 |
.SH "Modules and Pragmata" |
| 81 |
.IX Header "Modules and Pragmata" |
| 82 |
.SS "Updated Modules and Pragmata" |
| 83 |
.IX Subsection "Updated Modules and Pragmata" |
| 84 |
.IP \(bu 4 |
| 85 |
Module::CoreList has been upgraded from version 5.20250702 to 5.20260308. |
| 86 |
.IP \(bu 4 |
| 87 |
POSIX has been upgraded from version 2.23 to 2.23_01. |
| 88 |
.SH Documentation |
| 89 |
.IX Header "Documentation" |
| 90 |
.SS "Changes to Existing Documentation" |
| 91 |
.IX Subsection "Changes to Existing Documentation" |
| 92 |
We have attempted to update the documentation to reflect the changes listed in |
| 93 |
this document. If you find any we have missed, open an issue at |
| 94 |
<https://github.com/Perl/perl5/issues>. |
| 95 |
.SH "Configuration and Compilation" |
| 96 |
.IX Header "Configuration and Compilation" |
| 97 |
.IP \(bu 4 |
| 98 |
It is now possible to pass to \fIConfigure\fR the values dealing with POSIX locale |
| 99 |
categories, overriding its automatic calculation of these. This enables |
| 100 |
cross\-compilation to work. The easiest way to do this is to extract the C |
| 101 |
program that does the calculation from \fIConfigure\fR and then run it on the |
| 102 |
target machine, and then pass the values it outputs to \fIConfigure\fR on the |
| 103 |
other machine. \fIPorting/Glossary\fR has examples. |
| 104 |
[GH #22992 <https://github.com/Perl/perl5/issues/22992>] |
| 105 |
.SH Testing |
| 106 |
.IX Header "Testing" |
| 107 |
Tests were added and changed to reflect the other additions and changes in this |
| 108 |
release. |
| 109 |
.SH "Platform Support" |
| 110 |
.IX Header "Platform Support" |
| 111 |
.SS "Platform\-Specific Notes" |
| 112 |
.IX Subsection "Platform-Specific Notes" |
| 113 |
.IP AIX 4 |
| 114 |
.IX Item "AIX" |
| 115 |
Thread\-safe locale handling has been turned off on all releases due to |
| 116 |
apparent bugs in the underlying operating system support. |
| 117 |
[GH #23825 <https://github.com/Perl/perl5/issues/23825>] |
| 118 |
.IP Win32 4 |
| 119 |
.IX Item "Win32" |
| 120 |
Fix builds with \f(CW\*(C`USE_IMP_SYS\*(C'\fR defined but \f(CW\*(C`USE_ITHREADS\*(C'\fR not defined. |
| 121 |
.SH "Selected Bug Fixes" |
| 122 |
.IX Header "Selected Bug Fixes" |
| 123 |
.IP \(bu 4 |
| 124 |
\&\f(CW\*(C`use\ 5.42\*(C'\fR now turns on \f(CW\*(C`use\ source::encoding\ "ascii"\*(C'\fR for the |
| 125 |
remainder of the line (besides subsequent lines). |
| 126 |
[GH #23881 <https://github.com/Perl/perl5/issues/23881>] |
| 127 |
.IP \(bu 4 |
| 128 |
Perl 5.42.0 does not handle the transition to/from daylight savings time |
| 129 |
properly. The time and/or timezone can be off by an hour in the intervals |
| 130 |
surrounding such transitions. This is a regression from earlier releases, and |
| 131 |
is now fixed. This bug was evident from perl space in the "strftime" in POSIX |
| 132 |
function, and in XS code with any of "my_strftime" in perlapi, |
| 133 |
"sv_strftime_ints" in perlapi, or "sv_strftime_tm" in perlapi. |
| 134 |
[GH #23878 <https://github.com/Perl/perl5/issues/23878>] |
| 135 |
.IP \(bu 4 |
| 136 |
Certain constructs involving a two\-variable \f(CW\*(C`for\*(C'\fR loop would crash the perl |
| 137 |
compiler in Perl 5.42.0: |
| 138 |
.Sp |
| 139 |
.Vb 3 |
| 140 |
\& # Two\-variable for loop over a list returned from a method call: |
| 141 |
\& for my ($x, $y) (Some::Class\->foo()) { ... } |
| 142 |
\& for my ($x, $y) ($object\->foo()) { ... } |
| 143 |
.Ve |
| 144 |
.Sp |
| 145 |
and |
| 146 |
.Sp |
| 147 |
.Vb 7 |
| 148 |
\& # Two\-variable for loop over a list returned from a call to a |
| 149 |
\& # lexical(ly imported) subroutine, all inside a lexically scoped |
| 150 |
\& # or anonymous subroutine: |
| 151 |
\& my sub foo { ... } |
| 152 |
\& my $fn = sub { |
| 153 |
\& for my ($x, $y) (foo()) { ... } |
| 154 |
\& }; |
| 155 |
\& |
| 156 |
\& use builtin qw(indexed); # lexical import! |
| 157 |
\& my sub bar { |
| 158 |
\& for my ($x, $y) (indexed(...)) { ... } |
| 159 |
\& } |
| 160 |
.Ve |
| 161 |
.Sp |
| 162 |
These have been fixed. |
| 163 |
[GH #23405 <https://github.com/Perl/perl5/issues/23405>] |
| 164 |
.IP \(bu 4 |
| 165 |
Since Perl 5.32.0, the second branch of a ternary condition operator wasn\*(Aqt |
| 166 |
getting the correct autovivification context applied. For example in something |
| 167 |
like |
| 168 |
.Sp |
| 169 |
.Vb 1 |
| 170 |
\& @{ $cond ? $h{foo} : $h{bar} } = ...; |
| 171 |
.Ve |
| 172 |
.Sp |
| 173 |
the first branch would correctly autovivify \f(CW$h{foo}\fR to an array ref, but the |
| 174 |
second branch might incorrectly autovivify \f(CW$h{bar}\fR to a hash ref. |
| 175 |
[GH #18669 <https://github.com/Perl/perl5/issues/18669>]. |
| 176 |
.SH Acknowledgements |
| 177 |
.IX Header "Acknowledgements" |
| 178 |
Perl 5.42.1 represents approximately 8 months of development since Perl 5.42.0 |
| 179 |
and contains approximately 7,200 lines of changes across 55 files from 12 |
| 180 |
authors. |
| 181 |
.PP |
| 182 |
Excluding auto\-generated files, documentation and release tools, there were |
| 183 |
approximately 1,700 lines of changes to 16 .pm, .t, .c and .h files. |
| 184 |
.PP |
| 185 |
Perl continues to flourish into its fourth decade thanks to a vibrant community |
| 186 |
of users and developers. The following people are known to have contributed |
| 187 |
the improvements that became Perl 5.42.1: |
| 188 |
.PP |
| 189 |
David Mitchell, Eric Herman, Karen Etheridge, Karl Williamson, Lukas Mai, Max |
| 190 |
Maischein, Philippe Bruhat (BooK), Richard Leach, Steve Hay, Thibault |
| 191 |
Duponchelle, Tony Cook, Yitzchak Scott\-Thoennes. |
| 192 |
.PP |
| 193 |
The list above is almost certainly incomplete as it is automatically generated |
| 194 |
from version control history. In particular, it does not include the names of |
| 195 |
the (very much appreciated) contributors who reported issues to the Perl bug |
| 196 |
tracker. |
| 197 |
.PP |
| 198 |
Many of the changes included in this version originated in the CPAN modules |
| 199 |
included in Perl\*(Aqs core. We\*(Aqre grateful to the entire CPAN community for |
| 200 |
helping Perl to flourish. |
| 201 |
.PP |
| 202 |
For a more complete list of all of Perl\*(Aqs historical contributors, please see |
| 203 |
the \fIAUTHORS\fR file in the Perl source distribution. |
| 204 |
.SH "Reporting Bugs" |
| 205 |
.IX Header "Reporting Bugs" |
| 206 |
If you find what you think is a bug, you might check the perl bug database at |
| 207 |
<https://github.com/Perl/perl5/issues>. There may also be information at |
| 208 |
<https://www.perl.org/>, the Perl Home Page. |
| 209 |
.PP |
| 210 |
If you believe you have an unreported bug, please open an issue at |
| 211 |
<https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a |
| 212 |
tiny but sufficient test case. |
| 213 |
.PP |
| 214 |
If the bug you are reporting has security implications which make it |
| 215 |
inappropriate to send to a public issue tracker, then see |
| 216 |
"SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec for details of how to |
| 217 |
report the issue. |
| 218 |
.SH "Give Thanks" |
| 219 |
.IX Header "Give Thanks" |
| 220 |
If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you |
| 221 |
can do so by running the \f(CW\*(C`perlthanks\*(C'\fR program: |
| 222 |
.PP |
| 223 |
.Vb 1 |
| 224 |
\& perlthanks |
| 225 |
.Ve |
| 226 |
.PP |
| 227 |
This will send an email to the Perl 5 Porters list with your show of thanks. |
| 228 |
.SH "SEE ALSO" |
| 229 |
.IX Header "SEE ALSO" |
| 230 |
The \fIChanges\fR file for an explanation of how to view exhaustive details on |
| 231 |
what changed. |
| 232 |
.PP |
| 233 |
The \fIINSTALL\fR file for how to build Perl. |
| 234 |
.PP |
| 235 |
The \fIREADME\fR file for general stuff. |
| 236 |
.PP |
| 237 |
The \fIArtistic\fR and \fICopying\fR files for copyright information. |