[perldocjp-cvs 2108] CVS update: docs/perl/5.26.1

Back to archive index

argra****@users***** argra****@users*****
2018年 9月 17日 (月) 20:56:21 JST


Index: docs/perl/5.26.1/perlop.pod
diff -u docs/perl/5.26.1/perlop.pod:1.1 docs/perl/5.26.1/perlop.pod:1.2
--- docs/perl/5.26.1/perlop.pod:1.1	Sun Jul  8 01:27:46 2018
+++ docs/perl/5.26.1/perlop.pod	Mon Sep 17 20:56:20 2018
@@ -2558,12 +2558,13 @@
 
 =end original
 
-As of Perl 5.26, the list-context range operator on strings works as expected
-in the scope of L<< S<C<"use feature 'unicode_strings">>|feature/The
-'unicode_strings' feature >>. In previous versions, and outside the scope of
-that feature, it exhibits L<perlunicode/The "Unicode Bug">: its behavior
-depends on the internal encoding of the range endpoint.
-(TBT)
+Perl 5.26 から、文字列に対するリストコンテキスト範囲演算子は、
+L<< S<C<"use feature 'unicode_strings">>|feature/The
+'unicode_strings' feature >> のスコープの中で想定通りに
+動作するようになりました。
+以前のバージョン、およびこの機能のスコープの外側では、
+これは L<perlunicode/The "Unicode Bug"> を起こしていました:
+その振る舞いは範囲の両端の内部エンコーディングに依存していました。
 
 =begin original
 
@@ -3383,9 +3384,8 @@
 
 =end original
 
-The cases where whitespace must be used are when the quoting character
-is a word character (meaning it matches C</\w/>):
-(TBT)
+空白が使われなければならないのは、クォート文字が単語文字
+(つまり C</\w/> にマッチングする)の場合です:
 
     q XfooX # Works: means the string 'foo'
     qXfooX  # WRONG!
@@ -5353,9 +5353,8 @@
 
 =end original
 
-Use the L<open> pragma to control the I/O layers used when reading the
-output of the command, for example:
-(TBT)
+コマンドの出力を読み込むのに使われる I/O 層を制御するには L<open> を使います;
+例えば:
 
   use open IN => ":encoding(UTF-8)";
   my $x = `cmd-producing-utf-8`;
@@ -5539,15 +5538,14 @@
 C<tr> は C<\d> や C<\pL> といった正規表現文字クラスを
 B<使わない> ことに注意してください。
 C<tr> 演算子は C<L<tr(1)>> ユーティリティと等価ではありません。
-C<tr[a-z][A-Z]> will uppercase the 26 letters "a" through "z",
-but for case changing not confined to ASCII, use
+C<tr[a-z][A-Z]> は "a" から "z" までの 26 文字を大文字にしますが、
+ASCII の範囲外の大文字小文字を変更する場合は、
 L<C<lc>|perlfunc/lc>, L<C<uc>|perlfunc/uc>,
 L<C<lcfirst>|perlfunc/lcfirst>, L<C<ucfirst>|perlfunc/ucfirst>
-(all documented in L<perlfunc>), or the
-L<substitution operator C<sE<sol>I<PATTERN>E<sol>I<REPLACEMENT>E<sol>>|/sE<sol>PATTERNE<sol>REPLACEMENTE<sol>msixpodualngcer>
-(with C<\U>, C<\u>, C<\L>, and C<\l> string-interpolation escapes in the
-I<REPLACEMENT> portion).
-(TBT)
+(全て L<perlfunc> に文書化されています), あるいは
+L<置換演算子 C<sE<sol>I<PATTERN>E<sol>I<REPLACEMENT>E<sol>>|/sE<sol>PATTERNE<sol>REPLACEMENTE<sol>msixpodualngcer>
+(I<REPLACEMENT> 部での C<\U>, C<\u>, C<\L>, C<\l> 文字列変換エスケープ) を
+使ってください。
 
 =begin original
 
@@ -5798,9 +5796,8 @@
 
 =end original
 
-Prefixing the terminating string with a C<~> specifies that you
-want to use L</Indented Here-docs> (see below).
-(TBT)
+終端文字列に C<~> を前置することで、L</Indented Here-docs> (後述)を
+使いたいことを指定します。
 
 =begin original
 
@@ -5940,9 +5937,8 @@
 
 =end original
 
-The here-doc modifier C<~> allows you to indent your here-docs to make
-the code more readable:
-(TBT)
+ヒヤドキュメント修飾子 C<~> は、コードをより読みやすくするために
+ヒヤドキュメントをインデントできるようにします:
 
     if ($some_var) {
       print <<~EOF;
@@ -5956,8 +5952,7 @@
 
 =end original
 
-This will print...
-(TBT)
+これは次のものを...
 
     This is a here-doc
 
@@ -5967,8 +5962,7 @@
 
 =end original
 
-...with no leading whitespace.
-(TBT)
+...先頭の空白なしで表示します。
 
 =begin original
 
@@ -5982,12 +5976,12 @@
 =end original
 
 The delimiter is used to determine the B<exact> whitespace to
-remove from the beginning of each line.  All lines B<must> have
-at least the same starting whitespace (except lines only
-containing a newline) or perl will croak.  Tabs and spaces can
-be mixed, but are matched exactly.  One tab will not be equal to
-8 spaces!
-(TBT)
+remove from the beginning of each line.  
+全ての行は(改行のみの行を除いて)少なくとも同じだけの先頭の空白が
+B<なければならず>、さもなければ perl は croak します。
+タブとスペースは混ぜることが出来ますが、正確に
+マッチングしなければなりません。
+一つのタブは 8 スペースと同じではありません!
 
 =begin original
 
@@ -5996,9 +5990,7 @@
 
 =end original
 
-Additional beginning whitespace (beyond what preceded the
-delimiter) will be preserved:
-(TBT)
+(区切り文字で指定された以上の)追加の先頭の空白は保存されます:
 
     print <<~EOF;
       This text is not indented
@@ -6013,9 +6005,7 @@
 
 =end original
 
-Finally, the modifier may be used with all of the forms
-mentioned above:
-(TBT)
+最後に、この修飾子は前述した全ての型式で使うことが出来ます:
 
     <<~\EOF;
     <<~'EOF'
@@ -6028,8 +6018,7 @@
 
 =end original
 
-And whitespace may be used between the C<~> and quoted delimiters:
-(TBT)
+そして空白は C<~> とクォートされた区切り文字の間にも使えます:
 
     <<~ 'EOF'; # ... "EOF", `EOF`
 
@@ -7986,7 +7975,7 @@
 
 Translate: 吉村 寿人 <JAE00****@nifty*****> (5.000)
 Update: Kentaro Shirakata <argra****@ub32*****> (5.6.1-)
-Status: in progress
+Status: completed
 
 =end meta
 



perldocjp-cvs メーリングリストの案内
Back to archive index