1 |
argrath |
1.1 |
=encoding euc-jp |
2 |
|
|
|
3 |
|
|
=head1 NAME |
4 |
|
|
|
5 |
|
|
=begin original |
6 |
|
|
|
7 |
|
|
perl583delta - what is new for perl v5.8.3 |
8 |
|
|
|
9 |
|
|
=end original |
10 |
|
|
|
11 |
|
|
perl v5.8.3 での変更点 |
12 |
|
|
|
13 |
|
|
=head1 DESCRIPTION |
14 |
|
|
|
15 |
|
|
=begin original |
16 |
|
|
|
17 |
|
|
This document describes differences between the 5.8.2 release and |
18 |
|
|
the 5.8.3 release. |
19 |
|
|
|
20 |
|
|
=end original |
21 |
|
|
|
22 |
|
|
このドキュメントは 5.8.2 リリースと 5.8.3 リリースの変更点を記述しています。 |
23 |
|
|
|
24 |
|
|
=begin original |
25 |
|
|
|
26 |
|
|
If you are upgrading from an earlier release such as 5.6.1, first read |
27 |
|
|
the L<perl58delta>, which describes differences between 5.6.0 and |
28 |
|
|
5.8.0, and the L<perl581delta> and L<perl582delta>, which describe differences |
29 |
|
|
between 5.8.0, 5.8.1 and 5.8.2 |
30 |
|
|
|
31 |
|
|
=end original |
32 |
|
|
|
33 |
|
|
もしそれよりも前のリリース, 例えば 5.6.1 等からアップデートするのなら、 |
34 |
|
|
5.6.0 と 5.8.0 との違いが書かれている L<perl58delta> および、 |
35 |
|
|
5.8.0, 5.8.1, 5.8.2 との違いが書かれている L<perl581delta>, |
36 |
|
|
L<perl582delta> を読んでおいた方がよいでしょう。 |
37 |
|
|
|
38 |
|
|
=head1 Incompatible Changes |
39 |
|
|
|
40 |
|
|
(互換性のない変更) |
41 |
|
|
|
42 |
|
|
=begin original |
43 |
|
|
|
44 |
|
|
There are no changes incompatible with 5.8.2. |
45 |
|
|
|
46 |
|
|
=end original |
47 |
|
|
|
48 |
|
|
5.8.2 との互換性のない変更はありません。 |
49 |
|
|
|
50 |
|
|
=head1 Core Enhancements |
51 |
|
|
|
52 |
|
|
(Core の拡張) |
53 |
|
|
|
54 |
|
|
=begin original |
55 |
|
|
|
56 |
|
|
A C<SCALAR> method is now available for tied hashes. This is called when |
57 |
|
|
a tied hash is used in scalar context, such as |
58 |
|
|
|
59 |
|
|
=end original |
60 |
|
|
|
61 |
|
|
|
62 |
|
|
if (%tied_hash) { |
63 |
|
|
... |
64 |
|
|
} |
65 |
|
|
|
66 |
|
|
|
67 |
|
|
=begin original |
68 |
|
|
|
69 |
|
|
The old behaviour was that %tied_hash would return whatever would have been |
70 |
|
|
returned for that hash before the hash was tied (so usually 0). The new |
71 |
|
|
behaviour in the absence of a SCALAR method is to return TRUE if in the |
72 |
|
|
middle of an C<each> iteration, and otherwise call FIRSTKEY to check if the |
73 |
|
|
hash is empty (making sure that a subsequent C<each> will also begin by |
74 |
|
|
calling FIRSTKEY). Please see L<perltie/SCALAR> for the full details and |
75 |
|
|
caveats. |
76 |
|
|
|
77 |
|
|
=end original |
78 |
|
|
|
79 |
|
|
|
80 |
|
|
=head1 Modules and Pragmata |
81 |
|
|
|
82 |
|
|
(モジュールとプラグマ) |
83 |
|
|
|
84 |
|
|
=over 4 |
85 |
|
|
|
86 |
|
|
=item CGI |
87 |
|
|
|
88 |
|
|
=item Cwd |
89 |
|
|
|
90 |
|
|
=item Digest |
91 |
|
|
|
92 |
|
|
=item Digest::MD5 |
93 |
|
|
|
94 |
|
|
=item Encode |
95 |
|
|
|
96 |
|
|
=item File::Spec |
97 |
|
|
|
98 |
|
|
=item FindBin |
99 |
|
|
|
100 |
|
|
=begin original |
101 |
|
|
|
102 |
|
|
A function C<again> is provided to resolve problems where modules in different |
103 |
|
|
directories wish to use FindBin. |
104 |
|
|
|
105 |
|
|
=end original |
106 |
|
|
|
107 |
|
|
|
108 |
|
|
=item List::Util |
109 |
|
|
|
110 |
|
|
=begin original |
111 |
|
|
|
112 |
|
|
You can now weaken references to read only values. |
113 |
|
|
|
114 |
|
|
=end original |
115 |
|
|
|
116 |
|
|
|
117 |
|
|
=item Math::BigInt |
118 |
|
|
|
119 |
|
|
=item PodParser |
120 |
|
|
|
121 |
|
|
=item Pod::Perldoc |
122 |
|
|
|
123 |
|
|
=item POSIX |
124 |
|
|
|
125 |
|
|
=item Unicode::Collate |
126 |
|
|
|
127 |
|
|
=item Unicode::Normalize |
128 |
|
|
|
129 |
|
|
=item Test::Harness |
130 |
|
|
|
131 |
|
|
=item threads::shared |
132 |
|
|
|
133 |
|
|
=begin original |
134 |
|
|
|
135 |
|
|
C<cond_wait> has a new two argument form. C<cond_timedwait> has been added. |
136 |
|
|
|
137 |
|
|
=end original |
138 |
|
|
|
139 |
|
|
|
140 |
|
|
=back |
141 |
|
|
|
142 |
|
|
=head1 Utility Changes |
143 |
|
|
|
144 |
|
|
(ツールの変更) |
145 |
|
|
|
146 |
|
|
=begin original |
147 |
|
|
|
148 |
|
|
C<find2perl> now assumes C<-print> as a default action. Previously, it |
149 |
|
|
needed to be specified explicitly. |
150 |
|
|
|
151 |
|
|
=end original |
152 |
|
|
|
153 |
|
|
|
154 |
|
|
=begin original |
155 |
|
|
|
156 |
|
|
A new utility, C<prove>, makes it easy to run an individual regression test |
157 |
|
|
at the command line. C<prove> is part of Test::Harness, which users of earlier |
158 |
|
|
Perl versions can install from CPAN. |
159 |
|
|
|
160 |
|
|
=end original |
161 |
|
|
|
162 |
|
|
|
163 |
|
|
=head1 New Documentation |
164 |
|
|
|
165 |
|
|
(新しいドキュメント) |
166 |
|
|
|
167 |
|
|
=begin original |
168 |
|
|
|
169 |
|
|
The documentation has been revised in places to produce more standard manpages. |
170 |
|
|
|
171 |
|
|
=end original |
172 |
|
|
|
173 |
|
|
|
174 |
|
|
=begin original |
175 |
|
|
|
176 |
|
|
The documentation for the special code blocks (BEGIN, CHECK, INIT, END) |
177 |
|
|
has been improved. |
178 |
|
|
|
179 |
|
|
=end original |
180 |
|
|
|
181 |
|
|
|
182 |
|
|
=head1 Installation and Configuration Improvements |
183 |
|
|
|
184 |
|
|
=begin original |
185 |
|
|
|
186 |
|
|
Perl now builds on OpenVMS I64 |
187 |
|
|
|
188 |
|
|
=end original |
189 |
|
|
|
190 |
|
|
|
191 |
|
|
=head1 Selected Bug Fixes |
192 |
|
|
|
193 |
|
|
=begin original |
194 |
|
|
|
195 |
|
|
Using substr() on a UTF8 string could cause subsequent accesses on that |
196 |
|
|
string to return garbage. This was due to incorrect UTF8 offsets being |
197 |
|
|
cached, and is now fixed. |
198 |
|
|
|
199 |
|
|
=end original |
200 |
|
|
|
201 |
|
|
|
202 |
|
|
=begin original |
203 |
|
|
|
204 |
|
|
join() could return garbage when the same join() statement was used to |
205 |
|
|
process 8 bit data having earlier processed UTF8 data, due to the flags |
206 |
|
|
on that statement's temporary workspace not being reset correctly. This |
207 |
|
|
is now fixed. |
208 |
|
|
|
209 |
|
|
=end original |
210 |
|
|
|
211 |
|
|
|
212 |
|
|
=begin original |
213 |
|
|
|
214 |
|
|
C<$a .. $b> will now work as expected when either $a or $b is C<undef> |
215 |
|
|
|
216 |
|
|
=end original |
217 |
|
|
|
218 |
|
|
|
219 |
|
|
=begin original |
220 |
|
|
|
221 |
|
|
Using Unicode keys with tied hashes should now work correctly. |
222 |
|
|
|
223 |
|
|
=end original |
224 |
|
|
|
225 |
|
|
|
226 |
|
|
=begin original |
227 |
|
|
|
228 |
|
|
Reading $^E now preserves $!. Previously, the C code implementing $^E |
229 |
|
|
did not preserve C<errno>, so reading $^E could cause C<errno> and therefore |
230 |
|
|
C<$!> to change unexpectedly. |
231 |
|
|
|
232 |
|
|
=end original |
233 |
|
|
|
234 |
|
|
|
235 |
|
|
=begin original |
236 |
|
|
|
237 |
|
|
Reentrant functions will (once more) work with C++. 5.8.2 introduced a bugfix |
238 |
|
|
which accidentally broke the compilation of Perl extensions written in C++ |
239 |
|
|
|
240 |
|
|
=end original |
241 |
|
|
|
242 |
|
|
|
243 |
|
|
=head1 New or Changed Diagnostics |
244 |
|
|
|
245 |
|
|
=begin original |
246 |
|
|
|
247 |
|
|
The fatal error "DESTROY created new reference to dead object" is now |
248 |
|
|
documented in L<perldiag>. |
249 |
|
|
|
250 |
|
|
=end original |
251 |
|
|
|
252 |
|
|
|
253 |
|
|
=head1 Changed Internals |
254 |
|
|
|
255 |
|
|
=begin original |
256 |
|
|
|
257 |
|
|
The hash code has been refactored to reduce source duplication. The |
258 |
|
|
external interface is unchanged, and aside from the bug fixes described |
259 |
|
|
above, there should be no change in behaviour. |
260 |
|
|
|
261 |
|
|
=end original |
262 |
|
|
|
263 |
|
|
|
264 |
|
|
=begin original |
265 |
|
|
|
266 |
|
|
C<hv_clear_placeholders> is now part of the perl API |
267 |
|
|
|
268 |
|
|
=end original |
269 |
|
|
|
270 |
|
|
|
271 |
|
|
=begin original |
272 |
|
|
|
273 |
|
|
Some C macros have been tidied. In particular macros which create temporary |
274 |
|
|
local variables now name these variables more defensively, which should |
275 |
|
|
avoid bugs where names clash. |
276 |
|
|
|
277 |
|
|
=end original |
278 |
|
|
|
279 |
|
|
|
280 |
|
|
=begin original |
281 |
|
|
|
282 |
|
|
<signal.h> is now always included. |
283 |
|
|
|
284 |
|
|
=end original |
285 |
|
|
|
286 |
|
|
|
287 |
|
|
=head1 Configuration and Building |
288 |
|
|
|
289 |
|
|
=begin original |
290 |
|
|
|
291 |
|
|
C<Configure> now invokes callbacks regardless of the value of the variable |
292 |
|
|
they are called for. Previously callbacks were only invoked in the |
293 |
|
|
C<case $variable $define)> branch. This change should only affect platform |
294 |
|
|
maintainers writing configuration hints files. |
295 |
|
|
|
296 |
|
|
=end original |
297 |
|
|
|
298 |
|
|
|
299 |
|
|
=head1 Platform Specific Problems |
300 |
|
|
|
301 |
|
|
=begin original |
302 |
|
|
|
303 |
|
|
The regression test ext/threads/shared/t/wait.t fails on early RedHat 9 |
304 |
|
|
and HP-UX 10.20 due to bugs in their threading implementations. |
305 |
|
|
RedHat users should see https://rhn.redhat.com/errata/RHBA-2003-136.html |
306 |
|
|
and consider upgrading their glibc. |
307 |
|
|
|
308 |
|
|
=end original |
309 |
|
|
|
310 |
|
|
|
311 |
|
|
=head1 Known Problems |
312 |
|
|
|
313 |
|
|
=begin original |
314 |
|
|
|
315 |
|
|
Detached threads aren't supported on Windows yet, as they may lead to |
316 |
|
|
memory access violation problems. |
317 |
|
|
|
318 |
|
|
=end original |
319 |
|
|
|
320 |
|
|
|
321 |
|
|
=begin original |
322 |
|
|
|
323 |
|
|
There is a known race condition opening scripts in C<suidperl>. C<suidperl> |
324 |
|
|
is neither built nor installed by default, and has been deprecated since |
325 |
|
|
perl 5.8.0. You are advised to replace use of suidperl with tools such |
326 |
|
|
as sudo ( http://www.courtesan.com/sudo/ ) |
327 |
|
|
|
328 |
|
|
=end original |
329 |
|
|
|
330 |
|
|
|
331 |
|
|
=begin original |
332 |
|
|
|
333 |
|
|
We have a backlog of unresolved bugs. Dealing with bugs and bug reports |
334 |
|
|
is unglamorous work; not something ideally suited to volunteer labour, |
335 |
|
|
but that is all that we have. |
336 |
|
|
|
337 |
|
|
=end original |
338 |
|
|
|
339 |
|
|
|
340 |
|
|
=begin original |
341 |
|
|
|
342 |
|
|
The perl5 development team are implementing changes to help address this |
343 |
|
|
problem, which should go live in early 2004. |
344 |
|
|
|
345 |
|
|
=end original |
346 |
|
|
|
347 |
|
|
|
348 |
|
|
=head1 Future Directions |
349 |
|
|
|
350 |
|
|
=begin original |
351 |
|
|
|
352 |
|
|
Code freeze for the next maintenance release (5.8.4) is on March 31st 2004, |
353 |
|
|
with release expected by mid April. Similarly 5.8.5's freeze will be at |
354 |
|
|
the end of June, with release by mid July. |
355 |
|
|
|
356 |
|
|
=end original |
357 |
|
|
|
358 |
|
|
|
359 |
|
|
=head1 Obituary |
360 |
|
|
|
361 |
|
|
(お悔やみ) |
362 |
|
|
|
363 |
|
|
=begin original |
364 |
|
|
|
365 |
|
|
Iain 'Spoon' Truskett, Perl hacker, author of L<perlreref> and |
366 |
|
|
contributor to CPAN, died suddenly on 29th December 2003, aged 24. |
367 |
|
|
He will be missed. |
368 |
|
|
|
369 |
|
|
=end original |
370 |
|
|
|
371 |
|
|
Perl ハッカーであり、L<perlreref> の著者であり、CPAN の |
372 |
|
|
貢献者である Iain 'Spoon' Truskett は 2003 年 12 月 29 日、24 歳で |
373 |
|
|
急死しました。お悔やみを申し上げます。 |
374 |
|
|
|
375 |
|
|
=head1 Reporting Bugs |
376 |
|
|
|
377 |
|
|
=begin original |
378 |
|
|
|
379 |
|
|
If you find what you think is a bug, you might check the articles |
380 |
|
|
recently posted to the comp.lang.perl.misc newsgroup and the perl |
381 |
|
|
bug database at http://bugs.perl.org. There may also be |
382 |
|
|
information at http://www.perl.org, the Perl Home Page. |
383 |
|
|
|
384 |
|
|
=end original |
385 |
|
|
|
386 |
|
|
もしバグと思われるものが見つかったら、 comp.lang.perl.misc ニュースグループに |
387 |
|
|
最近投稿された記事や http://bugs.perl.org にある perl バグデータベースを |
388 |
|
|
確認してください。 |
389 |
|
|
Perl ホームページ、http://www.perl.org にも情報があります。 |
390 |
|
|
|
391 |
|
|
=begin original |
392 |
|
|
|
393 |
|
|
If you believe you have an unreported bug, please run the B<perlbug> |
394 |
|
|
program included with your release. Be sure to trim your bug down |
395 |
|
|
to a tiny but sufficient test case. Your bug report, along with the |
396 |
|
|
output of C<perl -V>, will be sent off to perlbug@perl.org to be |
397 |
|
|
analysed by the Perl porting team. You can browse and search |
398 |
|
|
the Perl 5 bugs at http://bugs.perl.org/ |
399 |
|
|
|
400 |
|
|
=end original |
401 |
|
|
|
402 |
|
|
もしまだ報告されていないバグだと確信したら、そのリリースに含まれている |
403 |
|
|
perlbug プログラムをを実行してください。 |
404 |
|
|
バグの再現スクリプトを十分小さく、しかし有効なコードに切りつめることを |
405 |
|
|
意識してください。バグレポートは perl -V の出力と一緒に |
406 |
|
|
perlbug@perl.org に送られ Perl porting チームによって解析されます。 |
407 |
|
|
Perl 5 のバグについては http://bugs.perl.org/ で閲覧及び |
408 |
|
|
検索することができます。 |
409 |
|
|
|
410 |
|
|
=head1 SEE ALSO |
411 |
|
|
|
412 |
|
|
=begin original |
413 |
|
|
|
414 |
|
|
The F<Changes> file for exhaustive details on what changed. |
415 |
|
|
|
416 |
|
|
=end original |
417 |
|
|
|
418 |
|
|
F<Changes> ファイルに変更点の完全な詳細があります。 |
419 |
|
|
|
420 |
|
|
=begin original |
421 |
|
|
|
422 |
|
|
The F<INSTALL> file for how to build Perl. |
423 |
|
|
|
424 |
|
|
=end original |
425 |
|
|
|
426 |
|
|
F<INSTALL> ファイルに Perl のビルド方法があります。 |
427 |
|
|
|
428 |
|
|
=begin original |
429 |
|
|
|
430 |
|
|
The F<README> file for general stuff. |
431 |
|
|
|
432 |
|
|
=end original |
433 |
|
|
|
434 |
|
|
F<README> ファイルに一般的なことがあります。 |
435 |
|
|
|
436 |
|
|
=begin original |
437 |
|
|
|
438 |
|
|
The F<Artistic> and F<Copying> files for copyright information. |
439 |
|
|
|
440 |
|
|
=end original |
441 |
|
|
|
442 |
|
|
F<Artistic> 及び F<Copying> ファイルに著作権情報があります。 |
443 |
|
|
|
444 |
|
|
=cut |
445 |
|
|
|
446 |
|
|
=begin meta |
447 |
|
|
|
448 |
|
|
Translate: Kentaro Shirakata <argrath@ub32.org> |
449 |
|
|
License: Same as Perl |
450 |
|
|
|
451 |
|
|
=end meta |