Debian Codegraph @

upstream/debian-unstable/man1/perl589delta.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 "PERL589DELTA 1"
58 .TH PERL589DELTA 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 perl589delta \- what is new for perl v5.8.9
65 .SH DESCRIPTION
66 .IX Header "DESCRIPTION"
67 This document describes differences between the 5.8.8 release and
68 the 5.8.9 release.
69 .SH Notice
70 .IX Header "Notice"
71 The 5.8.9 release will be the last significant release of the 5.8.x
72 series. Any future releases of 5.8.x will likely only be to deal with
73 security issues, and platform build failures. Hence you should look to
74 migrating to 5.10.x, if you have not started already.
75 See "Known Problems" for more information.
76 .SH "Incompatible Changes"
77 .IX Header "Incompatible Changes"
78 A particular construction in the source code of extensions written in C++
79 may need changing. See "Changed Internals" for more details. All
80 extensions written in C, most written in C++, and all existing compiled
81 extensions are unaffected. This was necessary to improve C++ support.
82 .PP
83 Other than this, there are no changes intentionally incompatible with 5.8.8.
84 If any exist, they are bugs and reports are welcome.
85 .SH "Core Enhancements"
86 .IX Header "Core Enhancements"
87 .SS "Unicode Character Database 5.1.0"
88 .IX Subsection "Unicode Character Database 5.1.0"
89 The copy of the Unicode Character Database included in Perl 5.8 has
90 been updated to 5.1.0 from 4.1.0. See
91 <http://www.unicode.org/versions/Unicode5.1.0/#NotableChanges> for the
92 notable changes.
93 .SS "stat and \-X on directory handles"
94 .IX Subsection "stat and -X on directory handles"
95 It is now possible to call \f(CW\*(C`stat\*(C'\fR and the \f(CW\*(C`\-X\*(C'\fR filestat operators on
96 directory handles. As both directory and file handles are barewords, there
97 can be ambiguities over which was intended. In these situations the file
98 handle semantics are preferred. Both also treat \f(CW*FILE{IO}\fR filehandles
99 like \f(CW*FILE\fR filehandles.
100 .ie n .SS "Source filters in @INC"
101 .el .SS "Source filters in \f(CW@INC\fP"
102 .IX Subsection "Source filters in @INC"
103 It's possible to enhance the mechanism of subroutine hooks in \f(CW@INC\fR by
104 adding a source filter on top of the filehandle opened and returned by the
105 hook. This feature was planned a long time ago, but wasn't quite working
106 until now. See "require" in perlfunc for details. (Nicholas Clark)
107 .SS "Exceptions in constant folding"
108 .IX Subsection "Exceptions in constant folding"
109 The constant folding routine is now wrapped in an exception handler, and
110 if folding throws an exception (such as attempting to evaluate 0/0), perl
111 now retains the current optree, rather than aborting the whole program.
112 Without this change, programs would not compile if they had expressions that
113 happened to generate exceptions, even though those expressions were in code
114 that could never be reached at runtime. (Nicholas Clark, Dave Mitchell)
115 .ie n .SS """no VERSION"""
116 .el .SS "\f(CWno VERSION\fP"
117 .IX Subsection "no VERSION"
118 You can now use \f(CW\*(C`no\*(C'\fR followed by a version number to specify that you
119 want to use a version of perl older than the specified one.
120 .SS "Improved internal UTF\-8 caching code"
121 .IX Subsection "Improved internal UTF-8 caching code"
122 The code that caches calculated UTF\-8 byte offsets for character offsets for
123 a string has been re-written. Several bugs have been located and eliminated,
124 and the code now makes better use of the information it has, so should be
125 faster. In particular, it doesn't scan to the end of a string before
126 calculating an offset within the string, which should speed up some operations
127 on long strings. It is now possible to disable the caching code at run time,
128 to verify that it is not the cause of suspected problems.
129 .SS "Runtime relocatable installations"
130 .IX Subsection "Runtime relocatable installations"
131 There is now \fIConfigure\fR support for creating a perl tree that is relocatable
132 at run time. see "Relocatable installations".
133 .SS "New internal variables"
134 .IX Subsection "New internal variables"
135 .ie n .IP """${^CHILD_ERROR_NATIVE}""" 4
136 .el .IP \f(CW${^CHILD_ERROR_NATIVE}\fR 4
137 .IX Item "${^CHILD_ERROR_NATIVE}"
138 This variable gives the native status returned by the last pipe close,
139 backtick command, successful call to \f(CW\*(C`wait\*(C'\fR or \f(CW\*(C`waitpid\*(C'\fR, or from the
140 \&\f(CW\*(C`system\*(C'\fR operator. See perlvar for details. (Contributed by Gisle Aas.)
141 .ie n .IP """${^UTF8CACHE}""" 4
142 .el .IP \f(CW${^UTF8CACHE}\fR 4
143 .IX Item "${^UTF8CACHE}"
144 This variable controls the state of the internal UTF\-8 offset caching code.
145 1 for on (the default), 0 for off, \-1 to debug the caching code by checking
146 all its results against linear scans, and panicking on any discrepancy.
147 .ie n .SS """readpipe"" is now overridable"
148 .el .SS "\f(CWreadpipe\fP is now overridable"
149 .IX Subsection "readpipe is now overridable"
150 The built-in function \f(CW\*(C`readpipe\*(C'\fR is now overridable. Overriding it permits
151 also to override its operator counterpart, \f(CW\*(C`qx//\*(C'\fR (also known as \f(CW\`\`\fR).
152 .SS "simple exception handling macros"
153 .IX Subsection "simple exception handling macros"
154 Perl 5.8.9 (and 5.10.0 onwards) now provides a couple of macros to do very
155 basic exception handling in XS modules. You can use these macros if you call
156 code that may \f(CW\*(C`croak\*(C'\fR, but you need to do some cleanup before giving control
157 back to Perl. See "Exception Handling" in perlguts for more details.
158 .SS "\-D option enhancements"
159 .IX Subsection "-D option enhancements"
160 .IP \(bu 4
161 \&\f(CW\*(C`\-Dq\*(C'\fR suppresses the \fIEXECUTING...\fR message when running under \f(CW\*(C`\-D\*(C'\fR
162 .IP \(bu 4
163 \&\f(CW\*(C`\-Dl\*(C'\fR logs runops loop entry and exit, and jump level popping.
164 .IP \(bu 4
165 \&\f(CW\*(C`\-Dv\*(C'\fR displays the process id as part of the trace output.
166 .SS "XS-assisted SWASHGET"
167 .IX Subsection "XS-assisted SWASHGET"
168 Some pure-perl code that the regexp engine was using to retrieve Unicode
169 properties and transliteration mappings has been reimplemented in XS
170 for faster execution.
171 (SADAHIRO Tomoyuki)
172 .SS "Constant subroutines"
173 .IX Subsection "Constant subroutines"
174 The interpreter internals now support a far more memory efficient form of
175 inlineable constants. Storing a reference to a constant value in a symbol
176 table is equivalent to a full typeglob referencing a constant subroutine,
177 but using about 400 bytes less memory. This proxy constant subroutine is
178 automatically upgraded to a real typeglob with subroutine if necessary.
179 The approach taken is analogous to the existing space optimisation for
180 subroutine stub declarations, which are stored as plain scalars in place
181 of the full typeglob.
182 .PP
183 However, to aid backwards compatibility of existing code, which (wrongly)
184 does not expect anything other than typeglobs in symbol tables, nothing in
185 core uses this feature, other than the regression tests.
186 .PP
187 Stubs for prototyped subroutines have been stored in symbol tables as plain
188 strings, and stubs for unprototyped subroutines as the number \-1, since 5.005,
189 so code which assumes that the core only places typeglobs in symbol tables
190 has been making incorrect assumptions for over 10 years.
191 .SH "New Platforms"
192 .IX Header "New Platforms"
193 Compile support added for:
194 .IP \(bu 4
195 DragonFlyBSD
196 .IP \(bu 4
197 MidnightBSD
198 .IP \(bu 4
199 MirOS BSD
200 .IP \(bu 4
201 RISC OS
202 .IP \(bu 4
203 Cray XT4/Catamount
204 .SH "Modules and Pragmata"
205 .IX Header "Modules and Pragmata"
206 .SS "New Modules"
207 .IX Subsection "New Modules"
208 .IP \(bu 4
209 \&\f(CW\*(C`Module::Pluggable\*(C'\fR is a simple framework to create modules that accept
210 pluggable sub-modules. The bundled version is 3.8
211 .IP \(bu 4
212 \&\f(CW\*(C`Module::CoreList\*(C'\fR is a hash of hashes that is keyed on perl version as
213 indicated in \f(CW$]\fR. The bundled version is 2.17
214 .IP \(bu 4
215 \&\f(CW\*(C`Win32API::File\*(C'\fR now available in core on Microsoft Windows. The bundled
216 version is 0.1001_01
217 .IP \(bu 4
218 \&\f(CW\*(C`Devel::InnerPackage\*(C'\fR finds all the packages defined by a single file. It is
219 part of the \f(CW\*(C`Module::Pluggable\*(C'\fR distribution. The bundled version is 0.3
220 .SS "Updated Modules"
221 .IX Subsection "Updated Modules"
222 .IP \(bu 4
223 \&\f(CW\*(C`attributes\*(C'\fR upgraded to version 0.09
224 .IP \(bu 4
225 \&\f(CW\*(C`AutoLoader\*(C'\fR upgraded to version 5.67
226 .IP \(bu 4
227 \&\f(CW\*(C`AutoSplit\*(C'\fR upgraded to 1.06
228 .IP \(bu 4
229 \&\f(CW\*(C`autouse\*(C'\fR upgraded to version 1.06
230 .IP \(bu 4
231 \&\f(CW\*(C`B\*(C'\fR upgraded from 1.09_01 to 1.19
232 .RS 4
233 .IP \(bu 4
234 provides new pad related abstraction macros \f(CW\*(C`B::NV::COP_SEQ_RANGE_LOW\*(C'\fR,
235 \&\f(CW\*(C`B::NV::COP_SEQ_RANGE_HIGH\*(C'\fR, \f(CW\*(C`B::NV::PARENT_PAD_INDEX\*(C'\fR,
236 \&\f(CW\*(C`B::NV::PARENT_FAKELEX_FLAGS\*(C'\fR, which hides the difference in storage in
237 5.10.0 and later.
238 .IP \(bu 4
239 provides \f(CW\*(C`B::sub_generation\*(C'\fR, which exposes \f(CW\*(C`PL_sub_generation\*(C'\fR
240 .IP \(bu 4
241 provides \f(CW\*(C`B::GV::isGV_with_GP\*(C'\fR, which on pre\-5.10 perls always returns true.
242 .IP \(bu 4
243 New type \f(CW\*(C`B::HE\*(C'\fR added with methods \f(CW\*(C`VAL\*(C'\fR, \f(CW\*(C`HASH\*(C'\fR and \f(CW\*(C`SVKEY_force\*(C'\fR
244 .IP \(bu 4
245 The \f(CW\*(C`B::GVf_IMPORTED_CV\*(C'\fR flag is now set correctly when a proxy
246 constant subroutine is imported.
247 .IP \(bu 4
248 bugs fixed in the handling of \f(CW\*(C`PMOP\*(C'\fRs.
249 .IP \(bu 4
250 \&\f(CW\*(C`B::BM::PREVIOUS\*(C'\fR returns now \f(CW\*(C`U32\*(C'\fR, not \f(CW\*(C`U16\*(C'\fR.
251 \&\f(CW\*(C`B::CV::START\*(C'\fR and \f(CW\*(C`B:CV::ROOT\*(C'\fR return now \f(CW\*(C`NULL\*(C'\fR on an XSUB,
252 \&\f(CW\*(C`B::CV::XSUB\*(C'\fR and \f(CW\*(C`B::CV::XSUBANY\*(C'\fR return 0 on a non-XSUB.
253 .RE
254 .RS 4
255 .RE
256 .IP \(bu 4
257 \&\f(CW\*(C`B::C\*(C'\fR upgraded to 1.05
258 .IP \(bu 4
259 \&\f(CW\*(C`B::Concise\*(C'\fR upgraded to 0.76
260 .RS 4
261 .IP \(bu 4
262 new option \f(CW\*(C`\-src\*(C'\fR causes the rendering of each statement (starting with
263 the nextstate OP) to be preceded by the first line of source code that
264 generates it.
265 .IP \(bu 4
266 new option \f(CW\*(C`\-stash="somepackage"\*(C'\fR, \f(CW\*(C`require\*(C'\fRs "somepackage", and then renders
267 each function defined in its namespace.
268 .IP \(bu 4
269 now has documentation of detailed hint symbols.
270 .RE
271 .RS 4
272 .RE
273 .IP \(bu 4
274 \&\f(CW\*(C`B::Debug\*(C'\fR upgraded to version 1.05
275 .IP \(bu 4
276 \&\f(CW\*(C`B::Deparse\*(C'\fR upgraded to version 0.87
277 .RS 4
278 .IP \(bu 4
279 properly deparse \f(CW\*(C`print readpipe $x, $y\*(C'\fR.
280 .IP \(bu 4
281 now handles \f(CW\*(C`\*(Aq\*(Aq\->()\*(C'\fR, \f(CW::()\fR, \f(CW\*(C`sub :: {}\*(C'\fR, \fIetc.\fR correctly [RT #43010].
282 All bugs in parsing these kinds of syntax are now fixed:
283 .Sp
284 .Vb 5
285 \& perl \-MO=Deparse \-e \*(Aq"my %h = "\->()\*(Aq
286 \& perl \-MO=Deparse \-e \*(Aq::\->()\*(Aq
287 \& perl \-MO=Deparse \-e \*(Aqsub :: {}\*(Aq
288 \& perl \-MO=Deparse \-e \*(Aqpackage a; sub a::b::c {}\*(Aq
289 \& perl \-MO=Deparse \-e \*(Aqsub the::main::road {}\*(Aq
290 .Ve
291 .IP \(bu 4
292 does \fBnot\fR deparse \f(CW$^H{v_string}\fR, which is automatically set by the
293 internals.
294 .RE
295 .RS 4
296 .RE
297 .IP \(bu 4
298 \&\f(CW\*(C`B::Lint\*(C'\fR upgraded to version 1.11
299 .IP \(bu 4
300 \&\f(CW\*(C`B::Terse\*(C'\fR upgraded to version 1.05
301 .IP \(bu 4
302 \&\f(CW\*(C`base\*(C'\fR upgraded to version 2.13
303 .RS 4
304 .IP \(bu 4
305 loading a module via base.pm would mask a global \f(CW$SIG{_\|_DIE_\|_}\fR in that
306 module.
307 .IP \(bu 4
308 push all classes at once in \f(CW@ISA\fR
309 .RE
310 .RS 4
311 .RE
312 .IP \(bu 4
313 \&\f(CW\*(C`Benchmark\*(C'\fR upgraded to version 1.10
314 .IP \(bu 4
315 \&\f(CW\*(C`bigint\*(C'\fR upgraded to 0.23
316 .IP \(bu 4
317 \&\f(CW\*(C`bignum\*(C'\fR upgraded to 0.23
318 .IP \(bu 4
319 \&\f(CW\*(C`bigrat\*(C'\fR upgraded to 0.23
320 .IP \(bu 4
321 \&\f(CW\*(C`blib\*(C'\fR upgraded to 0.04
322 .IP \(bu 4
323 \&\f(CW\*(C`Carp\*(C'\fR upgraded to version 1.10
324 .Sp
325 The argument backtrace code now shows \f(CW\*(C`undef\*(C'\fR as \f(CW\*(C`undef\*(C'\fR,
326 instead of a string \fI"undef"\fR.
327 .IP \(bu 4
328 \&\f(CW\*(C`CGI\*(C'\fR upgraded to version 3.42
329 .IP \(bu 4
330 \&\f(CW\*(C`charnames\*(C'\fR upgraded to 1.06
331 .IP \(bu 4
332 \&\f(CW\*(C`constant\*(C'\fR upgraded to version 1.17
333 .IP \(bu 4
334 \&\f(CW\*(C`CPAN\*(C'\fR upgraded to version 1.9301
335 .IP \(bu 4
336 \&\f(CW\*(C`Cwd\*(C'\fR upgraded to version 3.29 with some platform specific
337 improvements (including for VMS).
338 .IP \(bu 4
339 \&\f(CW\*(C`Data::Dumper\*(C'\fR upgraded to version 2.121_17
340 .RS 4
341 .IP \(bu 4
342 Fixes hash iterator current position with the pure Perl version [RT #40668]
343 .IP \(bu 4
344 Performance enhancements, which will be most evident on platforms where
345 repeated calls to C's \f(CWrealloc()\fR are slow, such as Win32.
346 .RE
347 .RS 4
348 .RE
349 .IP \(bu 4
350 \&\f(CW\*(C`DB_File\*(C'\fR upgraded to version 1.817
351 .IP \(bu 4
352 \&\f(CW\*(C`DB_Filter\*(C'\fR upgraded to version 0.02
353 .IP \(bu 4
354 \&\f(CW\*(C`Devel::DProf\*(C'\fR upgraded to version 20080331.00
355 .IP \(bu 4
356 \&\f(CW\*(C`Devel::Peek\*(C'\fR upgraded to version 1.04
357 .IP \(bu 4
358 \&\f(CW\*(C`Devel::PPPort\*(C'\fR upgraded to version 3.14
359 .IP \(bu 4
360 \&\f(CW\*(C`diagnostics\*(C'\fR upgraded to version 1.16
361 .IP \(bu 4
362 \&\f(CW\*(C`Digest\*(C'\fR upgraded to version 1.15
363 .IP \(bu 4
364 \&\f(CW\*(C`Digest::MD5\*(C'\fR upgraded to version 2.37
365 .IP \(bu 4
366 \&\f(CW\*(C`DirHandle\*(C'\fR upgraded to version 1.02
367 .RS 4
368 .IP \(bu 4
369 now localises \f(CW$.\fR, \f(CW$@\fR, \f(CW$!\fR, \f(CW$^E\fR, and \f(CW$?\fR before closing the
370 directory handle to suppress leaking any side effects of warnings about it
371 already being closed.
372 .RE
373 .RS 4
374 .RE
375 .IP \(bu 4
376 \&\f(CW\*(C`DynaLoader\*(C'\fR upgraded to version 1.09
377 .Sp
378 \&\f(CW\*(C`DynaLoader\*(C'\fR can now dynamically load a loadable object from a file with a
379 non-default file extension.
380 .IP \(bu 4
381 \&\f(CW\*(C`Encode\*(C'\fR upgraded to version 2.26
382 .Sp
383 \&\f(CW\*(C`Encode::Alias\*(C'\fR includes a fix for encoding "646" on Solaris (better known as
384 ASCII).
385 .IP \(bu 4
386 \&\f(CW\*(C`English\*(C'\fR upgraded to version 1.03
387 .IP \(bu 4
388 \&\f(CW\*(C`Errno\*(C'\fR upgraded to version 1.10
389 .IP \(bu 4
390 \&\f(CW\*(C`Exporter\*(C'\fR upgraded to version 5.63
391 .IP \(bu 4
392 \&\f(CW\*(C`ExtUtils::Command\*(C'\fR upgraded to version 1.15
393 .IP \(bu 4
394 \&\f(CW\*(C`ExtUtils::Constant\*(C'\fR upgraded to version 0.21
395 .IP \(bu 4
396 \&\f(CW\*(C`ExtUtils::Embed\*(C'\fR upgraded to version 1.28
397 .IP \(bu 4
398 \&\f(CW\*(C`ExtUtils::Install\*(C'\fR upgraded to version 1.50_01
399 .IP \(bu 4
400 \&\f(CW\*(C`ExtUtils::Installed\*(C'\fR upgraded to version 1.43
401 .IP \(bu 4
402 \&\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR upgraded to version 6.48
403 .RS 4
404 .IP \(bu 4
405 support for \f(CW\*(C`INSTALLSITESCRIPT\*(C'\fR and \f(CW\*(C`INSTALLVENDORSCRIPT\*(C'\fR
406 configuration.
407 .RE
408 .RS 4
409 .RE
410 .IP \(bu 4
411 \&\f(CW\*(C`ExtUtils::Manifest\*(C'\fR upgraded to version 1.55
412 .IP \(bu 4
413 \&\f(CW\*(C`ExtUtils::ParseXS\*(C'\fR upgraded to version 2.19
414 .IP \(bu 4
415 \&\f(CW\*(C`Fatal\*(C'\fR upgraded to version 1.06
416 .RS 4
417 .IP \(bu 4
418 allows built-ins in \f(CW\*(C`CORE::GLOBAL\*(C'\fR to be made fatal.
419 .RE
420 .RS 4
421 .RE
422 .IP \(bu 4
423 \&\f(CW\*(C`Fcntl\*(C'\fR upgraded to version 1.06
424 .IP \(bu 4
425 \&\f(CW\*(C`fields\*(C'\fR upgraded to version 2.12
426 .IP \(bu 4
427 \&\f(CW\*(C`File::Basename\*(C'\fR upgraded to version 2.77
428 .IP \(bu 4
429 \&\f(CW\*(C`FileCache\*(C'\fR upgraded to version 1.07
430 .IP \(bu 4
431 \&\f(CW\*(C`File::Compare\*(C'\fR upgraded to 1.1005
432 .IP \(bu 4
433 \&\f(CW\*(C`File::Copy\*(C'\fR upgraded to 2.13
434 .RS 4
435 .IP \(bu 4
436 now uses 3\-arg open.
437 .RE
438 .RS 4
439 .RE
440 .IP \(bu 4
441 \&\f(CW\*(C`File::DosGlob\*(C'\fR upgraded to 1.01
442 .IP \(bu 4
443 \&\f(CW\*(C`File::Find\*(C'\fR upgraded to version 1.13
444 .IP \(bu 4
445 \&\f(CW\*(C`File::Glob\*(C'\fR upgraded to version 1.06
446 .RS 4
447 .IP \(bu 4
448 fixes spurious results with brackets inside braces.
449 .RE
450 .RS 4
451 .RE
452 .IP \(bu 4
453 \&\f(CW\*(C`File::Path\*(C'\fR upgraded to version 2.07_02
454 .IP \(bu 4
455 \&\f(CW\*(C`File::Spec\*(C'\fR upgraded to version 3.29
456 .RS 4
457 .IP \(bu 4
458 improved handling of bad arguments.
459 .IP \(bu 4
460 some platform specific improvements (including for VMS and Cygwin), with
461 an optimisation on \f(CW\*(C`abs2rel\*(C'\fR when handling both relative arguments.
462 .RE
463 .RS 4
464 .RE
465 .IP \(bu 4
466 \&\f(CW\*(C`File::stat\*(C'\fR upgraded to version 1.01
467 .IP \(bu 4
468 \&\f(CW\*(C`File::Temp\*(C'\fR upgraded to version 0.20
469 .IP \(bu 4
470 \&\f(CW\*(C`filetest\*(C'\fR upgraded to version 1.02
471 .IP \(bu 4
472 \&\f(CW\*(C`Filter::Util::Call\*(C'\fR upgraded to version 1.07
473 .IP \(bu 4
474 \&\f(CW\*(C`Filter::Simple\*(C'\fR upgraded to version 0.83
475 .IP \(bu 4
476 \&\f(CW\*(C`FindBin\*(C'\fR upgraded to version 1.49
477 .IP \(bu 4
478 \&\f(CW\*(C`GDBM_File\*(C'\fR upgraded to version 1.09
479 .IP \(bu 4
480 \&\f(CW\*(C`Getopt::Long\*(C'\fR upgraded to version 2.37
481 .IP \(bu 4
482 \&\f(CW\*(C`Getopt::Std\*(C'\fR upgraded to version 1.06
483 .IP \(bu 4
484 \&\f(CW\*(C`Hash::Util\*(C'\fR upgraded to version 0.06
485 .IP \(bu 4
486 \&\f(CW\*(C`if\*(C'\fR upgraded to version 0.05
487 .IP \(bu 4
488 \&\f(CW\*(C`IO\*(C'\fR upgraded to version 1.23
489 .Sp
490 Reduced number of calls to \f(CW\*(C`getpeername\*(C'\fR in \f(CW\*(C`IO::Socket\*(C'\fR
491 .IP \(bu 4
492 \&\f(CW\*(C`IPC::Open\*(C'\fR upgraded to version 1.03
493 .IP \(bu 4
494 \&\f(CW\*(C`IPC::Open3\*(C'\fR upgraded to version 1.03
495 .IP \(bu 4
496 \&\f(CW\*(C`IPC::SysV\*(C'\fR upgraded to version 2.00
497 .IP \(bu 4
498 \&\f(CW\*(C`lib\*(C'\fR upgraded to version 0.61
499 .RS 4
500 .IP \(bu 4
501 avoid warning about loading \fI.par\fR files.
502 .RE
503 .RS 4
504 .RE
505 .IP \(bu 4
506 \&\f(CW\*(C`libnet\*(C'\fR upgraded to version 1.22
507 .IP \(bu 4
508 \&\f(CW\*(C`List::Util\*(C'\fR upgraded to 1.19
509 .IP \(bu 4
510 \&\f(CW\*(C`Locale::Maketext\*(C'\fR upgraded to 1.13
511 .IP \(bu 4
512 \&\f(CW\*(C`Math::BigFloat\*(C'\fR upgraded to version 1.60
513 .IP \(bu 4
514 \&\f(CW\*(C`Math::BigInt\*(C'\fR upgraded to version 1.89
515 .IP \(bu 4
516 \&\f(CW\*(C`Math::BigRat\*(C'\fR upgraded to version 0.22
517 .RS 4
518 .IP \(bu 4
519 implements new \f(CW\*(C`as_float\*(C'\fR method.
520 .RE
521 .RS 4
522 .RE
523 .IP \(bu 4
524 \&\f(CW\*(C`Math::Complex\*(C'\fR upgraded to version 1.54.
525 .IP \(bu 4
526 \&\f(CW\*(C`Math::Trig\*(C'\fR upgraded to version 1.18.
527 .IP \(bu 4
528 \&\f(CW\*(C`NDBM_File\*(C'\fR upgraded to version 1.07
529 .RS 4
530 .IP \(bu 4
531 improve \fIg++\fR handling for systems using GDBM compatibility headers.
532 .RE
533 .RS 4
534 .RE
535 .IP \(bu 4
536 \&\f(CW\*(C`Net::Ping\*(C'\fR upgraded to version 2.35
537 .IP \(bu 4
538 \&\f(CW\*(C`NEXT\*(C'\fR upgraded to version 0.61
539 .RS 4
540 .IP \(bu 4
541 fix several bugs with \f(CW\*(C`NEXT\*(C'\fR when working with \f(CW\*(C`AUTOLOAD\*(C'\fR, \f(CW\*(C`eval\*(C'\fR block, and
542 within overloaded stringification.
543 .RE
544 .RS 4
545 .RE
546 .IP \(bu 4
547 \&\f(CW\*(C`ODBM_File\*(C'\fR upgraded to 1.07
548 .IP \(bu 4
549 \&\f(CW\*(C`open\*(C'\fR upgraded to 1.06
550 .IP \(bu 4
551 \&\f(CW\*(C`ops\*(C'\fR upgraded to 1.02
552 .IP \(bu 4
553 \&\f(CW\*(C`PerlIO::encoding\*(C'\fR upgraded to version 0.11
554 .IP \(bu 4
555 \&\f(CW\*(C`PerlIO::scalar\*(C'\fR upgraded to version 0.06
556 .RS 4
557 .IP \(bu 4
558 [RT #40267] \f(CW\*(C`PerlIO::scalar\*(C'\fR doesn't respect readonly-ness.
559 .RE
560 .RS 4
561 .RE
562 .IP \(bu 4
563 \&\f(CW\*(C`PerlIO::via\*(C'\fR upgraded to version 0.05
564 .IP \(bu 4
565 \&\f(CW\*(C`Pod::Html\*(C'\fR upgraded to version 1.09
566 .IP \(bu 4
567 \&\f(CW\*(C`Pod::Parser\*(C'\fR upgraded to version 1.35
568 .IP \(bu 4
569 \&\f(CW\*(C`Pod::Usage\*(C'\fR upgraded to version 1.35
570 .IP \(bu 4
571 \&\f(CW\*(C`POSIX\*(C'\fR upgraded to version 1.15
572 .RS 4
573 .IP \(bu 4
574 \&\f(CW\*(C`POSIX\*(C'\fR constants that duplicate those in \f(CW\*(C`Fcntl\*(C'\fR are now imported from
575 \&\f(CW\*(C`Fcntl\*(C'\fR and re-exported, rather than being duplicated by \f(CW\*(C`POSIX\*(C'\fR
576 .IP \(bu 4
577 \&\f(CW\*(C`POSIX::remove\*(C'\fR can remove empty directories.
578 .IP \(bu 4
579 \&\f(CW\*(C`POSIX::setlocale\*(C'\fR safer to call multiple times.
580 .IP \(bu 4
581 \&\f(CW\*(C`POSIX::SigRt\*(C'\fR added, which provides access to POSIX realtime signal
582 functionality on systems that support it.
583 .RE
584 .RS 4
585 .RE
586 .IP \(bu 4
587 \&\f(CW\*(C`re\*(C'\fR upgraded to version 0.06_01
588 .IP \(bu 4
589 \&\f(CW\*(C`Safe\*(C'\fR upgraded to version 2.16
590 .IP \(bu 4
591 \&\f(CW\*(C`Scalar::Util\*(C'\fR upgraded to 1.19
592 .IP \(bu 4
593 \&\f(CW\*(C`SDBM_File\*(C'\fR upgraded to version 1.06
594 .IP \(bu 4
595 \&\f(CW\*(C`SelfLoader\*(C'\fR upgraded to version 1.17
596 .IP \(bu 4
597 \&\f(CW\*(C`Shell\*(C'\fR upgraded to version 0.72
598 .IP \(bu 4
599 \&\f(CW\*(C`sigtrap\*(C'\fR upgraded to version 1.04
600 .IP \(bu 4
601 \&\f(CW\*(C`Socket\*(C'\fR upgraded to version 1.81
602 .RS 4
603 .IP \(bu 4
604 this fixes an optimistic use of \f(CW\*(C`gethostbyname\*(C'\fR
605 .RE
606 .RS 4
607 .RE
608 .IP \(bu 4
609 \&\f(CW\*(C`Storable\*(C'\fR upgraded to 2.19
610 .IP \(bu 4
611 \&\f(CW\*(C`Switch\*(C'\fR upgraded to version 2.13
612 .IP \(bu 4
613 \&\f(CW\*(C`Sys::Syslog\*(C'\fR upgraded to version 0.27
614 .IP \(bu 4
615 \&\f(CW\*(C`Term::ANSIColor\*(C'\fR upgraded to version 1.12
616 .IP \(bu 4
617 \&\f(CW\*(C`Term::Cap\*(C'\fR upgraded to version 1.12
618 .IP \(bu 4
619 \&\f(CW\*(C`Term::ReadLine\*(C'\fR upgraded to version 1.03
620 .IP \(bu 4
621 \&\f(CW\*(C`Test::Builder\*(C'\fR upgraded to version 0.80
622 .IP \(bu 4
623 \&\f(CW\*(C`Test::Harness\*(C'\fR upgraded version to 2.64
624 .RS 4
625 .IP \(bu 4
626 this makes it able to handle newlines.
627 .RE
628 .RS 4
629 .RE
630 .IP \(bu 4
631 \&\f(CW\*(C`Test::More\*(C'\fR upgraded to version 0.80
632 .IP \(bu 4
633 \&\f(CW\*(C`Test::Simple\*(C'\fR upgraded to version 0.80
634 .IP \(bu 4
635 \&\f(CW\*(C`Text::Balanced\*(C'\fR upgraded to version 1.98
636 .IP \(bu 4
637 \&\f(CW\*(C`Text::ParseWords\*(C'\fR upgraded to version 3.27
638 .IP \(bu 4
639 \&\f(CW\*(C`Text::Soundex\*(C'\fR upgraded to version 3.03
640 .IP \(bu 4
641 \&\f(CW\*(C`Text::Tabs\*(C'\fR upgraded to version 2007.1117
642 .IP \(bu 4
643 \&\f(CW\*(C`Text::Wrap\*(C'\fR upgraded to version 2006.1117
644 .IP \(bu 4
645 \&\f(CW\*(C`Thread\*(C'\fR upgraded to version 2.01
646 .IP \(bu 4
647 \&\f(CW\*(C`Thread::Semaphore\*(C'\fR upgraded to version 2.09
648 .IP \(bu 4
649 \&\f(CW\*(C`Thread::Queue\*(C'\fR upgraded to version 2.11
650 .RS 4
651 .IP \(bu 4
652 added capability to add complex structures (e.g., hash of hashes) to queues.
653 .IP \(bu 4
654 added capability to dequeue multiple items at once.
655 .IP \(bu 4
656 added new methods to inspect and manipulate queues: \f(CW\*(C`peek\*(C'\fR, \f(CW\*(C`insert\*(C'\fR and
657 \&\f(CW\*(C`extract\*(C'\fR
658 .RE
659 .RS 4
660 .RE
661 .IP \(bu 4
662 \&\f(CW\*(C`Tie::Handle\*(C'\fR upgraded to version 4.2
663 .IP \(bu 4
664 \&\f(CW\*(C`Tie::Hash\*(C'\fR upgraded to version 1.03
665 .IP \(bu 4
666 \&\f(CW\*(C`Tie::Memoize\*(C'\fR upgraded to version 1.1
667 .RS 4
668 .IP \(bu 4
669 \&\f(CW\*(C`Tie::Memoize::EXISTS\*(C'\fR now correctly caches its results.
670 .RE
671 .RS 4
672 .RE
673 .IP \(bu 4
674 \&\f(CW\*(C`Tie::RefHash\*(C'\fR upgraded to version 1.38
675 .IP \(bu 4
676 \&\f(CW\*(C`Tie::Scalar\*(C'\fR upgraded to version 1.01
677 .IP \(bu 4
678 \&\f(CW\*(C`Tie::StdHandle\*(C'\fR upgraded to version 4.2
679 .IP \(bu 4
680 \&\f(CW\*(C`Time::gmtime\*(C'\fR upgraded to version 1.03
681 .IP \(bu 4
682 \&\f(CW\*(C`Time::Local\*(C'\fR upgraded to version 1.1901
683 .IP \(bu 4
684 \&\f(CW\*(C`Time::HiRes\*(C'\fR upgraded to version 1.9715 with various build improvements
685 (including VMS) and minor platform-specific bug fixes (including
686 for HP-UX 11 ia64).
687 .IP \(bu 4
688 \&\f(CW\*(C`threads\*(C'\fR upgraded to 1.71
689 .RS 4
690 .IP \(bu 4
691 new thread state information methods: \f(CW\*(C`is_running\*(C'\fR, \f(CW\*(C`is_detached\*(C'\fR
692 and \f(CW\*(C`is_joinable\*(C'\fR. \f(CW\*(C`list\*(C'\fR method enhanced to return running or joinable
693 threads.
694 .IP \(bu 4
695 new thread signal method: \f(CW\*(C`kill\*(C'\fR
696 .IP \(bu 4
697 added capability to specify thread stack size.
698 .IP \(bu 4
699 added capability to control thread exiting behavior. Added a new \f(CW\*(C`exit\*(C'\fR
700 method.
701 .RE
702 .RS 4
703 .RE
704 .IP \(bu 4
705 \&\f(CW\*(C`threads::shared\*(C'\fR upgraded to version 1.27
706 .RS 4
707 .IP \(bu 4
708 smaller and faster implementation that eliminates one internal structure and
709 the consequent level of indirection.
710 .IP \(bu 4
711 user locks are now stored in a safer manner.
712 .IP \(bu 4
713 new function \f(CW\*(C`shared_clone\*(C'\fR creates a copy of an object leaving
714 shared elements as-is and deep-cloning non-shared elements.
715 .IP \(bu 4
716 added new \f(CW\*(C`is_shared\*(C'\fR method.
717 .RE
718 .RS 4
719 .RE
720 .IP \(bu 4
721 \&\f(CW\*(C`Unicode::Normalize\*(C'\fR upgraded to version 1.02
722 .IP \(bu 4
723 \&\f(CW\*(C`Unicode::UCD\*(C'\fR upgraded to version 0.25
724 .IP \(bu 4
725 \&\f(CW\*(C`warnings\*(C'\fR upgraded to version 1.05_01
726 .IP \(bu 4
727 \&\f(CW\*(C`Win32\*(C'\fR upgraded to version 0.38
728 .RS 4
729 .IP \(bu 4
730 added new function \f(CW\*(C`GetCurrentProcessId\*(C'\fR which returns the regular Windows
731 process identifier of the current process, even when called from within a fork.
732 .RE
733 .RS 4
734 .RE
735 .IP \(bu 4
736 \&\f(CW\*(C`XSLoader\*(C'\fR upgraded to version 0.10
737 .IP \(bu 4
738 \&\f(CW\*(C`XS::APItest\*(C'\fR and \f(CW\*(C`XS::Typemap\*(C'\fR are for internal use only and hence
739 no longer installed. Many more tests have been added to \f(CW\*(C`XS::APItest\*(C'\fR.
740 .SH "Utility Changes"
741 .IX Header "Utility Changes"
742 .SS "debugger upgraded to version 1.31"
743 .IX Subsection "debugger upgraded to version 1.31"
744 .IP \(bu 4
745 Andreas König contributed two functions to save and load the debugger
746 history.
747 .IP \(bu 4
748 \&\f(CW\*(C`NEXT::AUTOLOAD\*(C'\fR no longer emits warnings under the debugger.
749 .IP \(bu 4
750 The debugger should now correctly find tty the device on OS X 10.5 and VMS
751 when the program \f(CW\*(C`fork\*(C'\fRs.
752 .IP \(bu 4
753 LVALUE subs now work inside the debugger.
754 .SS \fIperlthanks\fP
755 .IX Subsection "perlthanks"
756 Perl 5.8.9 adds a new utility \fIperlthanks\fR, which is a variant of \fIperlbug\fR,
757 but for sending non-bug-reports to the authors and maintainers of Perl.
758 Getting nothing but bug reports can become a bit demoralising \- we'll see if
759 this changes things.
760 .SS \fIperlbug\fP
761 .IX Subsection "perlbug"
762 \&\fIperlbug\fR now checks if you're reporting about a non-core module and suggests
763 you report it to the CPAN author instead.
764 .SS \fIh2xs\fP
765 .IX Subsection "h2xs"
766 .IP \(bu 4
767 won't define an empty string as a constant [RT #25366]
768 .IP \(bu 4
769 has examples for \f(CW\*(C`h2xs \-X\*(C'\fR
770 .SS \fIh2ph\fP
771 .IX Subsection "h2ph"
772 .IP \(bu 4
773 now attempts to deal sensibly with the difference in path implications
774 between \f(CW""\fR and \f(CW\*(C`<>\*(C'\fR quoting in \f(CW\*(C`#include\*(C'\fR statements.
775 .IP \(bu 4
776 now generates correct code for \f(CW\*(C`#if defined A || defined B\*(C'\fR
777 [RT #39130]
778 .SH "New Documentation"
779 .IX Header "New Documentation"
780 As usual, the documentation received its share of corrections, clarifications
781 and other nitfixes. More \f(CW\*(C`\*(C'\fR tags were added for indexing.
782 .IX Xref "..."
783 .PP
784 perlunitut is a tutorial written by Juerd Waalboer on Unicode-related
785 terminology and how to correctly handle Unicode in Perl scripts.
786 .PP
787 perlunicode is updated in section user defined properties.
788 .PP
789 perluniintro has been updated in the example of detecting data that is not
790 valid in particular encoding.
791 .PP
792 perlcommunity provides an overview of the Perl Community along with further
793 resources.
794 .PP
795 CORE documents the pseudo-namespace for Perl's core routines.
796 .SH "Changes to Existing Documentation"
797 .IX Header "Changes to Existing Documentation"
798 perlglossary adds \fIdeprecated modules and features\fR and \fIto be dropped modules\fR.
799 .PP
800 perlhack has been updated and added resources on smoke testing.
801 .PP
802 The Perl FAQs (\fIperlfaq1\fR..\fIperlfaq9\fR) have been updated.
803 .PP
804 perlcheat is updated with better details on \f(CW\*(C`\ew\*(C'\fR, \f(CW\*(C`\ed\*(C'\fR, and \f(CW\*(C`\es\*(C'\fR.
805 .PP
806 perldebug is updated with information on how to call the debugger.
807 .PP
808 perldiag documentation updated with \fIsubroutine with an ampersand\fR on the
809 argument to \f(CW\*(C`exists\*(C'\fR and \f(CW\*(C`delete\*(C'\fR and also several terminology updates on
810 warnings.
811 .PP
812 perlfork documents the limitation of \f(CW\*(C`exec\*(C'\fR inside pseudo-processes.
813 .PP
814 perlfunc:
815 .IP \(bu 4
816 Documentation is fixed in section \f(CW\*(C`caller\*(C'\fR and \f(CW\*(C`pop\*(C'\fR.
817 .IP \(bu 4
818 Function \f(CW\*(C`alarm\*(C'\fR now mentions \f(CW\*(C`Time::HiRes::ualarm\*(C'\fR in preference
819 to \f(CW\*(C`select\*(C'\fR.
820 .IP \(bu 4
821 Regarding precedence in \f(CW\*(C`\-X\*(C'\fR, filetest operators are the same as unary
822 operators, but not regarding parsing and parentheses (spotted by Eirik Berg
823 Hanssen).
824 .IP \(bu 4
825 \&\f(CW\*(C`reverse\*(C'\fR function documentation received scalar context examples.
826 .PP
827 perllocale documentation is adjusted for number localization and
828 \&\f(CW\*(C`POSIX::setlocale\*(C'\fR to fix Debian bug #379463.
829 .PP
830 perlmodlib is updated with \f(CW\*(C`CPAN::API::HOWTO\*(C'\fR and
831 \&\f(CW\*(C`Sys::Syslog::win32::Win32\*(C'\fR
832 .PP
833 perlre documentation updated to reflect the differences between
834 \&\f(CW\*(C`[[:xxxxx:]]\*(C'\fR and \f(CW\*(C`\ep{IsXxxxx}\*(C'\fR matches. Also added section on \f(CW\*(C`/g\*(C'\fR and
835 \&\f(CW\*(C`/c\*(C'\fR modifiers.
836 .PP
837 perlreguts describe the internals of the regular expressions engine. It has
838 been contributed by Yves Orton.
839 .PP
840 perlrebackslash describes all perl regular expression backslash and escape
841 sequences.
842 .PP
843 perlrecharclass describes the syntax and use of character classes in
844 Perl Regular Expressions.
845 .PP
846 perlrun is updated to clarify on the hash seed \fIPERL_HASH_SEED\fR. Also more
847 information in options \f(CW\*(C`\-x\*(C'\fR and \f(CW\*(C`\-u\*(C'\fR.
848 .PP
849 perlsub example is updated to use a lexical variable for \f(CW\*(C`opendir\*(C'\fR syntax.
850 .PP
851 perlvar fixes confusion about real GID \f(CW$(\fR and effective GID \f(CW$)\fR.
852 .PP
853 Perl thread tutorial example is fixed in section
854 "Queues: Passing Data Around" in perlthrtut and perlthrtut.
855 .PP
856 perlhack documentation extensively improved by Jarkko Hietaniemi and others.
857 .PP
858 perltoot provides information on modifying \f(CW@UNIVERSAL::ISA\fR.
859 .PP
860 perlport documentation extended to include different \f(CW\*(C`kill(\-9, ...)\*(C'\fR
861 semantics on Windows. It also clearly states \f(CW\*(C`dump\*(C'\fR is not supported on Win32
862 and cygwin.
863 .PP
864 \&\fIINSTALL\fR has been updated and modernised.
865 .SH "Performance Enhancements"
866 .IX Header "Performance Enhancements"
867 .IP \(bu 4
868 The default since perl 5.000 has been for perl to create an empty scalar
869 with every new typeglob. The increased use of lexical variables means that
870 most are now unused. Thanks to Nicholas Clark's efforts, Perl can now be
871 compiled with \f(CW\*(C`\-DPERL_DONT_CREATE_GVSV\*(C'\fR to avoid creating these empty scalars.
872 This will significantly decrease the number of scalars allocated for all
873 configurations, and the number of scalars that need to be copied for ithread
874 creation. Whilst this option is binary compatible with existing perl
875 installations, it does change a long-standing assumption about the
876 internals, hence it is not enabled by default, as some third party code may
877 rely on the old behaviour.
878 .Sp
879 We would recommend testing with this configuration on new deployments of
880 perl, particularly for multi-threaded servers, to see whether all third party
881 code is compatible with it, as this configuration may give useful performance
882 improvements. For existing installations we would not recommend changing to
883 this configuration unless thorough testing is performed before deployment.
884 .IP \(bu 4
885 \&\f(CW\*(C`diagnostics\*(C'\fR no longer uses \f(CW$&\fR, which results in large speedups
886 for regexp matching in all code using it.
887 .IP \(bu 4
888 Regular expressions classes of a single character are now treated the same as
889 if the character had been used as a literal, meaning that code that uses
890 char-classes as an escaping mechanism will see a speedup. (Yves Orton)
891 .IP \(bu 4
892 Creating anonymous array and hash references (ie. \f(CW\*(C`[]\*(C'\fR and \f(CW\*(C`{}\*(C'\fR) now incurs
893 no more overhead than creating an anonymous list or hash. Nicholas Clark
894 provided changes with a saving of two ops and one stack push, which was measured
895 as a slightly better than 5% improvement for these operations.
896 .IP \(bu 4
897 Many calls to \f(CWstrlen()\fR have been eliminated, either because the length was
898 already known, or by adopting or enhancing APIs that pass lengths. This has
899 been aided by the adoption of a \f(CWmy_sprintf()\fR wrapper, which returns the
900 correct C89 value \- the length of the formatted string. Previously we could
901 not rely on the return value of \f(CWsprintf()\fR, because on some ancient but
902 extant platforms it still returns \f(CW\*(C`char *\*(C'\fR.
903 .IP \(bu 4
904 \&\f(CW\*(C`index\*(C'\fR is now faster if the search string is stored in UTF\-8 but only contains
905 characters in the Latin\-1 range.
906 .IP \(bu 4
907 The Unicode swatch cache inside the regexp engine is now used. (the lookup had
908 a key mismatch, present since the initial implementation). [RT #42839]
909 .SH "Installation and Configuration Improvements"
910 .IX Header "Installation and Configuration Improvements"
911 .SS "Relocatable installations"
912 .IX Subsection "Relocatable installations"
913 There is now \fIConfigure\fR support for creating a relocatable perl tree. If
914 you \fIConfigure\fR with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR, then the paths in \f(CW@INC\fR (and
915 everything else in \f(CW%Config\fR) can be optionally located via the path of the
916 \&\fIperl\fR executable.
917 .PP
918 At start time, if any paths in \f(CW@INC\fR or \f(CW\*(C`Config\*(C'\fR that \fIConfigure\fR marked
919 as relocatable (by starting them with \f(CW".../"\fR), then they are prefixed the
920 directory of \f(CW$^X\fR. This allows the relocation can be configured on a
921 per-directory basis, although the default with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR is that
922 everything is relocated. The initial install is done to the original configured
923 prefix.
924 .SS "Configuration improvements"
925 .IX Subsection "Configuration improvements"
926 \&\fIConfigure\fR is now better at removing temporary files. Tom Callaway
927 (from RedHat) also contributed patches that complete the set of flags
928 passed to the compiler and the linker, in particular that \f(CW\*(C`\-fPIC\*(C'\fR is now
929 enabled on Linux. It will also croak when your \fI/dev/null\fR isn't a device.
930 .PP
931 A new configuration variable \f(CW\*(C`d_pseudofork\*(C'\fR has been to \fIConfigure\fR, and is
932 available as \f(CW$Config{d_pseudofork}\fR in the \f(CW\*(C`Config\*(C'\fR module. This
933 distinguishes real \f(CW\*(C`fork\*(C'\fR support from the pseudofork emulation used on
934 Windows platforms.
935 .PP
936 \&\fIConfig.pod\fR and \fIconfig.sh\fR are now placed correctly for cross-compilation.
937 .PP
938 \&\f(CW$Config{useshrplib}\fR is now 'true' rather than 'yes' when using a shared perl
939 library.
940 .SS "Compilation improvements"
941 .IX Subsection "Compilation improvements"
942 Parallel makes should work properly now, although there may still be problems
943 if \f(CW\*(C`make test\*(C'\fR is instructed to run in parallel.
944 .PP
945 Many compilation warnings have been cleaned up. A very stubborn compiler
946 warning in \f(CWS_emulate_eaccess()\fR was killed after six attempts.
947 \&\fIg++\fR support has been tuned, especially for FreeBSD.
948 .PP
949 \&\fImkppport\fR has been integrated, and all \fIppport.h\fR files in the core will now
950 be autogenerated at build time (and removed during cleanup).
951 .SS "Installation improvements"
952 .IX Subsection "Installation improvements"
953 \&\fIinstallman\fR now works with \f(CW\*(C`\-Duserelocatableinc\*(C'\fR and \f(CW\*(C`DESTDIR\*(C'\fR.
954 .PP
955 \&\fIinstallperl\fR no longer installs:
956 .IP \(bu 4
957 static library files of statically linked extensions when a shared perl library
958 is being used. (They are not needed. See "Windows" below).
959 .IP \(bu 4
960 \&\fISIGNATURE\fR and \fIPAUSE*.pub\fR (CPAN files)
961 .IP \(bu 4
962 \&\fINOTES\fR and \fIPATCHING\fR (ExtUtils files)
963 .IP \(bu 4
964 \&\fIperlld\fR and \fIld2\fR (Cygwin files)
965 .SS "Platform Specific Changes"
966 .IX Subsection "Platform Specific Changes"
967 There are improved hints for AIX, Cygwin, DEC/OSF, FreeBSD, HP/UX, Irix 6
968 Linux, MachTen, NetBSD, OS/390, QNX, SCO, Solaris, SunOS, System V Release 5.x
969 (UnixWare 7, OpenUNIX 8), Ultrix, UMIPS, uts and VOS.
970 .PP
971 \fIFreeBSD\fR
972 .IX Subsection "FreeBSD"
973 .IP \(bu 4
974 Drop \f(CW\*(C`\-std=c89\*(C'\fR and \f(CW\*(C`\-ansi\*(C'\fR if using \f(CW\*(C`long long\*(C'\fR as the main integral type,
975 else in FreeBSD 6.2 (and perhaps other releases), system headers do not
976 declare some functions required by perl.
977 .PP
978 \fISolaris\fR
979 .IX Subsection "Solaris"
980 .IP \(bu 4
981 Starting with Solaris 10, we do not want versioned shared libraries, because
982 those often indicate a private use only library. These problems could often
983 be triggered when SUNWbdb (Berkeley DB) was installed. Hence if Solaris 10
984 is detected set \f(CW\*(C`ignore_versioned_solibs=y\*(C'\fR.
985 .PP
986 \fIVMS\fR
987 .IX Subsection "VMS"
988 .IP \(bu 4
989 Allow IEEE math to be deselected on OpenVMS I64 (but it remains the default).
990 .IP \(bu 4
991 Record IEEE usage in \f(CW\*(C`config.h\*(C'\fR
992 .IP \(bu 4
993 Help older VMS compilers by using \f(CW\*(C`ccflags\*(C'\fR when building \f(CW\*(C`munchconfig.exe\*(C'\fR.
994 .IP \(bu 4
995 Don't try to build old \f(CW\*(C`Thread\*(C'\fR extension on VMS when \f(CW\*(C`\-Duseithreads\*(C'\fR has
996 been chosen.
997 .IP \(bu 4
998 Passing a raw string of "NaN" to \fInawk\fR causes a core dump \- so the string
999 has been changed to "*NaN*"
1000 .IP \(bu 4
1001 \&\fIt/op/stat.t\fR tests will now test hard links on VMS if they are supported.
1002 .PP
1003 \fIWindows\fR
1004 .IX Subsection "Windows"
1005 .IP \(bu 4
1006 When using a shared perl library \fIinstallperl\fR no longer installs static
1007 library files, import library files and export library files (of statically
1008 linked extensions) and empty bootstrap files (of dynamically linked
1009 extensions). This fixes a problem building PAR-Packer on Win32 with a debug
1010 build of perl.
1011 .IP \(bu 4
1012 Various improvements to the win32 build process, including support for Visual
1013 C++ 2005 Express Edition (aka Visual C++ 8.x).
1014 .IP \(bu 4
1015 \&\fIperl.exe\fR will now have an icon if built with MinGW or Borland.
1016 .IP \(bu 4
1017 Improvements to the perl\-static.exe build process.
1018 .IP \(bu 4
1019 Add Win32 makefile option to link all extensions statically.
1020 .IP \(bu 4
1021 The \fIWinCE\fR directory has been merged into the \fIWin32\fR directory.
1022 .IP \(bu 4
1023 \&\f(CW\*(C`setlocale\*(C'\fR tests have been re-enabled for Windows XP onwards.
1024 .SH "Selected Bug Fixes"
1025 .IX Header "Selected Bug Fixes"
1026 .SS Unicode
1027 .IX Subsection "Unicode"
1028 Many many bugs related to the internal Unicode implementation (UTF\-8) have
1029 been fixed. In particular, long standing bugs related to returning Unicode
1030 via \f(CW\*(C`tie\*(C'\fR, overloading or \f(CW$@\fR are now gone, some of which were never
1031 reported.
1032 .PP
1033 \&\f(CW\*(C`unpack\*(C'\fR will internally convert the string back from UTF\-8 on numeric types.
1034 This is a compromise between the full consistency now in 5.10, and the current
1035 behaviour, which is often used as a "feature" on string types.
1036 .PP
1037 Using \f(CW\*(C`:crlf\*(C'\fR and \f(CW\*(C`UTF\-16\*(C'\fR IO layers together will now work.
1038 .PP
1039 Fixed problems with \f(CW\*(C`split\*(C'\fR, Unicode \f(CW\*(C`/\es+/\*(C'\fR and \f(CW\*(C`/ \e0/\*(C'\fR.
1040 .PP
1041 Fixed bug RT #40641 \- encoding of Unicode characters in regular expressions.
1042 .PP
1043 Fixed a bug where using certain patterns in a regexp led to a panic.
1044 [RT #45337]
1045 .PP
1046 Perl no longer segfaults (due to infinite internal recursion) if the locale's
1047 character is not UTF\-8 [RT #41442]:
1048 .PP
1049 .Vb 2
1050 \& use open \*(Aq:locale\*(Aq;
1051 \& print STDERR "\ex{201e}"; # &bdquo;
1052 .Ve
1053 .SS PerlIO
1054 .IX Subsection "PerlIO"
1055 Inconsistencies have been fixed in the reference counting PerlIO uses to keep
1056 track of Unix file descriptors, and the API used by XS code to manage getting
1057 and releasing \f(CW\*(C`FILE *\*(C'\fRs
1058 .SS Magic
1059 .IX Subsection "Magic"
1060 Several bugs have been fixed in Magic, the internal system used to implement
1061 features such as \f(CW\*(C`tie\*(C'\fR, tainting and threads sharing.
1062 .PP
1063 \&\f(CW\*(C`undef @array\*(C'\fR on a tied array now correctly calls the \f(CW\*(C`CLEAR\*(C'\fR method.
1064 .PP
1065 Some of the bitwise ops were not checking whether their arguments were magical
1066 before using them. [RT #24816]
1067 .PP
1068 Magic is no longer invoked twice by the expression \f(CW\*(C`\e&$x\*(C'\fR
1069 .PP
1070 A bug with assigning large numbers and tainting has been resolved.
1071 [RT #40708]
1072 .PP
1073 A new entry has been added to the MAGIC vtable \- \f(CW\*(C`svt_local\*(C'\fR. This is used
1074 when copying magic to the new value during \f(CW\*(C`local\*(C'\fR, allowing certain problems
1075 with localising shared variables to be resolved.
1076 .PP
1077 For the implementation details, see "Magic Virtual Tables" in perlguts.
1078 .SS "Reblessing overloaded objects now works"
1079 .IX Subsection "Reblessing overloaded objects now works"
1080 Internally, perl object-ness is on the referent, not the reference, even
1081 though methods can only be called via a reference. However, the original
1082 implementation of overloading stored flags related to overloading on the
1083 reference, relying on the flags being copied when the reference was copied,
1084 or set at the creation of a new reference. This manifests in a bug \- if you
1085 rebless an object from a class that has overloading, into one that does not,
1086 then any other existing references think that they (still) point to an
1087 overloaded object, choose these C code paths, and then throw errors.
1088 Analogously, blessing into an overloaded class when other references exist will
1089 result in them not using overloading.
1090 .PP
1091 The implementation has been fixed for 5.10, but this fix changes the semantics
1092 of flag bits, so is not binary compatible, so can't be applied to 5.8.9.
1093 However, 5.8.9 has a work-around that implements the same bug fix. If the
1094 referent has multiple references, then all the other references are located and
1095 corrected. A full search is avoided whenever possible by scanning lexicals
1096 outwards from the current subroutine, and the argument stack.
1097 .PP
1098 A certain well known Linux vendor applied incomplete versions of this bug fix
1099 to their \fI/usr/bin/perl\fR and then prematurely closed bug reports about
1100 performance issues without consulting back upstream. This not being enough,
1101 they then proceeded to ignore the necessary fixes to these unreleased changes
1102 for 11 months, until massive pressure was applied by their long-suffering
1103 paying customers, catalysed by the failings being featured on a prominent blog
1104 and Slashdot.
1105 .ie n .SS """strict"" now propagates correctly into string evals"
1106 .el .SS "\f(CWstrict\fP now propagates correctly into string evals"
1107 .IX Subsection "strict now propagates correctly into string evals"
1108 Under 5.8.8 and earlier:
1109 .PP
1110 .Vb 3
1111 \& $ perl5.8.8 \-e \*(Aquse strict; eval "use foo bar" or die $@\*(Aq
1112 \& Can\*(Aqt locate foo.pm in @INC (@INC contains: ... .) at (eval 1) line 2.
1113 \& BEGIN failed\-\-compilation aborted at (eval 1) line 2.
1114 .Ve
1115 .PP
1116 Under 5.8.9 and later:
1117 .PP
1118 .Vb 2
1119 \& $ perl5.8.9 \-e \*(Aquse strict; eval "use foo bar" or die $@\*(Aq
1120 \& Bareword "bar" not allowed while "strict subs" in use at (eval 1) line 1.
1121 .Ve
1122 .PP
1123 This may cause problems with programs that parse the error message and rely
1124 on the buggy behaviour.
1125 .SS "Other fixes"
1126 .IX Subsection "Other fixes"
1127 .IP \(bu 4
1128 The tokenizer no longer treats \f(CW\*(C`=cute\*(C'\fR (and other words beginning
1129 with \f(CW\*(C`=cut\*(C'\fR) as a synonym for \f(CW\*(C`=cut\*(C'\fR.
1130 .IP \(bu 4
1131 Calling \f(CW\*(C`CORE::require\*(C'\fR
1132 .Sp
1133 \&\f(CW\*(C`CORE::require\*(C'\fR and \f(CW\*(C`CORE::do\*(C'\fR were always parsed as \f(CW\*(C`require\*(C'\fR and \f(CW\*(C`do\*(C'\fR
1134 when they were overridden. This is now fixed.
1135 .IP \(bu 4
1136 Stopped memory leak on long \fI/etc/groups\fR entries.
1137 .IP \(bu 4
1138 \&\f(CW\*(C`while (my $x ...) { ...; redo }\*(C'\fR shouldn't \f(CW\*(C`undef $x\*(C'\fR.
1139 .Sp
1140 In the presence of \f(CW\*(C`my\*(C'\fR in the conditional of a \f(CWwhile()\fR, \f(CWuntil()\fR,
1141 or \f(CWfor(;;)\fR loop, we now add an extra scope to the body so that \f(CW\*(C`redo\*(C'\fR
1142 doesn't \f(CW\*(C`undef\*(C'\fR the lexical.
1143 .IP \(bu 4
1144 The \f(CW\*(C`encoding\*(C'\fR pragma now correctly ignores anything following an \f(CW\*(C`@\*(C'\fR
1145 character in the \f(CW\*(C`LC_ALL\*(C'\fR and \f(CW\*(C`LANG\*(C'\fR environment variables. [RT # 49646]
1146 .IP \(bu 4
1147 A segfault observed with some \fIgcc\fR 3.3 optimisations is resolved.
1148 .IP \(bu 4
1149 A possible segfault when \f(CW\*(C`unpack\*(C'\fR used in scalar context with \f(CW\*(C`()\*(C'\fR groups
1150 is resolved. [RT #50256]
1151 .IP \(bu 4
1152 Resolved issue where \f(CW$!\fR could be changed by a signal handler interrupting
1153 a \f(CW\*(C`system\*(C'\fR call.
1154 .IP \(bu 4
1155 Fixed bug RT #37886, symbolic dereferencing was allowed in the argument of
1156 \&\f(CW\*(C`defined\*(C'\fR even under the influence of \f(CW\*(C`use strict \*(Aqrefs\*(Aq\*(C'\fR.
1157 .IP \(bu 4
1158 Fixed bug RT #43207, where \f(CW\*(C`lc\*(C'\fR/\f(CW\*(C`uc\*(C'\fR inside \f(CW\*(C`sort\*(C'\fR affected the return
1159 value.
1160 .IP \(bu 4
1161 Fixed bug RT #45607, where \f(CW\*(C`*{"BONK"} = \e&{"BONK"}\*(C'\fR didn't work correctly.
1162 .IP \(bu 4
1163 Fixed bug RT #35878, croaking from a XSUB called via \f(CW\*(C`goto &xsub\*(C'\fR corrupts perl
1164 internals.
1165 .IP \(bu 4
1166 Fixed bug RT #32539, \fIDynaLoader.o\fR is moved into \fIlibperl.so\fR to avoid the
1167 need to statically link DynaLoader into the stub perl executable. With this
1168 \&\fIlibperl.so\fR provides everything needed to get a functional embedded perl
1169 interpreter to run.
1170 .IP \(bu 4
1171 Fix bug RT #36267 so that assigning to a tied hash doesn't change the
1172 underlying hash.
1173 .IP \(bu 4
1174 Fix bug RT #6006, regexp replaces using large replacement variables
1175 fail some of the time, \fIi.e.\fR when substitution contains something
1176 like \f(CW\*(C`${10}\*(C'\fR (note the bracket) instead of just \f(CW$10\fR.
1177 .IP \(bu 4
1178 Fix bug RT #45053, \f(CWPerl_newCONSTSUB()\fR is now thread safe.
1179 .SS "Platform Specific Fixes"
1180 .IX Subsection "Platform Specific Fixes"
1181 \fIDarwin / MacOS X\fR
1182 .IX Subsection "Darwin / MacOS X"
1183 .IP \(bu 4
1184 Various improvements to 64 bit builds.
1185 .IP \(bu 4
1186 Mutex protection added in \f(CWPerlIOStdio_close()\fR to avoid race conditions.
1187 Hopefully this fixes failures in the threads tests \fIfree.t\fR and \fIblocks.t\fR.
1188 .IP \(bu 4
1189 Added forked terminal support to the debugger, with the ability to update the
1190 window title.
1191 .PP
1192 \fIOS/2\fR
1193 .IX Subsection "OS/2"
1194 .IP \(bu 4
1195 A build problem with specifying \f(CW\*(C`USE_MULTI\*(C'\fR and \f(CW\*(C`USE_ITHREADS\*(C'\fR but without
1196 \&\f(CW\*(C`USE_IMP_SYS\*(C'\fR has been fixed.
1197 .IP \(bu 4
1198 \&\f(CW\*(C`OS2::REXX\*(C'\fR upgraded to version 1.04
1199 .PP
1200 \fITru64\fR
1201 .IX Subsection "Tru64"
1202 .IP \(bu 4
1203 Aligned floating point build policies for \fIcc\fR and \fIgcc\fR.
1204 .PP
1205 \fIRedHat Linux\fR
1206 .IX Subsection "RedHat Linux"
1207 .IP \(bu 4
1208 Revisited a patch from 5.6.1 for RH7.2 for Intel's \fIicc\fR [RT #7916], added an
1209 additional check for \f(CW$Config{gccversion}\fR.
1210 .PP
1211 \fISolaris/i386\fR
1212 .IX Subsection "Solaris/i386"
1213 .IP \(bu 4
1214 Use \f(CW\*(C`\-DPTR_IS_LONG\*(C'\fR when using 64 bit integers
1215 .PP
1216 \fIVMS\fR
1217 .IX Subsection "VMS"
1218 .IP \(bu 4
1219 Fixed \f(CW\*(C`PerlIO::Scalar\*(C'\fR in-memory file record-style reads.
1220 .IP \(bu 4
1221 pipe shutdown at process exit should now be more robust.
1222 .IP \(bu 4
1223 Bugs in VMS exit handling tickled by \f(CW\*(C`Test::Harness\*(C'\fR 2.64 have been fixed.
1224 .IP \(bu 4
1225 Fix \f(CWfcntl()\fR locking capability test in \fIconfigure.com\fR.
1226 .IP \(bu 4
1227 Replaced \f(CW\*(C`shrplib=\*(Aqdefine\*(Aq\*(C'\fR with \f(CW\*(C`useshrplib=\*(Aqtrue\*(Aq\*(C'\fR on VMS.
1228 .PP
1229 \fIWindows\fR
1230 .IX Subsection "Windows"
1231 .IP \(bu 4
1232 \&\f(CW\*(C`File::Find\*(C'\fR used to fail when the target directory is a bare drive letter and
1233 \&\f(CW\*(C`no_chdir\*(C'\fR is 1 (the default is 0). [RT #41555]
1234 .IP \(bu 4
1235 A build problem with specifying \f(CW\*(C`USE_MULTI\*(C'\fR and \f(CW\*(C`USE_ITHREADS\*(C'\fR but without
1236 \&\f(CW\*(C`USE_IMP_SYS\*(C'\fR has been fixed.
1237 .IP \(bu 4
1238 The process id is no longer truncated to 16 bits on some Windows platforms
1239 ( http://bugs.activestate.com/show_bug.cgi?id=72443 )
1240 .IP \(bu 4
1241 Fixed bug RT #54828 in \fIperlio.c\fR where calling \f(CW\*(C`binmode\*(C'\fR on Win32 and Cygwin
1242 may cause a segmentation fault.
1243 .SS "Smaller fixes"
1244 .IX Subsection "Smaller fixes"
1245 .IP \(bu 4
1246 It is now possible to overload \f(CW\*(C`eq\*(C'\fR when using \f(CW\*(C`nomethod\*(C'\fR.
1247 .IP \(bu 4
1248 Various problems using \f(CW\*(C`overload\*(C'\fR with 64 bit integers corrected.
1249 .IP \(bu 4
1250 The reference count of \f(CW\*(C`PerlIO\*(C'\fR file descriptors is now correctly handled.
1251 .IP \(bu 4
1252 On VMS, escaped dots will be preserved when converted to Unix syntax.
1253 .IP \(bu 4
1254 \&\f(CW\*(C`keys %+\*(C'\fR no longer throws an \f(CW\*(Aqambiguous\*(Aq\fR warning.
1255 .IP \(bu 4
1256 Using \f(CW\*(C`#!perl \-d\*(C'\fR could trigger an assertion, which has been fixed.
1257 .IP \(bu 4
1258 Don't stringify tied code references in \f(CW@INC\fR when calling \f(CW\*(C`require\*(C'\fR.
1259 .IP \(bu 4
1260 Code references in \f(CW@INC\fR report the correct file name when \f(CW\*(C`_\|_FILE_\|_\*(C'\fR is
1261 used.
1262 .IP \(bu 4
1263 Width and precision in sprintf didn't handle characters above 255 correctly.
1264 [RT #40473]
1265 .IP \(bu 4
1266 List slices with indices out of range now work more consistently.
1267 [RT #39882]
1268 .IP \(bu 4
1269 A change introduced with perl 5.8.1 broke the parsing of arguments of the form
1270 \&\f(CW\*(C`\-foo=bar\*(C'\fR with the \f(CW\*(C`\-s\*(C'\fR on the <#!> line. This has been fixed. See
1271 http://bugs.activestate.com/show_bug.cgi?id=43483
1272 .IP \(bu 4
1273 \&\f(CW\*(C`tr///\*(C'\fR is now threadsafe. Previously it was storing a swash inside its OP,
1274 rather than in a pad.
1275 .IP \(bu 4
1276 \&\fIpod2html\fR labels anchors more consistently and handles nested definition
1277 lists better.
1278 .IP \(bu 4
1279 \&\f(CW\*(C`threads\*(C'\fR cleanup veto has been extended to include \f(CWperl_free()\fR and
1280 \&\f(CWperl_destruct()\fR
1281 .IP \(bu 4
1282 On some systems, changes to \f(CW$ENV{TZ}\fR would not always be
1283 respected by the underlying calls to \f(CWlocaltime_r()\fR. Perl now
1284 forces the inspection of the environment on these systems.
1285 .IP \(bu 4
1286 The special variable \f(CW$^R\fR is now more consistently set when executing
1287 regexps using the \f(CW\*(C`(?{...})\*(C'\fR construct. In particular, it will still
1288 be set even if backreferences or optional sub-patterns \f(CW\*(C`(?:...)?\*(C'\fR are
1289 used.
1290 .SH "New or Changed Diagnostics"
1291 .IX Header "New or Changed Diagnostics"
1292 .ie n .SS "panic: sv_chop %s"
1293 .el .SS "panic: sv_chop \f(CW%s\fP"
1294 .IX Subsection "panic: sv_chop %s"
1295 This new fatal error occurs when the C routine \f(CWPerl_sv_chop()\fR was passed a
1296 position that is not within the scalar's string buffer. This is caused by
1297 buggy XS code, and at this point recovery is not possible.
1298 .SS "Maximal count of pending signals (%s) exceeded"
1299 .IX Subsection "Maximal count of pending signals (%s) exceeded"
1300 This new fatal error occurs when the perl process has to abort due to
1301 too many pending signals, which is bound to prevent perl from being
1302 able to handle further incoming signals safely.
1303 .ie n .SS "panic: attempt to call %s in %s"
1304 .el .SS "panic: attempt to call \f(CW%s\fP in \f(CW%s\fP"
1305 .IX Subsection "panic: attempt to call %s in %s"
1306 This new fatal error occurs when the ACL version file test operator is used
1307 where it is not available on the current platform. Earlier checks mean that
1308 it should never be possible to get this.
1309 .SS "FETCHSIZE returned a negative value"
1310 .IX Subsection "FETCHSIZE returned a negative value"
1311 New error indicating that a tied array has claimed to have a negative
1312 number of elements.
1313 .ie n .SS "Can't upgrade %s (%d) to %d"
1314 .el .SS "Can't upgrade \f(CW%s\fP (%d) to \f(CW%d\fP"
1315 .IX Subsection "Can't upgrade %s (%d) to %d"
1316 Previously the internal error from the SV upgrade code was the less informative
1317 \&\fICan't upgrade that kind of scalar\fR. It now reports the current internal type,
1318 and the new type requested.
1319 .ie n .SS "%s argument is not a HASH or ARRAY element or a subroutine"
1320 .el .SS "\f(CW%s\fP argument is not a HASH or ARRAY element or a subroutine"
1321 .IX Subsection "%s argument is not a HASH or ARRAY element or a subroutine"
1322 This error, thrown if an invalid argument is provided to \f(CW\*(C`exists\*(C'\fR now
1323 correctly includes "or a subroutine". [RT #38955]
1324 .ie n .SS "Cannot make the non-overridable builtin %s fatal"
1325 .el .SS "Cannot make the non-overridable builtin \f(CW%s\fP fatal"
1326 .IX Subsection "Cannot make the non-overridable builtin %s fatal"
1327 This error in \f(CW\*(C`Fatal\*(C'\fR previously did not show the name of the builtin in
1328 question (now represented by \f(CW%s\fR above).
1329 .ie n .SS "Unrecognized character '%s' in column %d"
1330 .el .SS "Unrecognized character '%s' in column \f(CW%d\fP"
1331 .IX Subsection "Unrecognized character '%s' in column %d"
1332 This error previously did not state the column.
1333 .SS "Offset outside string"
1334 .IX Subsection "Offset outside string"
1335 This can now also be generated by a \f(CW\*(C`seek\*(C'\fR on a file handle using
1336 \&\f(CW\*(C`PerlIO::scalar\*(C'\fR.
1337 .SS "Invalid escape in the specified encoding in regexp; marked by <\-\- HERE in m/%s/"
1338 .IX Subsection "Invalid escape in the specified encoding in regexp; marked by <-- HERE in m/%s/"
1339 New error, introduced as part of the fix to RT #40641 to handle encoding
1340 of Unicode characters in regular expression comments.
1341 .SS "Your machine doesn't support dump/undump"
1342 .IX Subsection "Your machine doesn't support dump/undump"
1343 A more informative fatal error issued when calling \f(CW\*(C`dump\*(C'\fR on Win32 and
1344 Cygwin. (Given that the purpose of \f(CW\*(C`dump\*(C'\fR is to abort with a core dump,
1345 and core dumps can't be produced on these platforms, this is more useful than
1346 silently exiting.)
1347 .SH "Changed Internals"
1348 .IX Header "Changed Internals"
1349 The perl sources can now be compiled with a C++ compiler instead of a C
1350 compiler. A necessary implementation details is that under C++, the macro
1351 \&\f(CW\*(C`XS\*(C'\fR used to define XSUBs now includes an \f(CW\*(C`extern "C"\*(C'\fR definition. A side
1352 effect of this is that \fBC++\fR code that used the construction
1353 .PP
1354 .Vb 1
1355 \& typedef XS(SwigPerlWrapper);
1356 .Ve
1357 .PP
1358 now needs to be written
1359 .PP
1360 .Vb 1
1361 \& typedef XSPROTO(SwigPerlWrapper);
1362 .Ve
1363 .PP
1364 using the new \f(CW\*(C`XSPROTO\*(C'\fR macro, in order to compile. C extensions are
1365 unaffected, although C extensions are encouraged to use \f(CW\*(C`XSPROTO\*(C'\fR too.
1366 This change was present in the 5.10.0 release of perl, so any actively
1367 maintained code that happened to use this construction should already have
1368 been adapted. Code that needs changing will fail with a compilation error.
1369 .PP
1370 \&\f(CW\*(C`set\*(C'\fR magic on localizing/assigning to a magic variable will now only
1371 trigger for \fIcontainer magics\fR, i.e. it will for \f(CW%ENV\fR or \f(CW%SIG\fR
1372 but not for \f(CW$#array\fR.
1373 .PP
1374 The new API macro \f(CWnewSVpvs()\fR can be used in place of constructions such as
1375 \&\f(CW\*(C`newSVpvn("ISA", 3)\*(C'\fR. It takes a single string constant, and at C compile
1376 time determines its length.
1377 .PP
1378 The new API function \f(CWPerl_newSV_type()\fR can be used as a more efficient
1379 replacement of the common idiom
1380 .PP
1381 .Vb 2
1382 \& sv = newSV(0);
1383 \& sv_upgrade(sv, type);
1384 .Ve
1385 .PP
1386 Similarly \f(CWPerl_newSVpvn_flags()\fR can be used to combine
1387 \&\f(CWPerl_newSVpv()\fR with \f(CWPerl_sv_2mortal()\fR or the equivalent
1388 \&\f(CWPerl_sv_newmortal()\fR with \f(CWPerl_sv_setpvn()\fR
1389 .PP
1390 Two new macros \f(CWmPUSHs()\fR and \f(CWmXPUSHs()\fR are added, to make it easier to
1391 push mortal SVs onto the stack. They were then used to fix several bugs where
1392 values on the stack had not been mortalised.
1393 .PP
1394 A \f(CWPerl_signbit()\fR function was added to test the sign of an \f(CW\*(C`NV\*(C'\fR. It
1395 maps to the system one when available.
1396 .PP
1397 \&\f(CWPerl_av_reify()\fR, \f(CWPerl_lex_end()\fR, \f(CWPerl_mod()\fR, \f(CWPerl_op_clear()\fR,
1398 \&\f(CWPerl_pop_return()\fR, \f(CWPerl_qerror()\fR, \f(CWPerl_setdefout()\fR,
1399 \&\f(CWPerl_vivify_defelem()\fR and \f(CWPerl_yylex()\fR are now visible to extensions.
1400 This was required to allow \f(CW\*(C`Data::Alias\*(C'\fR to work on Windows.
1401 .PP
1402 \&\f(CWPerl_find_runcv()\fR is now visible to perl core extensions. This was required
1403 to allow \f(CW\*(C`Sub::Current\*(C'\fR to work on Windows.
1404 .PP
1405 \&\f(CW\*(C`ptr_table*\*(C'\fR functions are now available in unthreaded perl. \f(CW\*(C`Storable\*(C'\fR
1406 takes advantage of this.
1407 .PP
1408 There have been many small cleanups made to the internals. In particular,
1409 \&\f(CWPerl_sv_upgrade()\fR has been simplified considerably, with a straight-through
1410 code path that uses \f(CWmemset()\fR and \f(CWmemcpy()\fR to initialise the new body,
1411 rather than assignment via multiple temporary variables. It has also
1412 benefited from simplification and de-duplication of the arena management
1413 code.
1414 .PP
1415 A lot of small improvements in the code base were made due to reports from
1416 the Coverity static code analyzer.
1417 .PP
1418 Corrected use and documentation of \f(CWPerl_gv_stashpv()\fR, \f(CWPerl_gv_stashpvn()\fR,
1419 \&\f(CWPerl_gv_stashsv()\fR functions (last parameter is a bitmask, not boolean).
1420 .PP
1421 \&\f(CW\*(C`PERL_SYS_INIT\*(C'\fR, \f(CW\*(C`PERL_SYS_INIT3\*(C'\fR and \f(CW\*(C`PERL_SYS_TERM\*(C'\fR macros have been
1422 changed into functions.
1423 .PP
1424 \&\f(CW\*(C`PERLSYS_TERM\*(C'\fR no longer requires a context. \f(CWPerlIO_teardown()\fR
1425 is now called without a context, and debugging output in this function has
1426 been disabled because that required that an interpreter was present, an invalid
1427 assumption at termination time.
1428 .PP
1429 All compile time options which affect binary compatibility have been grouped
1430 together into a global variable (\f(CW\*(C`PL_bincompat_options\*(C'\fR).
1431 .PP
1432 The values of \f(CW\*(C`PERL_REVISION\*(C'\fR, \f(CW\*(C`PERL_VERSION\*(C'\fR and \f(CW\*(C`PERL_SUBVERSION\*(C'\fR are
1433 now baked into global variables (and hence into any shared perl library).
1434 Additionally under \f(CW\*(C`MULTIPLICITY\*(C'\fR, the perl executable now records the size of
1435 the interpreter structure (total, and for this version). Coupled with
1436 \&\f(CW\*(C`PL_bincompat_options\*(C'\fR this will allow 5.8.10 (and later), when compiled with a
1437 shared perl library, to perform sanity checks in \f(CWmain()\fR to verify that the
1438 shared library is indeed binary compatible.
1439 .PP
1440 Symbolic references can now have embedded NULs. The new public function
1441 \&\f(CWPerl_get_cvn_flags()\fR can be used in extensions if you have to handle them.
1442 .SS "Macro cleanups"
1443 .IX Subsection "Macro cleanups"
1444 The core code, and XS code in \fIext\fR that is not dual-lived on CPAN, no longer
1445 uses the macros \f(CW\*(C`PL_na\*(C'\fR, \f(CWNEWSV()\fR, \f(CWNull()\fR, \f(CW\*(C`Nullav\*(C'\fR, \f(CW\*(C`Nullcv\*(C'\fR,
1446 \&\f(CW\*(C`Nullhv\*(C'\fR, \f(CW\*(C`Nullhv\*(C'\fR \fIetc\fR. Their use is discouraged in new code,
1447 particularly \f(CW\*(C`PL_na\*(C'\fR, which is a small performance hit.
1448 .SH "New Tests"
1449 .IX Header "New Tests"
1450 Many modules updated from CPAN incorporate new tests. Some core specific
1451 tests have been added:
1452 .IP ext/DynaLoader/t/DynaLoader.t 4
1453 .IX Item "ext/DynaLoader/t/DynaLoader.t"
1454 Tests for the \f(CW\*(C`DynaLoader\*(C'\fR module.
1455 .IP t/comp/fold.t 4
1456 .IX Item "t/comp/fold.t"
1457 Tests for compile-time constant folding.
1458 .IP t/io/pvbm.t 4
1459 .IX Item "t/io/pvbm.t"
1460 Tests incorporated from 5.10.0 which check that there is no unexpected
1461 interaction between the internal types \f(CW\*(C`PVBM\*(C'\fR and \f(CW\*(C`PVGV\*(C'\fR.
1462 .IP t/lib/proxy_constant_subs.t 4
1463 .IX Item "t/lib/proxy_constant_subs.t"
1464 Tests for the new form of constant subroutines.
1465 .IP t/op/attrhand.t 4
1466 .IX Item "t/op/attrhand.t"
1467 Tests for \f(CW\*(C`Attribute::Handlers\*(C'\fR.
1468 .IP t/op/dbm.t 4
1469 .IX Item "t/op/dbm.t"
1470 Tests for \f(CW\*(C`dbmopen\*(C'\fR.
1471 .IP t/op/inccode\-tie.t 4
1472 .IX Item "t/op/inccode-tie.t"
1473 Calls all tests in \fIt/op/inccode.t\fR after first tying \f(CW@INC\fR.
1474 .IP t/op/incfilter.t 4
1475 .IX Item "t/op/incfilter.t"
1476 Tests for source filters returned from code references in \f(CW@INC\fR.
1477 .IP t/op/kill0.t 4
1478 .IX Item "t/op/kill0.t"
1479 Tests for RT #30970.
1480 .IP t/op/qrstack.t 4
1481 .IX Item "t/op/qrstack.t"
1482 Tests for RT #41484.
1483 .IP t/op/qr.t 4
1484 .IX Item "t/op/qr.t"
1485 Tests for the \f(CW\*(C`qr//\*(C'\fR construct.
1486 .IP t/op/regexp_qr_embed.t 4
1487 .IX Item "t/op/regexp_qr_embed.t"
1488 Tests for the \f(CW\*(C`qr//\*(C'\fR construct within another regexp.
1489 .IP t/op/regexp_qr.t 4
1490 .IX Item "t/op/regexp_qr.t"
1491 Tests for the \f(CW\*(C`qr//\*(C'\fR construct.
1492 .IP t/op/rxcode.t 4
1493 .IX Item "t/op/rxcode.t"
1494 Tests for RT #32840.
1495 .IP t/op/studytied.t 4
1496 .IX Item "t/op/studytied.t"
1497 Tests for \f(CW\*(C`study\*(C'\fR on tied scalars.
1498 .IP t/op/substT.t 4
1499 .IX Item "t/op/substT.t"
1500 Tests for \f(CW\*(C`subst\*(C'\fR run under \f(CW\*(C`\-T\*(C'\fR mode.
1501 .IP t/op/symbolcache.t 4
1502 .IX Item "t/op/symbolcache.t"
1503 Tests for \f(CW\*(C`undef\*(C'\fR and \f(CW\*(C`delete\*(C'\fR on stash entries that are bound to
1504 subroutines or methods.
1505 .IP t/op/upgrade.t 4
1506 .IX Item "t/op/upgrade.t"
1507 Tests for \f(CWPerl_sv_upgrade()\fR.
1508 .IP t/mro/package_aliases.t 4
1509 .IX Item "t/mro/package_aliases.t"
1510 MRO tests for \f(CW\*(C`isa\*(C'\fR and package aliases.
1511 .IP t/pod/twice.t 4
1512 .IX Item "t/pod/twice.t"
1513 Tests for calling \f(CW\*(C`Pod::Parser\*(C'\fR twice.
1514 .IP t/run/cloexec.t 4
1515 .IX Item "t/run/cloexec.t"
1516 Tests for inheriting file descriptors across \f(CW\*(C`exec\*(C'\fR (close-on-exec).
1517 .IP t/uni/cache.t 4
1518 .IX Item "t/uni/cache.t"
1519 Tests for the UTF\-8 caching code.
1520 .IP t/uni/chr.t 4
1521 .IX Item "t/uni/chr.t"
1522 Test that strange encodings do not upset \f(CWPerl_pp_chr()\fR.
1523 .IP t/uni/greek.t 4
1524 .IX Item "t/uni/greek.t"
1525 Tests for RT #40641.
1526 .IP t/uni/latin2.t 4
1527 .IX Item "t/uni/latin2.t"
1528 Tests for RT #40641.
1529 .IP t/uni/overload.t 4
1530 .IX Item "t/uni/overload.t"
1531 Tests for returning Unicode from overloaded values.
1532 .IP t/uni/tie.t 4
1533 .IX Item "t/uni/tie.t"
1534 Tests for returning Unicode from tied variables.
1535 .SH "Known Problems"
1536 .IX Header "Known Problems"
1537 There are no known new bugs.
1538 .PP
1539 However, programs that rely on bugs that have been fixed will have problems.
1540 Also, many bug fixes present in 5.10.0 can't be back-ported to the 5.8.x
1541 branch, because they require changes that are binary incompatible, or because
1542 the code changes are too large and hence too risky to incorporate.
1543 .PP
1544 We have only limited volunteer labour, and the maintenance burden is
1545 getting increasingly complex. Hence this will be the last significant
1546 release of the 5.8.x series. Any future releases of 5.8.x will likely
1547 only be to deal with security issues, and platform build
1548 failures. Hence you should look to migrating to 5.10.x, if you have
1549 not started already. Alternatively, if business requirements constrain
1550 you to continue to use 5.8.x, you may wish to consider commercial
1551 support from firms such as ActiveState.
1552 .SH "Platform Specific Notes"
1553 .IX Header "Platform Specific Notes"
1554 .SS Win32
1555 .IX Subsection "Win32"
1556 \&\f(CWreaddir()\fR, \f(CWcwd()\fR, \f(CW$^X\fR and \f(CW@INC\fR now use the alternate (short)
1557 filename if the long name is outside the current codepage (Jan Dubois).
1558 .PP
1559 \fIUpdated Modules\fR
1560 .IX Subsection "Updated Modules"
1561 .IP \(bu 4
1562 \&\f(CW\*(C`Win32\*(C'\fR upgraded to version 0.38. Now has a documented 'WinVista' response
1563 from \f(CW\*(C`GetOSName\*(C'\fR and support for Vista's privilege elevation in \f(CW\*(C`IsAdminUser\*(C'\fR.
1564 Support for Unicode characters in path names. Improved cygwin and Win64
1565 compatibility.
1566 .IP \(bu 4
1567 \&\f(CW\*(C`Win32API\*(C'\fR updated to 0.1001_01
1568 .IP \(bu 4
1569 \&\f(CWkillpg()\fR support added to \f(CW\*(C`MSWin32\*(C'\fR (Jan Dubois).
1570 .IP \(bu 4
1571 \&\f(CW\*(C`File::Spec::Win32\*(C'\fR upgraded to version 3.2701
1572 .SS OS/2
1573 .IX Subsection "OS/2"
1574 \fIUpdated Modules\fR
1575 .IX Subsection "Updated Modules"
1576 .IP \(bu 4
1577 \&\f(CW\*(C`OS2::Process\*(C'\fR upgraded to 1.03
1578 .Sp
1579 Ilya Zakharevich has added and documented several \f(CW\*(C`Window*\*(C'\fR and \f(CW\*(C`Clipbrd*\*(C'\fR
1580 functions.
1581 .IP \(bu 4
1582 \&\f(CW\*(C`OS2::REXX::DLL\*(C'\fR, \f(CW\*(C`OS2::REXX\*(C'\fR updated to version 1.03
1583 .SS VMS
1584 .IX Subsection "VMS"
1585 \fIUpdated Modules\fR
1586 .IX Subsection "Updated Modules"
1587 .IP \(bu 4
1588 \&\f(CW\*(C`DCLsym\*(C'\fR upgraded to version 1.03
1589 .IP \(bu 4
1590 \&\f(CW\*(C`Stdio\*(C'\fR upgraded to version 2.4
1591 .IP \(bu 4
1592 \&\f(CW\*(C`VMS::XSSymSet\*(C'\fR upgraded to 1.1.
1593 .SH Obituary
1594 .IX Header "Obituary"
1595 Nick Ing-Simmons, long time Perl hacker, author of the \f(CW\*(C`Tk\*(C'\fR and \f(CW\*(C`Encode\*(C'\fR
1596 modules, \fIperlio.c\fR in the core, and 5.003_02 pumpking, died of a heart
1597 attack on 25th September 2006. He will be missed.
1598 .SH Acknowledgements
1599 .IX Header "Acknowledgements"
1600 Some of the work in this release was funded by a TPF grant.
1601 .PP
1602 Steve Hay worked behind the scenes working out the causes of the differences
1603 between core modules, their CPAN releases, and previous core releases, and
1604 the best way to rectify them. He doesn't want to do it again. I know this
1605 feeling, and I'm very glad he did it this time, instead of me.
1606 .PP
1607 Paul Fenwick assembled a team of 18 volunteers, who broke the back of writing
1608 this document. In particular, Bradley Dean, Eddy Tan, and Vincent Pit
1609 provided half the team's contribution.
1610 .PP
1611 Schwern verified the list of updated module versions, correcting quite a few
1612 errors that I (and everyone else) had missed, both wrongly stated module
1613 versions, and changed modules that had not been listed.
1614 .PP
1615 The crack Berlin-based QA team of Andreas König and Slaven Rezic
1616 tirelessly re-built snapshots, tested most everything CPAN against
1617 them, and then identified the changes responsible for any module regressions,
1618 ensuring that several show-stopper bugs were stomped before the first release
1619 candidate was cut.
1620 .PP
1621 The other core committers contributed most of the changes, and applied most
1622 of the patches sent in by the hundreds of contributors listed in \fIAUTHORS\fR.
1623 .PP
1624 And obviously, Larry Wall, without whom we wouldn't have Perl.
1625 .SH "Reporting Bugs"
1626 .IX Header "Reporting Bugs"
1627 If you find what you think is a bug, you might check the articles
1628 recently posted to the comp.lang.perl.misc newsgroup and the perl
1629 bug database at http://bugs.perl.org. There may also be
1630 information at http://www.perl.org, the Perl Home Page.
1631 .PP
1632 If you believe you have an unreported bug, please run the \fBperlbug\fR
1633 program included with your release. Be sure to trim your bug down
1634 to a tiny but sufficient test case. Your bug report, along with the
1635 output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to [email protected] to be
1636 analysed by the Perl porting team. You can browse and search
1637 the Perl 5 bugs at http://bugs.perl.org/
1638 .PP
1639 If the bug you are reporting has security implications, which make it
1640 inappropriate to send to a publicly archived mailing list, then please send
1641 it to perl5\-security\[email protected]. This points to a closed subscription
1642 unarchived mailing list, which includes
1643 all the core committers, who will be able
1644 to help assess the impact of issues, figure out a resolution, and help
1645 co-ordinate the release of patches to mitigate or fix the problem across all
1646 platforms on which Perl is supported. Please only use this address for security
1647 issues in the Perl core, not for modules independently distributed on CPAN.
1648 .SH "SEE ALSO"
1649 .IX Header "SEE ALSO"
1650 The \fIChanges\fR file for exhaustive details on what changed.
1651 .PP
1652 The \fIINSTALL\fR file for how to build Perl.
1653 .PP
1654 The \fIREADME\fR file for general stuff.
1655 .PP
1656 The \fIArtistic\fR and \fICopying\fR files for copyright information.