Debian Codegraph @

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