argra****@users*****
argra****@users*****
2008年 1月 11日 (金) 06:00:08 JST
Index: docs/perl/5.8.8/perlmod.pod diff -u docs/perl/5.8.8/perlmod.pod:1.2 docs/perl/5.8.8/perlmod.pod:1.3 --- docs/perl/5.8.8/perlmod.pod:1.2 Tue Nov 20 04:38:43 2007 +++ docs/perl/5.8.8/perlmod.pod Fri Jan 11 06:00:08 2008 @@ -266,8 +266,9 @@ =end original -(Be sure to note the B<vast> difference between the second line above -and C<local $main::foo = $main::bar>. The former is accessing the hash +(上記の 2 行目と C<local $main::foo = $main::The> との B<大きな> 違いに +注意してください。 +The former is accessing the hash C<%main::>, which is the symbol table of package C<main>. The latter is simply assigning scalar C<$bar> in package C<main> to scalar C<$foo> of the same package.) @@ -1246,9 +1247,9 @@ =end original -If you want to CLONE all objects you will need to keep track of them per -package. This is simply done using a hash and Scalar::Util::weaken(). -(TBT) +全てのオブジェクトを CLONE したい場合は、それらをパッケージ毎に記録しておく +必要があります。 +これは単純にハッシュと Scalar::Util::weaken() を使うことで実現できます。 =begin original Index: docs/perl/5.8.8/perlop.pod diff -u docs/perl/5.8.8/perlop.pod:1.5 docs/perl/5.8.8/perlop.pod:1.6 --- docs/perl/5.8.8/perlop.pod:1.5 Sun Sep 2 01:33:57 2007 +++ docs/perl/5.8.8/perlop.pod Fri Jan 11 06:00:08 2008 @@ -17,6 +17,8 @@ =head2 Operator Precedence and Associativity X<operator, precedence> X<precedence> X<associativity> +(演算子の優先順位と結合性) + =begin original Operator precedence and associativity work in Perl more or less like @@ -152,6 +154,8 @@ =head2 Terms and List Operators (Leftward) X<list operator> X<operator, list> X<term> +(項とリスト演算子 (左方向)) + =begin original A TERM has the highest precedence in Perl. They include variables, @@ -313,6 +317,8 @@ =head2 The Arrow Operator X<arrow> X<dereference> X<< -> >> +(矢印演算子) + =begin original "C<< -> >>" is an infix dereference operator, just as it is in C @@ -568,6 +574,8 @@ =head2 Binding Operators X<binding> X<operator, binding> X<=~> X<!~> +(拘束演算子) + =begin original Binary "=~" binds a scalar expression to a pattern match. Certain operations @@ -616,6 +624,8 @@ =head2 Multiplicative Operators X<operator, multiplicative> +(乗法演算子) + =begin original Binary "*" multiplies two numbers. @@ -698,6 +708,8 @@ =head2 Additive Operators X<operator, additive> +(加法演算子) + =begin original Binary "+" returns the sum of two numbers. @@ -875,6 +887,8 @@ =head2 Relational Operators X<relational operator> X<operator, relational> +(比較演算子) + =begin original Binary "<" returns true if the left argument is numerically less than @@ -966,6 +980,8 @@ =head2 Equality Operators X<equality> X<equal> X<equals> X<operator, equality> +(等価演算子) + =begin original Binary "==" returns true if the left argument is numerically equal to @@ -1062,6 +1078,8 @@ =head2 Bitwise And X<operator, bitwise, and> X<bitwise and> X<&> +(ビットごとの AND) + =begin original Binary "&" returns its operands ANDed together bit by bit. @@ -1089,6 +1107,8 @@ X<operator, bitwise, or> X<bitwise or> X<|> X<operator, bitwise, xor> X<bitwise xor> X<^> +(ビットごとの OR と XOR) + =begin original Binary "|" returns its operands ORed together bit by bit. @@ -1171,7 +1191,7 @@ =end original -|| 演算子と && 演算子は、(C のように 単に 0 や 1 を返すのではなく)最後に +C<||> 演算子と C<&&> 演算子は、(C のように 単に 0 や 1 を返すのではなく)最後に 評価された値を返します。 これにより、かなり一般的に使えるホームディレクトリを探す方法は: @@ -2139,17 +2159,17 @@ =end original - \t タブ - \n 改行 - \r 復帰 - \f 改ページ - \b バックスペース - \a アラーム (ベル) - \e エスケープ - \033 8 進数で表した文字 - \x1b 16 進数で表した文字 - \x{263a} 16 進数で表したワイド文字 (SMILEY) - \c[ コントロール文字 + \t タブ (HT, TAB) + \n 改行 (NL) + \r 復帰 (CR) + \f 改ページ (FF) + \b バックスペース (BS) + \a アラーム (BEL) + \e エスケープ (ESC) + \033 8 進数で表した文字 (ESC) + \x1b 16 進数で表した文字 (ESC) + \x{263a} 16 進数で表したワイド文字 (SMILEY) + \c[ コントロール文字 (ESC) \N{name} 名前つき Unicode 文字 =begin original @@ -3847,9 +3867,9 @@ =end original -C</>のように、1 文字でペアでないデリミタを探す場合、 -C<\\> と C<\/> を読み飛ばします。 -しかし、C<[>のように 1 文字でペアになるデリミタの場合、 +C</> のように、1 文字でペアでないデリミタを探す場合、 +C<\\> と C<\/> の組み合わせを読み飛ばします。 +しかし、C<[> のように 1 文字でペアになるデリミタの場合、 C<\\>, C<\]>, C<\[> を読み飛ばし、 さらにネストした C<[>, C<]> も読み飛ばします。 複数文字のデリミタの場合、何も読み飛ばしません。 @@ -3871,7 +3891,8 @@ =end original -検索する間、構造の文脈は考慮しません。従って、 +検索する間、構造の文脈は考慮しません。 +従って: "$hash{"$foo/$bar"}" @@ -3881,7 +3902,7 @@ =end original -や、 +や: m/ bar # NOT a comment, this slash / terminated m//!