Debian Codegraph @

upstream/debian-unstable/man1/perl5241delta.1

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