Debian Codegraph @

upstream/opensuse-tumbleweed/man1/perl5241delta.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 "PERL5241DELTA 1"
61 .TH PERL5241DELTA 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 perl5241delta \- what is new for perl v5.24.1
68 .SH DESCRIPTION
69 .IX Header "DESCRIPTION"
70 This document describes differences between the 5.24.0 release and the 5.24.1
71 release.
72 .PP
73 If you are upgrading from an earlier release such as 5.22.0, first read
74 perl5240delta, which describes differences between 5.22.0 and 5.24.0.
75 .SH Security
76 .IX Header "Security"
77 .SS "\fB\-Di\fP switch is now required for PerlIO debugging output"
78 .IX Subsection "-Di switch is now required for PerlIO debugging output"
79 Previously PerlIO debugging output would be sent to the file specified by the
80 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable if perl wasn\*(Aqt running setuid and the
81 \&\fB\-T\fR or \fB\-t\fR switches hadn\*(Aqt been parsed yet.
82 .PP
83 If perl performed output at a point where it hadn\*(Aqt yet parsed its switches
84 this could result in perl creating or overwriting the file named by
85 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR even when the \fB\-T\fR switch had been supplied.
86 .PP
87 Perl now requires the \fB\-Di\fR switch to produce PerlIO debugging output. By
88 default this is written to \f(CW\*(C`stderr\*(C'\fR, but can optionally be redirected to a
89 file by setting the \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable.
90 .PP
91 If perl is running setuid or the \fB\-T\fR switch was supplied \f(CW\*(C`PERLIO_DEBUG\*(C'\fR is
92 ignored and the debugging output is sent to \f(CW\*(C`stderr\*(C'\fR as for any other \fB\-D\fR
93 switch.
94 .SS "Core modules and tools no longer search \fI"".""\fP for optional modules"
95 .IX Subsection "Core modules and tools no longer search ""."" for optional modules"
96 The tools and many modules supplied in core no longer search the default
97 current directory entry in \f(CW@INC\fR for optional modules. For
98 example, Storable will remove the final \fI"."\fR from \f(CW@INC\fR before trying to
99 load Log::Agent.
100 .PP
101 This prevents an attacker injecting an optional module into a process run by
102 another user where the current directory is writable by the attacker, e.g. the
103 \&\fI/tmp\fR directory.
104 .PP
105 In most cases this removal should not cause problems, but difficulties were
106 encountered with base, which treats every module name supplied as optional.
107 These difficulties have not yet been resolved, so for this release there are no
108 changes to base. We hope to have a fix for base in Perl 5.24.2.
109 .PP
110 To protect your own code from this attack, either remove the default \fI"."\fR
111 entry from \f(CW@INC\fR at the start of your script, so:
112 .PP
113 .Vb 3
114 \& #!/usr/bin/perl
115 \& use strict;
116 \& ...
117 .Ve
118 .PP
119 becomes:
120 .PP
121 .Vb 4
122 \& #!/usr/bin/perl
123 \& BEGIN { pop @INC if $INC[\-1] eq \*(Aq.\*(Aq }
124 \& use strict;
125 \& ...
126 .Ve
127 .PP
128 or for modules, remove \fI"."\fR from a localized \f(CW@INC\fR, so:
129 .PP
130 .Vb 1
131 \& my $can_foo = eval { require Foo; }
132 .Ve
133 .PP
134 becomes:
135 .PP
136 .Vb 5
137 \& my $can_foo = eval {
138 \& local @INC = @INC;
139 \& pop @INC if $INC[\-1] eq \*(Aq.\*(Aq;
140 \& require Foo;
141 \& };
142 .Ve
143 .SH "Incompatible Changes"
144 .IX Header "Incompatible Changes"
145 Other than the security changes above there are no changes intentionally
146 incompatible with Perl 5.24.0. If any exist, they are bugs, and we request
147 that you submit a report. See "Reporting Bugs" below.
148 .SH "Modules and Pragmata"
149 .IX Header "Modules and Pragmata"
150 .SS "Updated Modules and Pragmata"
151 .IX Subsection "Updated Modules and Pragmata"
152 .IP \(bu 4
153 Archive::Tar has been upgraded from version 2.04 to 2.04_01.
154 .IP \(bu 4
155 bignum has been upgraded from version 0.42 to 0.42_01.
156 .IP \(bu 4
157 CPAN has been upgraded from version 2.11 to 2.11_01.
158 .IP \(bu 4
159 Digest has been upgraded from version 1.17 to 1.17_01.
160 .IP \(bu 4
161 Digest::SHA has been upgraded from version 5.95 to 5.95_01.
162 .IP \(bu 4
163 Encode has been upgraded from version 2.80 to 2.80_01.
164 .IP \(bu 4
165 ExtUtils::MakeMaker has been upgraded from version 7.10_01 to 7.10_02.
166 .IP \(bu 4
167 File::Fetch has been upgraded from version 0.48 to 0.48_01.
168 .IP \(bu 4
169 File::Spec has been upgraded from version 3.63 to 3.63_01.
170 .IP \(bu 4
171 HTTP::Tiny has been upgraded from version 0.056 to 0.056_001.
172 .IP \(bu 4
173 IO has been upgraded from version 1.36 to 1.36_01.
174 .IP \(bu 4
175 The IO\-Compress modules have been upgraded from version 2.069 to 2.069_001.
176 .IP \(bu 4
177 IPC::Cmd has been upgraded from version 0.92 to 0.92_01.
178 .IP \(bu 4
179 JSON::PP has been upgraded from version 2.27300 to 2.27300_01.
180 .IP \(bu 4
181 Locale::Maketext has been upgraded from version 1.26 to 1.26_01.
182 .IP \(bu 4
183 Locale::Maketext::Simple has been upgraded from version 0.21 to 0.21_01.
184 .IP \(bu 4
185 Memoize has been upgraded from version 1.03 to 1.03_01.
186 .IP \(bu 4
187 Module::CoreList has been upgraded from version 5.20160506 to 5.20170114_24.
188 .IP \(bu 4
189 Net::Ping has been upgraded from version 2.43 to 2.43_01.
190 .IP \(bu 4
191 Parse::CPAN::Meta has been upgraded from version 1.4417 to 1.4417_001.
192 .IP \(bu 4
193 Pod::Html has been upgraded from version 1.22 to 1.2201.
194 .IP \(bu 4
195 Pod::Perldoc has been upgraded from version 3.25_02 to 3.25_03.
196 .IP \(bu 4
197 Storable has been upgraded from version 2.56 to 2.56_01.
198 .IP \(bu 4
199 Sys::Syslog has been upgraded from version 0.33 to 0.33_01.
200 .IP \(bu 4
201 Test has been upgraded from version 1.28 to 1.28_01.
202 .IP \(bu 4
203 Test::Harness has been upgraded from version 3.36 to 3.36_01.
204 .IP \(bu 4
205 XSLoader has been upgraded from version 0.21 to 0.22, fixing a security hole
206 in which binary files could be loaded from a path outside of \f(CW@INC\fR.
207 [GH #15418] <https://github.com/Perl/perl5/issues/15418>
208 .SH Documentation
209 .IX Header "Documentation"
210 .SS "Changes to Existing Documentation"
211 .IX Subsection "Changes to Existing Documentation"
212 \fIperlapio\fR
213 .IX Subsection "perlapio"
214 .IP \(bu 4
215 The documentation of \f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
216 .PP
217 \fIperlrun\fR
218 .IX Subsection "perlrun"
219 .IP \(bu 4
220 The new \fB\-Di\fR switch has been documented, and the documentation of
221 \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR has been updated.
222 .SH Testing
223 .IX Header "Testing"
224 .IP \(bu 4
225 A new test script, \fIt/run/switchDx.t\fR, has been added to test that the new
226 \&\fB\-Di\fR switch is working correctly.
227 .SH "Selected Bug Fixes"
228 .IX Header "Selected Bug Fixes"
229 .IP \(bu 4
230 The change to hashbang redirection introduced in Perl 5.24.0, whereby perl
231 would redirect to another interpreter (Perl 6) if it found a hashbang path
232 which contains "perl" followed by "6", has been reverted because it broke in
233 cases such as \f(CW\*(C`#!/opt/perl64/bin/perl\*(C'\fR.
234 .SH Acknowledgements
235 .IX Header "Acknowledgements"
236 Perl 5.24.1 represents approximately 8 months of development since Perl 5.24.0
237 and contains approximately 8,100 lines of changes across 240 files from 18
238 authors.
239 .PP
240 Excluding auto\-generated files, documentation and release tools, there were
241 approximately 2,200 lines of changes to 170 .pm, .t, .c and .h files.
242 .PP
243 Perl continues to flourish into its third decade thanks to a vibrant community
244 of users and developers. The following people are known to have contributed
245 the improvements that became Perl 5.24.1:
246 .PP
247 Aaron Crane, Alex Vandiver, Aristotle Pagaltzis, Chad Granum, Chris \*(AqBinGOs\*(Aq
248 Williams, Craig A. Berry, Father Chrysostomos, James E Keenan, Jarkko
249 Hietaniemi, Karen Etheridge, Leon Timmermans, Matthew Horsfall, Ricardo Signes,
250 Sawyer X, Sébastien Aperghis\-Tramoni, Stevan Little, Steve Hay, Tony Cook.
251 .PP
252 The list above is almost certainly incomplete as it is automatically generated
253 from version control history. In particular, it does not include the names of
254 the (very much appreciated) contributors who reported issues to the Perl bug
255 tracker.
256 .PP
257 Many of the changes included in this version originated in the CPAN modules
258 included in Perl\*(Aqs core. We\*(Aqre grateful to the entire CPAN community for
259 helping Perl to flourish.
260 .PP
261 For a more complete list of all of Perl\*(Aqs historical contributors, please see
262 the \fIAUTHORS\fR file in the Perl source distribution.
263 .SH "Reporting Bugs"
264 .IX Header "Reporting Bugs"
265 If you find what you think is a bug, you might check the articles recently
266 posted to the comp.lang.perl.misc newsgroup and the Perl bug database at
267 <https://rt.perl.org/> . There may also be information at
268 <http://www.perl.org/> , the Perl Home Page.
269 .PP
270 If you believe you have an unreported bug, please run the perlbug program
271 included with your release. Be sure to trim your bug down to a tiny but
272 sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR,
273 will be sent off to [email protected] to be analysed by the Perl porting team.
274 .PP
275 If the bug you are reporting has security implications which make it
276 inappropriate to send to a publicly archived mailing list, then see
277 "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec for details of how to
278 report the issue.
279 .SH "SEE ALSO"
280 .IX Header "SEE ALSO"
281 The \fIChanges\fR file for an explanation of how to view exhaustive details on
282 what changed.
283 .PP
284 The \fIINSTALL\fR file for how to build Perl.
285 .PP
286 The \fIREADME\fR file for general stuff.
287 .PP
288 The \fIArtistic\fR and \fICopying\fR files for copyright information.