argra****@users*****
argra****@users*****
2010年 4月 26日 (月) 02:32:37 JST
Index: docs/perl/5.12.0/perl5120delta.pod diff -u docs/perl/5.12.0/perl5120delta.pod:1.5 docs/perl/5.12.0/perl5120delta.pod:1.6 --- docs/perl/5.12.0/perl5120delta.pod:1.5 Sun Apr 18 06:01:51 2010 +++ docs/perl/5.12.0/perl5120delta.pod Mon Apr 26 02:32:35 2010 @@ -292,12 +292,11 @@ =end original -Extension modules can now cleanly hook into the Perl parser to define -new kinds of keyword-headed expression and compound statement. +ã¨ã¯ã¹ãã³ã·ã§ã³ã¢ã¸ã¥ã¼ã«ã¯ããã¼ã¯ã¼ããé ã«ã¤ãã表ç¾ã¨è¤åæã® +æ°ç¨®ãå®ç¾©ããããã«ãPerl ã®ãã¼ãµã¼ã«ãããã«ããã¯ãè¨å®ã§ãã¾ãã ãã¼ã¯ã¼ãã«å¼ãç¶ãææ³ã¯å®å ¨ã«ã¨ã¯ã¹ãã³ã·ã§ã³ã«ãã£ã¦å®ç¾©ããã¾ãã ããã«ãããã¤ã³ã©ã¤ã³ã§ãã¼ã¹ã§ããæ£ãã ops ããããã«çæã§ããã å®å ¨ã« Perl ã¨ã¯éãå¯è¨èªãå¯è½ã«ãªãã¾ãã -(TBT) =begin original @@ -346,10 +345,9 @@ APIs available to XS extensions. ãããã¯ãã©ã°å¯è½ãªãã¼ã¯ã¼ãã®é©åãªä½¿ç¨ãå©ããããã«å¿ è¦ã§ããã ä»ã®ä½¿ãæ¹ãããã¾ãã -æ°ãã API ã¯å®é¨çã§ã -experimental, and only cover a small proportion of what would be -necessary to take full advantage of the core's facilities in these -areas. It is intended that the Perl 5.13 development cycle will see the +æ°ãã API ã¯å®é¨çã§ããããã®åéã®ã³ã¢ã®è½åã®å©ç¹ãå®å ¨ã« +å©ç¨ããããã«å¿ è¦ãªãã®ã®ãã¡å°ããªé¨åãã対å¿ãã¦ãã¾ããã +It is intended that the Perl 5.13 development cycle will see the addition of a full range of clean, supported interfaces. (TBT) @@ -384,10 +382,9 @@ subroutine calls. ããã¯ããã®æ¹æ³ã§åç §ããããµãã«ã¼ãã³ã®ãããã¿ã¤ããæ£ãã å¦çããããã¨ãæå³ãã¾ãã -(Previously bareword subroutine -names were initially looked up, for parsing purposes, by an unhookable -mechanism, so extensions could only properly influence subroutine names -that appeared with an C<&> sigil.) +(以åã¯ã裸ã®ãµãã«ã¼ãã³åã¯ããã¯ã§ããªãæ©æ§ã使ã£ã¦ãã¼ã¹ã®ããã« +æåã«æ¤ç´¢ããã¦ããã®ã§ãã¨ã¯ã¹ãã³ã·ã§ã³ã¯ C<&> ãã¤ãã¦ãã +ãµãã«ã¼ãã³åããé©åã«å½±é¿ãä¸ãããã¾ããã§ããã) (TBT) =head2 A proper interface for pluggable Method Resolution Orders @@ -640,13 +637,12 @@ =end original -Over the years, Perl's developers have deprecated a number of language -features for a variety of reasons. Perl now defaults to issuing a -warning if a deprecated language feature is used. Many of the deprecations -Perl now warns you about have been deprecated for many years. You can -find a list of what was deprecated in a given release of Perl in the -C<perl5xxdelta.pod> file for that release. -(TBT) +é·å¹´ãããã¦ãPerl ã®éçºè ã¯å¤ãã®è¨èªæ©è½ãæ§ã ãªçç±ã§éæ¨å¥¨ã« +ãã¦ãã¾ããã +Perl ã¯ãéæ¨å¥¨ã®è¨èªæ©è½ã使ãããã¨è¦åãåºãã®ãããã©ã«ãã«ãªãã¾ããã +Perl ãè¦åããããã«ãªã£ãéæ¨å¥¨ã®å¤ãã¯ä½å¹´éãéæ¨å¥¨ã¨ãªã£ã¦ãã¾ãã +Perl ã®ãããªãªã¼ã¹ã§ä½ãéæ¨å¥¨ãã®ä¸è¦§ã¯ãã®ãªãªã¼ã¹ã® +C<perl5xxdelta.pod> ãã¡ã¤ã«ã«ããã¾ãã =begin original @@ -704,11 +700,12 @@ =end original -These formats are documented fully in the L<version> module. To a first -approximation, a "strict" version number is a positive decimal number -(integer or decimal-fraction) without exponentiation or else a -dotted-decimal v-string with a leading 'v' character and at least three -components. A "lax" version number allows v-strings with fewer than +ãããã®å½¢å¼ã¯ L<version> ã«å®å ¨ã«ææ¸åããã¦ãã¾ãã +æåã®ä»®å®ã¨ãã¦ãå³å¯ãªããã¼ã¸ã§ã³çªå·ã¯ is a positive decimal number +(integer or decimal-fraction) without exponentiation or else +å é ã« 'v' ã®æåãã¤ãããããä»ãæ´æ°v-æååã§ãå°ãªãã¨ã +3 è¦ç´ ããããã®ã§ãã +A "lax" version number allows v-strings with fewer than three components or without a leading 'v'. Under "lax" rules, both decimal and dotted-decimal versions may have a trailing "alpha" component separated by an underscore character after a fractional or @@ -760,12 +757,11 @@ =end original å é¨ã§ã¯ãPerl ã¯(C<qr//> ã§ä½æããããããª)ã³ã³ãã¤ã«ãããæ£è¦è¡¨ç¾ã -ãæåã®ã¯ã©ã¹å®æ ã¨ãã¦æ±ãã¾ãã -Perl modules which -serialize, deserialize or otherwise have deep interaction with Perl's -internal data structures need to be updated for this change. Most -affected CPAN modules have already been updated as of this writing. -(TBT) +ãæåã®ã¯ã©ã¹å®ä½ã¨ãã¦æ±ãã¾ãã +Perl ã®å é¨ãã¼ã¿æ§é ãç´ååãéç´ååãããªã©ã®æ·±ãç¸äºä½ç¨ã +è¡ãã¢ã¸ã¥ã¼ã«ã¯ããã®å¤æ´ã«å¯¾å¿ããããã«æ´æ°ããå¿ è¦ãããã¾ãã +å½±é¿ã®åãã CPAN ã¢ã¸ã¥ã¼ã«ã®ã»ã¨ãã©ã¯ããããæ¸ãã¦ããæç¹ã§ +æ¢ã«æ´æ°ããã¦ãã¾ãã =head2 Switch statement changes @@ -1350,10 +1346,9 @@ =end original with the C<:> being treated as the start of an attribute list, which -ends before the C<=>. As whitespace is not significant here, all are -parsed as an empty attribute list, hence all the above are equivalent -to, and better written as -(TBT) +ends before the C<=>. +ããã§ã¯ç©ºç½ã¯æå³ãæããªãã®ã§ãå ¨ã¦ã¯ç©ºå±æ§ãªã¹ãã¨ãã¦ãã¼ã¹ããã +å¾ã£ã¦ä¸è¨ã¯å ¨ã¦ç価ã¨ãªãã®ã§ã以ä¸ã®ããã«æ¸ããæ¹ãããã§ã my $pi = 4; @@ -1428,17 +1423,20 @@ =end original -C<\N{I<name>}> ã«ããã¦ãI<name> ä½ã§ãæ§ãã¾ããã +C<\N{I<name>}> ã«ããã¦ãI<name> ã¯ä½ã§ãæ§ãã¾ããã The standard Unicode names have a very limited domain, but a custom name translator could create names that are, for example, made up entirely of punctuation -symbols. It is now deprecated to make names that don't begin with an -alphabetic character, and aren't alphanumeric or contain other than +symbols. +è±åã§å§ã¾ããªãååã¯éæ¨å¥¨ã¨ãªãã +and aren't alphanumeric or contain other than a very few other characters, namely spaces, dashes, parentheses -and colons. Because of the added meaning of C<\N> (See L</C<\N> -experimental regex escape>), names that look like curly brace -enclosed -quantifiers won't work. For example, C<\N{3,4}> now means to match 3 to -4 non-newlines; before a custom name C<3,4> could have been created. +and colons. +C<\N> ã®æå³ã追å ããã(L</C<\N> experimental regex escape> ã +åç §ãã¦ãã ãã)ã®ã§ãnames that look like curly brace -enclosed +quantifiers won't work. +ä¾ãã°ãC<\N{3,4}> 㯠3 ãã 4 æåã®éæ¹è¡æåã«ãããã³ã°ãã¾ã; +以åã¯ã«ã¹ã¿ã å C<3,4> ãä½æããã¦ãã¾ããã (TBT) =item Deprecated Modules @@ -1659,10 +1657,9 @@ =end original -Perl now fully supports the Unicode compound-style of using C<=> -and C<:> in writing regular expressions: C<\p{property=value}> and -C<\p{property:value}> (both of which mean the same thing). -(TBT) +æ£è¦è¡¨ç¾ãæ¸ãã¨ãã« C<=> 㨠C<:> ã使ã£ãè¤åå Unicode ã«å®å ¨ã« +対å¿ããããã«ãªãã¾ãã: C<\p{property=value}> 㨠+C<\p{property:value}> ã§ã (ãããã¯ã©ã¡ããåãæå³ã§ã)ã =begin original @@ -1672,10 +1669,9 @@ =end original -Perl now fully supports the Unicode loose matching rules for text between -the braces in C<\p{...}> constructs. +Unicode ã®C<\p{...}> æ§é ã§ãä¸ãã£ãã®éã®ããã¹ãã§ã® +ããããããã³ã°ã«ã¼ã«ã«å®å ¨ã«å¯¾å¿ãã¾ããã ããã«ãæ°å¤ã®æ°åã®éã«ä¸ç·ã許ãããã«ãªãã¾ããã -(TBT) =begin original @@ -1744,13 +1740,12 @@ C<\X> ã¯å¸¸ã«ãæåã®ãã¼ã¯ãå«ããæä½ 1 æåã¨ãããã³ã°ããããã« ãªãã¾ããã -Marks generally come after a base character, but it is possible in -Unicode to have them in isolation, and C<\X> will now handle that case, -for example at the beginning of a line, or after a C<ZWSP>. And this is -the part where C<\X> doesn't match the things that it used to that don't -make sense. Formerly, for example, you could have the nonsensical case -of an accented LF. -(TBT) +ãã¼ã¯ã¯ä¸è¬çã«ã¯è¦å®æåã®å¾ã«ç¾ãã¾ãããUnicode ã§ã¯ãããã +åç¬ã§ä½¿ããã¨ãå¯è½ã§ãC<\X> ã¯ãã®ãããªå ´åãã¤ã¾ãè¡é ãã +C<ZWSP> ã®å¾ã®ãããªå ´åã§ãæ£ããæ±ããããã«ãªãã¾ããã +ããã¯ãC<\X> ãç¡æå³ãªãã®ã«ãããã³ã°ããªããªã£ããã¨ã® +ä¸é¨ã§ãã +以åã¯ãä¾ãã°ãã¢ã¯ã»ã³ãä»ãã® LF ã¨ããç¡æå³ãªå ´åãããã¾ããã =item * @@ -1846,9 +1841,10 @@ C<\p{Cntrl}> 㯠C<\p{Control}> ã¨åãæåã«ãããã³ã°ããããã«ãªãã¾ããã ããã¯ããã¯ã Private Use (gc=co), Surrogates (gc=cs), Format (gc=cf) 符å·ä½ç½®ã¨ãããã³ã°ããªããã¨ãæå³ãã¾ãã -The Format code points represent the -biggest possible problem. All but 36 of them are either officially -deprecated or strongly discouraged from being used. Of those 36, likely +Format 符å·ä½ç½®ã¯æ大ã®å¯è½æ§ãããåé¡ãæå³ãã¾ãã +ãããã®ãã¡ã36 以å¤ã®ãã®ã¯å ¬å¼ã«éæ¨å¥¨ãã使ç¨ã¯å ¨ã +ãå§ãã§ãã¾ããã +Of those 36, likely the most widely used are the soft hyphen (U+00AD), and BOM, ZWSP, ZWNJ, WJ, and similar characters, plus bidirectional controls. (TBT) @@ -1868,8 +1864,8 @@ 5.12 ããåã§ã¯ã Perl's definition definition included a number of things that aren't really alpha (all marks) while omitting many that were. The definitions -of C<\p{Alnum}> and C<\p{Word}> depend on Alpha's definition and have -changed accordingly. +C<\p{Alnum}> 㨠C<\p{Word}> ã®å®ç¾©ã¯ Alpha ã®å®ç¾©ã«ä¾åãã¦ãã¦ã +åæ§ã«å¤æ´ããã¾ããã (TBT) =begin original @@ -1903,11 +1899,11 @@ =end original -C<\p{XDigit}> now matches the same characters as C<\p{Hex_Digit}>. This -means that in addition to the characters it currently matches, -C<[A-Fa-f0-9]>, it will also match the 22 fullwidth equivalents, for -example U+FF10: FULLWIDTH DIGIT ZERO. -(TBT) +C<\p{XDigit}> 㯠C<\p{Hex_Digit}> ã¨åãæåã« +ãããã³ã°ããããã«ãªãã¾ããã +ããã¯ãä»ãããã³ã°ãã¦ããæå C<[A-Fa-f0-9]> ã«è¿½å ãã¦ã +U+FF10: FULLWIDTH DIGIT ZERO ã®ãããªã22 åã®ç価ãªå ¨è§æåã«ã +ãããã³ã°ããããã«ãªãã¾ããã =begin original @@ -1928,12 +1924,12 @@ =end original -There is a new Perl extension, the 'Present_In', or simply 'In', -property. This is an extension of the Unicode Age property, but -C<\p{In=5.0}> matches any code point whose usage has been determined -I<as of> Unicode version 5.0. The C<\p{Age=5.0}> only matches code points -added in I<precisely> version 5.0. -(TBT) +Perl ã®æ°ããæ¡å¼µã¨ã㦠'Present_In' ãããã¯åã« 'In' ã¨ããç¹æ§ãããã¾ãã +ãã㯠Unicode Age ç¹æ§ã®æ¡å¼µã§ãããC<\p{In=5.0}> 㯠+Unicode ãã¼ã¸ã§ã³ 5.0 I<ç¾å¨ã§> 使ãæ¹ã決å®ããã¦ãããããã符å·ä½ç½®ã« +ãããã³ã°ãã¾ãã +C<\p{Age=5.0}> 㯠I<ã¾ãã«> ãã¼ã¸ã§ã³ 5.0 ã§è¿½å ããã符å·ä½ç½®ã«ã®ã¿ +ãããã³ã°ãã¾ãã =begin original @@ -1944,11 +1940,11 @@ =end original -A number of properties now have the correct values for unassigned -code points. The affected properties are Bidi_Class, East_Asian_Width, +å¤ãã®ç¹æ§ããå²ãå½ã¦ããã¦ããªã符å·ä½ç½®ã«å¯¾ãã¦æ£ããå¤ã +æã¤ããã«ãªãã¾ããã +å½±é¿ã®ããç¹æ§ã¯ Bidi_Class, East_Asian_Width, Joining_Type, Decomposition_Type, Hangul_Syllable_Type, Numeric_Type, -and Line_Break. -(TBT) +Line_Break ã§ãã =begin original @@ -1971,8 +1967,9 @@ =end original -Earlier versions of Perl erroneously exposed certain properties that -are supposed to be Unicode internal-only. Use of these in regular +Perl ã®ä»¥åã®ãã¼ã¸ã§ã³ã§ã¯ãUnicode å é¨å°ç¨ã¨ãªã£ã¦ããããã¤ãã® +ç¹æ§ãééã£ã¦é²åºãã¦ãã¾ããã +Use of these in regular expressions will now generate, if enabled, a deprecation warning message. The properties are: Other_Alphabetic, Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend, Other_ID_Continue, Other_ID_Start, Other_Lowercase,