[perldocjp-cvs 1524] CVS update: docs/articles/qntm.org/files/perl

Zurück zum Archiv-Index

ktats****@users***** ktats****@users*****
2012年 8月 31日 (金) 01:27:35 JST


Index: docs/articles/qntm.org/files/perl/perl.html
diff -u docs/articles/qntm.org/files/perl/perl.html:1.3 docs/articles/qntm.org/files/perl/perl.html:1.4
--- docs/articles/qntm.org/files/perl/perl.html:1.3	Sun Aug  5 18:49:22 2012
+++ docs/articles/qntm.org/files/perl/perl.html	Fri Aug 31 01:27:34 2012
@@ -2,6 +2,8 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 	<head>
 		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+                <meta name="description" content="2時間半で学べるPerlのチュートリアル">
+                <!-- linkto: http://yahoo.co.jp/ -->
 		<title>2時間半で学ぶPerl</title>
 
 		<style type="text/css">
@@ -74,7 +76,7 @@
 <p>Perl<i>スクリプト</i>は<tt>.pl</tt>という拡張子のテキストファイルです。</p>
 <p class=original>Here's the full text of <tt>helloworld.pl</tt>:</p>
 <p><tt>helloworld.pl</tt>は以下のようになります:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -128,7 +130,7 @@
 print $undef2; # exactly the same warning
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $undef = undef;
 print $undef; # warning
 
@@ -137,12 +139,12 @@
 print $undef2; # まったく同じwarning
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $num = 4040.5;
 print $num; # "4040.5"
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $string = "world";
 print $string; # "world"
 </pre>
@@ -152,19 +154,19 @@
 
 <p class=original>String concatenation using the <tt>.</tt> operator (same as PHP):</p>
 <p>文字列の連結には<tt>.</tt>演算子を使います(PHPと同じ):</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print "Hello ".$string; # "Hello world"
 </pre>
 
 <p class=original>String concatenation by passing multiple arguments to <tt>print</tt>:</p>
 <p>複数の引数を<tt>print</tt>に渡すことで文字列を連結できます:</p>
-<pre class="perl">print "Hello ", $string; # "Hello world"</pre>
+<pre class="perl prettyprint">print "Hello ", $string; # "Hello world"</pre>
 
 <p class=original><strong>It is impossible to determine whether a scalar contains a "number" or a "string".</strong> More precisely, it is irrelevant. Perl is weakly typed in this respect. Whether a scalar behaves like a number or a string depends on the operator with which it is used. When used as a string, a scalar will behave like a string. When used as a number, a scalar will behave like a number (or raise a warning if this isn't possible):</p>
 
 <p><strong>スカラーに"数字"か"変数"のいずれかが入っているのかを判断することはできません。</strong> より正確には、そんなことは見当違いです。Perlはその点で弱い型付けです。 スカラが数字か文字のどちらかのように振舞うかは、使われる演算子によります。文字列として使えば、スカラは文字列のようにふるまいます。数字として使えば、スカラは数字のようにふるまいます(また、そうすることが出来なければ、警告を発します):</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $str1 = "4G";
 my $str2 = "4H";
 
@@ -182,7 +184,7 @@
 # String operators:    lt, gt, le, ge, eq, ne, cmp
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 # 数字用の演算子:  &lt;,  &gt;, &lt;=, &gt;=, ==, !=, &lt;=&gt;
 # 文字用の演算子:    lt, gt, le, ge, eq, ne, cmp
 </pre>
@@ -220,7 +222,7 @@
 );
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array = (
 	"print",
 	"these",
@@ -235,7 +237,7 @@
 
 <p>配列から値にアクセスするときにはドル記号を使わなければいけません。<em>取られる</em>値は配列ではなく、スカラだからです:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print $array[0]; # "print"
 print $array[1]; # "these"
 print $array[2]; # "strings"
@@ -248,7 +250,7 @@
 <p class=original>You can use negative indices to retrieve entries starting from the end and working backwards:</p>
 <p>負のインデックスを、後ろから値を取るのに使えます。逆向きになります:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print $array[-1]; # "me"
 print $array[-2]; # "for"
 print $array[-3]; # "out"
@@ -265,7 +267,7 @@
 <p class=original>To get an array's length:</p>
 <p>配列の長さを得るには:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print "This array has ", (scalar @array), "elements"; # "This array has 6 elements"
 print "The last populated index is ", $#array;        # "The last populated index is 5"
 </pre>
@@ -273,14 +275,14 @@
 <p class=original>String concatenation using the <tt>.</tt> operator:</p>
 <p>文字列の結合には<tt>.</tt>演算子を使います:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print $array[0].$array[1].$array[2]; # "printthesestrings"
 </pre>
 
 <p class=original>String concatenation by passing multiple arguments to <tt>print</tt>:</p>
 <p>複数の引数を<tt>print</tt>に渡すことで文字列を連結できます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print @array; # "printthesestringsoutforme"
 </pre>
 
@@ -289,7 +291,7 @@
 
 <p class=original>Variables can be interpolated into strings:</p>
 <p>変数を文字列の間に入れることができます:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print "Hello $string"; # "Hello world"
 print "@array";        # "print these strings out for me"
 </pre>
@@ -297,7 +299,7 @@
 <p class=original><strong>Caution.</strong> One day you will put somebody's email address inside a string, <tt>"jeff****@gmail*****"</tt>. This will cause Perl to look for an array variable called <tt>@gmail</tt> to interpolate into the string, and not find it, resulting in a runtime error. Interpolation can be prevented in two ways: by backslash-escaping the sigil, or by using single quotes instead of double quotes.</p>
 <p><strong>注意。</strong> ある日、誰かのメールアドレス、<tt>"jeff****@gmail*****"</tt>を文字列に入れたとします。 これは、Perlに<tt>@gmail</tt>という配列変数を探させ、文字列の間に入れようとします。それが見つからなければ、エラーになります。変数の展開を防ぐには2つの方法があります:シジルをエスケープする。まてゃあ、ダブルクォートの代わりにシングルクォートを使う。</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print "Hello \$string"; # "Hello $string"
 print 'Hello $string';  # "Hello $string"
 print "\@array";        # "@array"
@@ -310,7 +312,7 @@
 <p class=original>A hash variable is a list of scalars indexed by strings. In Python this is known as a <i>dictionary</i>, and in PHP it is known as an <i>array</i>.</p>
 <p>ハッシュ変数は文字でインデックスされた素からのリストです。Pythonでは<i>dictionary</i>、PHPでは<i>array</i>になります。</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my %scientists = (
 	"Newton"   =&gt; "Isaac",
 	"Einstein" =&gt; "Albert",
@@ -331,7 +333,7 @@
 print $scientists{"Dyson"};    # runtime error - key not set
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print $scientists{"Newton"};   # "Isaac"
 print $scientists{"Einstein"}; # "Albert"
 print $scientists{"Darwin"};   # "Charles"
@@ -345,7 +347,7 @@
 <p class=original>You can convert a hash straight to an array with twice as many entries, alternating between key and value (and the reverse is equally easy):</p>
 <p>エントリを2倍にしてハッシュを配列に直接変換することや、キーと値を変更することができます(その逆もまた簡単です):</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @scientists = %scientists;
 </pre>
 
@@ -353,14 +355,14 @@
 
 <p>ですが、配列とは違い、ハッシュのキーは<em>順番がありません</em>。より効率的な順番で返ってきます。そのため、整列され直された<em>順番</em>に気をつけてください。しかし、結果の配列の<em>ペア</em>は保持されます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print @scientists; # something like "EinsteinAlbertDarwinCharlesNewtonIsaac"
 </pre>
 
 <p class=original>To recap, you have to use <strong>square brackets</strong> to retrieve a value from an array, but you have to use <strong>braces</strong> to retrieve a value from a hash. The square brackets are effectively a numerical operator and the braces are effectively a string operator. The fact that the <em>index</em> supplied is a number or a string is of absolutely no significance:</p>
 <p>要点をまとめると、配列から値を取り出すのには<strong>四角いブラケット</strong>を使わなければいけませんが、ハッシュから値を取り出すのは<strong>ブレース</strong>を使わなければいけません。提供される<em>インデックス</em>が数字であるか文字列であるということには、重要性はありません:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $data = "orange";
 my @data = ("purple");
 my %data = ( "0" =&gt; "blue");
@@ -378,7 +380,7 @@
 <p class=original>A <i>list</i> in Perl is a different thing again from either an array or a hash. You've just seen several lists:</p>
 <p>Perlにおける<i>リスト</i>は配列やハッシュとは違うものです。既にいくつかのリストがありました:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 (
 	"print",
 	"these",
@@ -400,7 +402,7 @@
 <p class=original>Okay. Remember that <tt>=&gt;</tt> is just <tt>,</tt> in disguise and then look at this example:</p>
 <p>いいでしょう。 <tt>=&gt;</tt>は、ただの<tt>,</tt>であることを思い出し、返送させて、次の例を見てください:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 (0, 1, 2, 3, 4, 5)
 (0 =&gt; 1, 2 =&gt; 3, 4 =&gt; 5)
 </pre>
@@ -408,7 +410,7 @@
 <p class=original>The use of <tt>=&gt;</tt> hints that one of these lists is an array declaration and the other is a hash declaration. But on their own, neither of them are declarations of anything. They are just lists. <em>Identical</em> lists. Also:</p>
 <p><tt>=&gt;</tt>の使い方が一方のリストが配列の宣言であることを示し、他方はハッシュの宣言であることを示しています。ですが、2つとも、それ自身、何の宣言でもありません。ただのリストです。<em>同一の</em>リストです。また:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 ()
 </pre>
 
@@ -416,7 +418,7 @@
 
 <p>なんのヒントも存在しません。このリストは空の配列として宣言されているのでしょうか、それとも、カラのハッシュとしてでしょうか。<tt>perl</tt>インタープリタには、明らかにどちらとも判断することができません。Perlの変わった一面であると理解したなら、次の事実が真であることもまた理解するでしょう: <strong>リストの値はネストできません。</strong> 試してみてください:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array = (
 	"apples",
 	"bananas",
@@ -472,7 +474,7 @@
 print $hash{"bananas"}{"yellow"}; # error
 </pre>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my %hash = (
 	"beer" =&gt; "good",
 	"bananas" =&gt; (
@@ -506,13 +508,13 @@
 
 <p><tt>my $scalar =</tt>のようなスカラの宣言はスカラコンテキストとして評価されます。<tt>"Mendeleev"</tt>のようなスカラの値がスカラ今敵うとで評価され、スカラを返します:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $scalar = "Mendeleev";
 </pre>
 <p class=original>An array or hash declaration such as <tt>my @array =</tt> or <tt>my %hash =</tt> evaluates its expression in list context. A list value evaluated in list context returns the list, which then gets fed in to populate the array or hash:</p>
 <p><tt>my @array =</tt> や <tt>my %hash =</tt> のような配列やハッシュの宣言は、リストコンテキストで評価されます。リストの値はリストコンテキストで評価され、リストを返します。配列やハッシュに代入するようなときです:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array = ("Alpha", "Beta", "Gamma", "Pie");
 my %hash = ("Alpha" =&gt; "Beta", "Gamma" =&gt; "Pie");
 </pre>
@@ -523,21 +525,21 @@
 <p class=original>A scalar expression evaluated in list context turns into a single-element list:</p>
 <p>スカラの式はリストコンテキストで評価されると、ひとつの値のリストとなります:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array = "Mendeleev";
 print $array[0];     # "Mendeleev"
 print scalar @array; # "1"
 </pre>
 <p class=original>A list expression evaluated in scalar context returns <em>the final scalar in the list</em>:</p>
 <p>リストの式がスカラコンテキストで評価されると、<em>リストの最後のスカラ</em>を返します:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $scalar = ("Alpha", "Beta", "Gamma", "Pie");
 print $scalar; # "Pie"
 </pre>
 <p class=original>An array expression (an array is different from a list, remember?) evaluated in scalar context returns <em>the length of the array</em>:</p>
 <p>配列の式(配列はリストと違います。覚えてる?)は、スカラコンテキストでは<em>配列の長さ</em>を返します:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array = ("Alpha", "Beta", "Gamma", "Pie");
 my $scalar = @array;
 print $scalar; # "4"
@@ -550,13 +552,13 @@
 
 <!--
 <p>As a more complicated example, let's examine what happens when we perform a regular expression match. A regex match expression evaluated in scalar context returns <tt>""</tt> (the empty string) if the match fails, <tt>1</tt> on success:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $bill = "The amount was \$123.45. You must pay immediately.";
 my $scalar = ($bill =~ m/^The amount was \$(\d+\.\d\d)\. You must (\w+) ([\w\s]+)\.$/);
 print $scalar; # "1"
 </pre>
 <p>The same expression evaluated in list context returns a list of matches:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $bill = "The amount was \$123.45. You must pay immediately.";
 my @array = ($bill =~ m/^The amount was \$(\d+\.\d\d)\. You must (\w+) ([\w\s]+)\.$/);
 print @array; # "123.45payimmediately"
@@ -569,7 +571,7 @@
 <p class=original>In the same way that lists cannot contain lists as elements, <strong>arrays and hashes cannot contain other arrays and hashes as elements.</strong> They can only contain scalars. For example:</p>
 <p>リストが要素としてリストを含めないのと同様、<strong>配列とハッシュは他の配列やハッシュを要素として持てません</strong>。 両方ともスカラしか持てません。 例えば:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @outer = ();
 my @inner = ("Mercury", "Venus", "Earth");
 
@@ -587,14 +589,14 @@
 
 <p class=original>A reference is created using a backslash.</p>
 <p>リファレンスはバックスラッシュを使って作られます。</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $colour    = "Indigo";
 my $scalarRef = \$colour;
 </pre>
 
 <p class=original>Any time you would use the name of a variable, you can instead just put some braces in, and, within the braces, put a <em>reference</em> to a variable instead.</p>
 <p>いつでも、変数の名前を使えます。代わりにブレースを置いて、ブレース内に変数への<em>リファレンス</em>を置きます。</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print $colour;         # "Indigo"
 print $scalarRef;      # e.g. "SCALAR(0x182c180)"
 print ${ $scalarRef }; # "Indigo"
@@ -603,14 +605,14 @@
 <p class=original>As long as the result is not ambiguous, you can omit the braces too:</p>
 <p>結果が曖昧でない限り、ブレースを省略することもできます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print $$scalarRef; # "Indigo"
 </pre>
 
 <p class=original>If your reference is a reference to an array or hash variable, you can get data out of it using braces or using the more popular arrow operator, <tt>-&gt;</tt>:</p>
 <p>リファレンスが配列かハッシュ変数のリファレンスの場合、ブレースかより一般的なアロー演算子、<tt>-&gt;</tt>を使ってデータを取り出せます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @colours = ("Red", "Orange", "Yellow", "Green", "Blue");
 my $arrayRef = \@colours;
 
@@ -629,7 +631,7 @@
 <h3 class=original>Declaring a data structure</h3>
 <h3>データ構造を宣言する</h3>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my %owner1 = (
 	"name" =&gt; "Santa Claus",
 	"DOB"  =&gt; "1882-12-25",
@@ -658,7 +660,7 @@
 <p class=original>That's obviously unnecessarily laborious, because you can shorten it to:</p>
 <p>これは、明らかに不必要で骨の折れます。なぜなら、次のように省略できます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my %owner1 = (
 	"name" =&gt; "Santa Claus",
 	"DOB"  =&gt; "1882-12-25",
@@ -682,7 +684,7 @@
 <p>
 別の記号を使って<i>無名</i>配列やハッシュを宣言することも出来ます。四角いブラケットを無名配列に、ブレースを無名ハッシュに使います。それぞれ、返される値は、無名のデータ構造の<em>リファレンス</em>になります。注意して見てください。次の結果は、上の<tt>%account</tt>と全く同じです:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 # Braces denote an anonymous hash
 my $owner1Ref = {
 	"name" =&gt; "Santa Claus",
@@ -707,7 +709,7 @@
 <p class=original>Or, for short (and this is the form you should <em>actually</em> use when declaring complex data structures in-line):</p>
 <p>または、省略するすると(そして、行でデータ複雑な構造を宣言する時に、<em>実際に</em>使うべき形です):</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my %account = (
 	"number" =&gt; "31415926",
 	"opened" =&gt; "3000-01-01",
@@ -731,7 +733,7 @@
 
 <p>さて、いじくりまわす<tt>%account</tt>がまだあるとしましょう。ですが、全ての他のもの(他のものがあったなら)は、スコープの外に落ちます。それぞれのケースで同じ手順を逆向きにすることで、情報を表示できます。</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $ownersRef = $account{"owners"};
 my @owners    = @{ $ownersRef };
 my $owner1Ref = $owners[0];
@@ -748,7 +750,7 @@
 <p class=original>Or, for short:</p>
 <p>または, 省略して:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @owners = @{ $account{"owners"} };
 my %owner1 = %{ $owners[0] };
 my %owner2 = %{ $owners[1] };
@@ -762,7 +764,7 @@
 <p class=original>Or using references:</p>
 <p>または、リファレンスを使って:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $ownersRef = $account{"owners"};
 my $owner1Ref = $ownersRef-&gt;[0];
 my $owner2Ref = $ownersRef-&gt;[1];
@@ -776,7 +778,7 @@
 <p class=original>And if we completely skip all the intermediate values:</p>
 <p>そして、全ての中間の値をスキップするなら:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print "Account #", $account{"number"}, "\n";
 print "Opened on ", $account{"opened"}, "\n";
 print "Joint owners:\n";
@@ -789,21 +791,21 @@
 
 <p class=original>This array has five elements:</p>
 <p>この配列には5つの要素があります:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array1 = (1, 2, 3, 4, 5);
 print @array1; # "12345"
 </pre>
 
 <p class=original>This array has one element (which happens to be a reference to an anonymous, five-element array):</p>
 <p>この配列にはひとつの要素(無名の5つの要素の配列のリファレンス)があります:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my @array2 = [1, 2, 3, 4, 5];
 print @array2; # e.g. "ARRAY(0x182c180)"
 </pre>
 
 <p class=original>This <em>scalar</em> is a reference to an anonymous, five-element array:</p>
 <p>この <em>スカラ</em> は、無名の5つの要素の配列のリファレンスになります:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $array3Ref = [1, 2, 3, 4, 5];
 print $array3Ref;      # e.g. "ARRAY(0x22710c0)"
 print @{ $array3Ref }; # "12345"
@@ -818,7 +820,7 @@
 <p class=original>No surprises here, other than the spelling of <tt>elsif</tt>:</p>
 <p><tt>elsif</tt>のスペル以外には驚くものはありません:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $word = "antidisestablishmentarianism";
 my $strlen = length $word;
 
@@ -834,13 +836,13 @@
 <p class=original>Perl provides a shorter "<i>statement</i> <tt>if</tt> <i>condition</i>" syntax which is highly recommended for short statements:</p>
 <p>Perlにはより短い "<i>ステートメント</i> <tt>if</tt> <i>条件</i>"のシンタックスがあります。短いステートメント用に、強く推奨されます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print "'", $word, "' is actually enormous" if $strlen >= 20;
 </pre>
 
 <h3><tt>unless</tt> ... <tt>else</tt> ...</h3>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $temperature = 20;
 
 unless($temperature > 30) {
@@ -856,7 +858,7 @@
 
 <p class=original>This, by comparison, is highly recommended because it is so easy to read:</p>
 <p>一方で、以下は読みやすさのために、強く推奨されます</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print "Oh no it's too cold" unless $temperature > 15;
 </pre>
 
@@ -866,7 +868,7 @@
 <p class=original>The ternary operator <tt>?:</tt> allows simple <tt>if</tt> statements to be embedded in a statement. The canonical use for this is singular/plural forms:</p>
 <p>三項演算子 <tt>?:</tt> は、単純な <tt>if</tt> ステートメントをひとつのステートメントに埋め込めます。三項演算子の標準的な使い方として、単数/複数の形があります:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $gain = 48;
 print "You gained ", $gain, " ", ($gain == 1 ? "experience point" : "experience points"), "!";
 </pre>
@@ -875,7 +877,7 @@
 <p>余談: 両方のケースの単数と複数を完全に書き出されています。決して以下のような巧妙なことをしないでください。
 コードを検索して、"tooth"か"teeth"の単語を置き換えようとしても、この行から見つけることができません。</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $lost = 1;
 print "You lost ", $lost, " t", ($lost == 1 ? "oo" : "ee"), "th!";
 </pre>
@@ -883,7 +885,7 @@
 <p class=original>Ternary operators may be nested:</p>
 <p>三項演算子はネストできます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $eggs = 5;
 print "You have ", $eggs == 0 ? "no eggs" :
                    $eggs == 1 ? "an egg"  :
@@ -903,7 +905,7 @@
 <p class=original>Basic C-style <tt>for</tt> loops are available, but these are obtuse and old-fashioned and should be avoided. Notice how we have to put a <tt>my</tt> in front of our iterator <tt>$i</tt>, in order to declare it:</p>
 <p>基本的なC-styleの<tt>for</tt>ループは利用できますが、わかりにくく、古臭いので、使うべきではありません。<tt>my</tt>をイテレータ<tt>$i</tt>の前に措いて、次のように宣言します:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 for(my $i = 0; $i &lt; scalar @array; $i++) {
 	print $i, ": ", $array[$i];
 }
@@ -911,7 +913,7 @@
 
 <p class=original>Native iteration over an array is much nicer. Note: unlike PHP, the <tt>for</tt> and <tt>foreach</tt> keywords are synonyms. Just use whatever looks most readable:</p>
 <p>配列のネイティブのイテレーションはより簡単です。注意: PHPと違い、 <tt>for</tt> と <tt>foreach</tt> キーワードはシノニムです。もっとも読みやすいもののいずれかを使ってください:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 foreach my $string ( @array ) {
 	print $string;
 }
@@ -920,7 +922,7 @@
 <p class=original>If you do need the indices, the range operator <tt>..</tt> creates an anonymous array of integers:</p>
 <p>複数のインデックスが必要なら、範囲演算子<tt>..</tt>で整数の無名配列を作れます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 foreach my $i ( 0 .. $#array ) {
 	print $i, ": ", $array[$i];
 }
@@ -931,7 +933,7 @@
 
 If you don't provide an explicit iterator, Perl uses a default iterator, . <tt>$_</tt>は最初のフレンドリーな組込の変数です:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 foreach ( @array ) {
 	print $_;
 }
@@ -939,7 +941,7 @@
 
 <p class=original>If using the default iterator, and you only wish to put a single statement inside your loop, you can use the super-short loop syntax:</p>
 <p>デフォルトのイテレータを使い、また、ループに単一のステートメントしか置かないなら、とても短いループのシンタックスを使えます:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print $_ foreach @array;
 </pre>
 
@@ -952,7 +954,7 @@
 <p class=original>You can't iterate over a hash. However, you can iterate over its keys. Use the <tt>keys</tt> built-in function to retrieve an array containing all the keys of a hash. Then use the <tt>foreach</tt> approach that we used for arrays:</p>
 <p>ハッシュはイテレートできません。そのキーをイテレートできます。組込関数の<tt>keys</tt>を使って、ハッシュの全てのキーを含む配列を取り出してください。それから、配列で使った<tt>foreach</tt>のアプローチを使います:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 foreach my $key (keys %scientists) {
 	print $key, ": ", $scientists{$key};
 }
@@ -960,7 +962,7 @@
 
 <p class=original>Since a hash has no underlying order, the keys may be returned in any order. Use the <tt>sort</tt> built-in function to sort the array of keys alphabetically beforehand:</p>
 <p>ハッシュには順番がありませんので、keysはどのような順番でも戻ります。組込の<tt>sort</tt>関数を使って、アルファベット順でキーの配列をソートできます:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 foreach my $key (sort keys %scientists) {
 	print $key, ": ", $scientists{$key};
 }
@@ -969,7 +971,7 @@
 <p class=original>There is also a special <tt>each</tt> built-in function which retrieves key/value pairs one at a time. Every time <tt>each</tt> is called, it returns an array containing two values, until the end of the array is reached, when a false value is returned. We assign the values of two scalars to the values of the array, simultaneously:</p>
 <p>特別な組込関数<tt>each</tt>もあり、これは、キー/値のペアを一度にひとつ取り出します。<tt>each</tt>が呼ばれるたびに、配列の最後に至るまで、偽の値が戻るまで、2つの値をもつ配列を返します。配列の値を2つのスカラに、同時に割り当てます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 while( my ($key, $value) = each %scientists ) {
 	print $key, ": ", $value;
 }
@@ -982,7 +984,7 @@
 
 <p><tt>next</tt> と <tt>last</tt>はループ進みを制御するのに使われます。多くのプログラミング言語では、それぞれ、<tt>continue</tt> と <tt>break</tt>となっています。オプションで、どのループにもラベルをつけることができます。慣例により、ラベルは <tt>全て大文字で</tt>書くことになっています。ループにラベルをつけることで、<tt>next</tt> と <tt>last</tt> にラベルを対象にできます。配列から全ての架空でない動物をリストする例です:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @input = (
 	"dragon", "camel", "cow", "pangolin", "unicorn",
 	"pig", "sheep", "donkey", "pig", "basilisk",
@@ -1016,42 +1018,42 @@
 
 <p>We'll use <tt>@stack</tt> to demonstrate these:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @stack = ("Fred", "Eileen", "Denise", "Charlie");
 print @stack; # "FredEileenDeniseCharlie"
 </pre>
 
 <p class=original><tt>pop</tt> extracts and returns the final element of the array. This can be thought of as the top of the stack:</p>
 <p><tt>pop</tt> は配列の最後の要素を引き出して返します。スタックの上として考えられます:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print pop @stack; # "Charlie"
 print @stack;     # "FredEileenDenise"
 </pre>
 
 <p class=original><tt>push</tt> appends extra elements to the end of the array:</p>
 <p><tt>push</tt> は追加の要素を配列の最後に付加します:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 push @stack, "Bob", "Alice";
 print @stack; # "FredEileenDeniseBobAlice"
 </pre>
 
 <p class=original><tt>shift</tt> extracts and returns the first element of the array:</p>
 <p><tt>shift</tt> は配列の最初の要素を引き出して返します:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print shift @stack; # "Fred"
 print @stack;       # "EileenDeniseBobAlice"
 </pre>
 
 <p class=original><tt>unshift</tt> inserts new elements at the beginning of the array:</p>
 <p><tt>unshift</tt> 配列の最初に新しい要素を挿入します:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 unshift @stack, "Hank", "Grace";
 print @stack; # "HankGraceEileenDeniseBobAlice"
 </pre>
 
 <p class=original><tt>pop</tt>, <tt>push</tt>, <tt>shift</tt> and <tt>unshift</tt> are all special cases of <tt>splice</tt>. <tt>splice</tt> removes and returns an array slice, replacing it with a different array slice:</p>
 <p><tt>pop</tt>、<tt>push</tt>、 <tt>shift</tt>、<tt>unshift</tt> は、全て、<tt>splice</tt>の特別なケースです。<tt>splice</tt> は、配列のスライスを削除して、返します。別の配列スライスでそれを置き換えます:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print splice(@stack, 1, 4, "&lt;&lt;&lt;", "&gt;&gt;&gt;"); # "GraceEileenDeniseBob"
 print @stack;                             # "Hank&lt;&lt;&lt;&gt;&gt;&gt;Alice"
 </pre>
@@ -1067,7 +1069,7 @@
 <p class="original">The <tt>join</tt> function concatenates many strings into one:</p>
 <p><tt>join</tt> 関数は多くの文字列を一つに結合します:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @elements = ("Antimony", "Arsenic", "Aluminum", "Selenium");
 print @elements;             # "AntimonyArsenicAluminumSelenium"
 print "@elements";           # "Antimony Arsenic Aluminum Selenium"
@@ -1079,7 +1081,7 @@
 <p class=original>The <tt>reverse</tt> function returns an array in reverse order:</p>
 <p><tt>reverse</tt> 関数は順番を逆にした配列を返します:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @numbers = ("one", "two", "three");
 print reverse(@numbers); # "threetwoone"
 </pre>
@@ -1089,7 +1091,7 @@
 <p class=original>The <tt>map</tt> function takes an array as input and applies an operation to every scalar <tt>$_</tt> in this array. It then constructs a new array out of the results. The operation to perform is provided in the form of a single expression inside braces:</p>
 <p><tt>map</tt>関数は入力として配列をとり、配列内の全てのスカラ <tt>$_</tt>を操作します。結果として新しい配列を作ります。操作はひとつのブレースで渡します::</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @capitals = ("Baton Rouge", "Indianapolis", "Columbus", "Montgomery", "Helena", "Denver", "Boise");
 
 print join ", ", map { uc $_ } @capitals;
@@ -1101,7 +1103,7 @@
 <p class=original>The <tt>grep</tt> function takes an array as input and returns a filtered array as output. The syntax is similar to <tt>map</tt>. This time, the second argument is evaluated for each scalar <tt>$_</tt> in the input array. If a boolean true value is returned, the scalar is put into the output array, otherwise not.</p>
 <p><tt>grep</tt>関数は入力として配列をとり、フィルターされた配列を出力します。シンタックスは<tt>map</tt>と似ています。今度は、第二引数は入力された配列の各スカラ<tt>$_</tt>を評価されます。ブーリアンで真の値が戻れば、スカラは配列として出力されますが、そうでなければ、出力されません。</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print join ", ", grep { length $_ == 6 } @capitals;
 # "Helena, Denver"
 </pre>
@@ -1109,7 +1111,7 @@
 <p class="original">Instead of a single Perl expression, you may supply a regular expression. In this case, the scalar is put into the output array only if the regular expression matches <tt>$_</tt>:</p>
 <p>単一のPerlの式ではなく、正規表現を渡せます。次のケースでは、正規表現が<tt>$_</tt>にマッチした場合のみ、スカラが配列に出力されます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print join ", ", grep m/^[B-H]/, @capitals;
 # "Baton Rouge, Columbus, Helena, Denver, Boise"
 </pre>
@@ -1117,7 +1119,7 @@
 <p class=original>Obviously, the length of the resulting array is the <em>number of successful matches</em>, which means you can use <tt>grep</tt> to quickly check whether an array contains an element:</p>
 <p>当然、結果の配列の長さは、<em>マッチに成功した数</em>になります、このとことは、<tt>grep</tt>を配列に要素があるかどうかを素早くチェックするのに使えることを意味します。:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print scalar grep { $_ eq "Columbus" } @capitals; # "1"
 </pre>
 
@@ -1129,7 +1131,7 @@
 <p class=original>By default, the <tt>sort</tt> function returns the input array, sorted into alphabetical order:</p>
 <p>デフォルトでは、<tt>sort</tt>関数は入力された配列をアルファベット順に並びかえます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my @elevations = (19, 1, 2, 100, 3, 98, 100, 1056);
 
 print join ", ", sort @elevations;
@@ -1142,7 +1144,7 @@
 <p class=original>The <tt>cmp</tt> operator does exactly this for strings:</p>
 <p><tt>cmp</tt> 演算子は文字列に対して、まさにこれをします:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print join ", ", sort { $a cmp $b } @elevations;
 # "1, 100, 100, 1056, 19, 2, 3, 98"
 </pre>
@@ -1150,7 +1152,7 @@
 <p class=original>The "spaceship operator", <tt>&lt;=&gt;</tt>, does the same for numbers:</p>
 <p>"スペースシップ演算子", <tt>&lt;=&gt;</tt>は、数字に対して同じことをします:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 print join ", ", sort { $a &lt;=&gt; $b } @elevations;
 # "1, 2, 3, 19, 98, 100, 100, 1056"
 </pre>
@@ -1158,7 +1160,7 @@
 <p class=original><tt>$a</tt> and <tt>$b</tt> are always scalars, but they can be references to quite complex objects which are difficult to compare. If you need more space for the comparison, you can create a separate subroutine and provide its name instead:</p>
 <p><tt>$a</tt> と <tt>$b</tt> は常にスカラーですが、比較が難しい非常に複雑なオブジェクトのリファレンスもありえます。比較によりスペースが必要なら、別のサブルーチンを作り、代わりにその名前を渡せます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 sub comparator {
 	# lots of code...
 	# return -1, 0 or 1
@@ -1208,28 +1210,34 @@
 <h2 class=original>User-defined subroutines</h2>
 <h2>ユーザー定義のサブルーチン</h2>
 
+<p class=original>Although the brackets are optional, subroutines should always be invoked using brackets, even when called with no arguments. This makes it clear that a subroutine call is happening.</p>
+<p>括弧はオプションですが、サブルーチンは、引数がひとつも無くても、常に括弧付きで使うべきです。こうしておけば、サブルーチンが呼ばれたことが、明確になります。</p>
+
 <p class=original>Subroutines are declared using the <tt>sub</tt> keyword. In contrast with built-in functions, user-defined subroutines always accept the same input: a list of scalars. That list may of course have a single element, or be empty. A single scalar is taken as a list with a single element. A hash with <var>N</var> elements is taken as a list with 2<var>N</var> elements.</p>
 
 <p>サブルーチンは<tt>sub</tt> キーワードを使って宣言されます。組込関数と対照的に、ユーザー定義のサブルーチンは常に同じ入力を受け付けます: スカラのリストです。そのリストは、もちろん、ひとつの要素か、空の場合もあります。ひとつのスカラは一つの要素のリストです。<var>N</var>要素のハッシュは2<var>N</var>要素のリストです。</p>
 
-<p class=original>Although the brackets are optional, subroutines should always be invoked using brackets, even when called with no arguments. This makes it clear that a subroutine call is happening.</p>
-<p>括弧はオプションですが、サブルーチンは、引数がひとつも無くても、常に括弧付きで使うべきです。こうしておけば、サブルーチンが呼ばれたことが、明確になります。</p>
-
 <p class=original>Once you're inside a subroutine, the arguments are available using the built-in array variable <tt>@_</tt>. Examples follow.</p>
 <p>サブルーチンの中では、組込の配列変数<tt>@_</tt>が使えます。例は以下に続きます。</p>
 
-<h3>Unpacking arguments</h3>
-<p>There's More Than One Way To unpack these arguments, but some are superior to others.</p>
-<p>The example subroutine <tt>leftPad</tt> below pads a string out to the required length using the supplied pad character. (The <tt>x</tt> function concatenates multiple copies of the same string in a row.) (Note: for brevity, these subroutines all lack some elementary error checking, i.e. ensuring the pad character is only 1 character, checking that the width is greater than or equal to the length of existing string, checking that all needed arguments were passed at all.)</p>
-<p><tt>leftPad</tt> is typically invoked as follows:</p>
-<pre class="perl">
+<h3 class=original>Unpacking arguments</h3>
+<h3>引数を取り出す</h3>
+<p class=original>There's More Than One Way To unpack these arguments, but some are superior to others.</p>
+<p>引数を取り出すのにいくつかやり方があります。 ですが、いくつかは、ほかのものより、より良いです。</p>
+
+<p class=original>The example subroutine <tt>leftPad</tt> below pads a string out to the required length using the supplied pad character. (The <tt>x</tt> function concatenates multiple copies of the same string in a row.) (Note: for brevity, these subroutines all lack some elementary error checking, i.e. ensuring the pad character is only 1 character, checking that the width is greater than or equal to the length of existing string, checking that all needed arguments were passed at all.)</p>
+<p>例のサブルーチン<tt>leftPad</tt>は、以下の例は、渡された詰め込み文字を使って、必要な長さになるまで文字列に付加します。(<tt>x</tt>関数は行に同じ文字列の複数のコピーをつなげます)。(注意: 簡潔さのために、これらのサブルーチンは全て基本的なエラーチェックを行っていません。例えば、詰め込み文字が1文字のみであることを保証するとか、長さが既存の文字列の長さ以上であるか、必要な引数が全て渡されているかどうか、など)。</p>
+<p class=original><tt>leftPad</tt> is typically invoked as follows:</p>
+<p><tt>leftPad</tt> は典型的に、次のように呼ばれます:</p>
+<pre class="perl prettyprint">
 print leftPad("hello", 10, "+"); # "+++++hello"
 </pre>
 
 <ol>
 	<li>
-		<p>Some people don't unpack the arguments at all and use <tt>@_</tt> "live". This is unreadable and discouraged:</p>
-<pre class="perl">
+		<p class=original>Some people don't unpack the arguments at all and use <tt>@_</tt> "live". This is unreadable and discouraged:</p>
+  		<p>人によっては、引数を取り出さずに<tt>@_</tt>を"そのまま"使うかもしれません。これは、読みにくく、推奨されません:</p>
+<pre class="perl prettyprint">
 sub leftPad {
 	my $newString = ($_[2] x ($_[1] - length $_[0])) . $_[0];
 	return $newString;
@@ -1237,8 +1245,9 @@
 </pre>
 	</li>
 	<li>
-		<p>Unpacking <tt>@_</tt> is only slightly less strongly discouraged:</p>
-<pre class="perl">
+		<p class=original>Unpacking <tt>@_</tt> is only slightly less strongly discouraged:</p>
+		<p><tt>@_</tt>の取り出しは、ほんの少しずつするのは、強く推奨されません:</p>
+<pre class="perl prettyprint">
 sub leftPad {
 	my $oldString = $_[0];
 	my $width     = $_[1];
@@ -1249,8 +1258,8 @@
 </pre>
 	</li>
 	<li>
-		<p>Unpacking <tt>@_</tt> by removing data from it using <tt>shift</tt> is highly recommended for up to 4 arguments:</p>
-<pre class="perl">
+		<p class=original>Unpacking <tt>@_</tt> by removing data from it using <tt>shift</tt> is highly recommended for up to 4 arguments:</p
+		<p><tt>@_</tt>を取り出すのに、<tt>shift</tt>を使って、@_からデータを削除するのは、引数が4つまでなら強く推奨されます:</p<pre class="perl prettyprint">
 sub leftPad {
 	my $oldString = shift @_;
 	my $width     = shift @_;
@@ -1259,8 +1268,9 @@
 	return $newString;
 }
 </pre>
-		<p>If no array is provided to the <tt>shift</tt> function, then it operates on <tt>@_</tt> implicitly. This approach is seen very commonly:</p>
-<pre class="perl">
+		<p class=original>If no array is provided to the <tt>shift</tt> function, then it operates on <tt>@_</tt> implicitly. This approach is seen very commonly:</p>
+		<p><tt>shift</tt>に配列を渡さなければ、暗黙に、<tt>@_</tt>に対して操作します。このアプローチはとてもよく見られます:</p>
+	<pre class="perl prettyprint">
 sub leftPad {
 	my $oldString = shift;
 	my $width     = shift;
@@ -1269,11 +1279,13 @@
 	return $newString;
 }
 </pre>
-		<p>Beyond 4 arguments it becomes hard to keep track of what is being assigned where.</p>
+		<p class=original>Beyond 4 arguments it becomes hard to keep track of what is being assigned where.</p>
+		<p>引数が5つ以上になるなら、どこで割り当てたかを追い続けるのが難しくなるでしょう。</p>
 	</li>
 	<li>
-		<p>You can unpack <tt>@_</tt> all in one go using multiple simultaneous scalar assignment. Again, this is okay for up to 4 arguments:</p>
-<pre class="perl">
+		<p class=original>You can unpack <tt>@_</tt> all in one go using multiple simultaneous scalar assignment. Again, this is okay for up to 4 arguments:</p>
+		<p><tt>@_</tt>の取り出しを、同時に全て一度にスカラに割り当てることが出来ます。 この方法も、引数が4つまでなら問題ありません:</p>
+<pre class="perl prettyprint">
 sub leftPad {
 	my ($oldString, $width, $padChar) = @_;
 	my $newString = ($padChar x ($width - length $oldString)) . $oldString;
@@ -1282,12 +1294,14 @@
 </pre>
 	</li>
 	<li>
-		<p>For subroutines with large numbers of arguments or where some arguments are optional or cannot be used in combination with others, best practice is to require the user to provide a hash of arguments when calling the subroutine, and then unpack <tt>@_</tt> back into that hash of arguments. For this approach, our subroutine call would look a little different:</p>
-<pre class="perl">
+		<p class=original>For subroutines with large numbers of arguments or where some arguments are optional or cannot be used in combination with others, best practice is to require the user to provide a hash of arguments when calling the subroutine, and then unpack <tt>@_</tt> back into that hash of arguments. For this approach, our subroutine call would look a little different:</p>
+		<p>引数が多いサブルーチンや、いくつかの引数がオプションであるとか、他との組み合わせで使えないなら、最も良い方法は、サブルーチンの呼び出し時に、ユーザにハッシュの引数を渡させることです。そして、<tt>@_</tt>をハッシュに取り出します。このアプローチのために、サブルーチンの呼び出しはちょっと違ったものになります:</p>
+<pre class="perl prettyprint">
 print leftPad("oldString" =&gt; "pod", "width" =&gt; 10, "padChar" =&gt; "+");
 </pre>
-		<p>And the subroutine itself looks like this:</p>
-<pre class="perl">
+		<p class=original>And the subroutine itself looks like this:</p>
+		<p>そして、サブルーチン自身は次のようになります:</p>
+<pre class="perl prettyprint">
 sub leftPad {
 	my %args = @_;
 	my $newString = ($args{"padChar"} x ($args{"width"} - length $args{"oldString"})) . $args{"oldString"};
@@ -1296,9 +1310,13 @@
 </pre>
 	</li>
 </ol>
-<h3>Returning values</h3>
-<p>Like other Perl expressions, subroutine calls may display contextual behaviour. You can use the <tt>wantarray</tt> function (which should be called <tt>wantlist</tt> but never mind) to detect what context the subroutine is being evaluated in, and return a result appropriate to that context:</p>
-<pre class="perl">
+<h3 class=original>Returning values</h3>
+<h3>戻り値</h3>
+<p class=original>Like other Perl expressions, subroutine calls may display contextual behaviour. You can use the <tt>wantarray</tt> function (which should be called <tt>wantlist</tt> but never mind) to detect what context the subroutine is being evaluated in, and return a result appropriate to that context:</p>
+
+<p>他のPerlの式と同様、サブルーチン呼び出しは、コンテキスト依存の振る舞いをします。<tt>wantlist</tt>(<tt>wantlist</tt>と呼ばれるべきですが、気にしないでください)を使って、どのコンテキストでサブルーチンが評価されているかをチェックでき、コンテキストに適した結果を返すことが出来ます:</p>
+
+<pre class="perl prettyprint">
 sub contextualSubroutine {
 	# Caller wants a list. Return a list
 	return ("Everest", "K2", "Etna") if wantarray;
@@ -1314,9 +1332,12 @@
 print $scalar; # "Everest ::: K2 ::: Etna"
 </pre>
 
-<h2>A quick note on variables</h2>
-<p>All the variables you have seen so far are <i>lexical</i> variables, which are declared using the <tt>my</tt> keyword and last until the end of the enclosing block or file.</p>
-<p><i>Package</i> variables, which we are about to meet, are declared using the <tt>our</tt> keyword and are effectively global in scope.</p>
+<h2 class=original>A quick note on variables</h2>
+<h2>変数についての簡単なメモ</h2>
+<p class=original>All the variables you have seen so far are <i>lexical</i> variables, which are declared using the <tt>my</tt> keyword and last until the end of the enclosing block or file.</p>
+<p>今まで見てきた全ての変数は、<i>レキシカル</i>変数です。それらは、<tt>my</tt>キーワードを使って宣言されており、ブロックかファイルの終わりまで有効です。</p>
+<p class=original><i>Package</i> variables, which we are about to meet, are declared using the <tt>our</tt> keyword and are effectively global in scope.</p>
+<p><i>パッケージ</i>変数は、すぐに出てきますが、<tt>our</tt>キーワードを使って宣言され、スコープ内のグローバル変数として有効になります</p>
 <!--
 <h3>Built-in variables</h3>
 <p><strong>The complete list of built-in variables is <a href="http://perldoc.perl.org/perlvar.html">perlvar</a>.</strong></p>
@@ -1328,15 +1349,19 @@
 	<li><tt>use English</tt>. This call creates human-readable aliases for all built-in variables. For example, <tt>$"</tt>, <tt>$,</tt> and <tt>$!</tt> can be used as <tt>$LIST_SEPARATOR</tt>, <tt>$OUTPUT_FIELD_SEPARATOR</tt> and <tt>$OS_ERROR</tt> respectively.</li>
 </ul>
 -->
-<h2>Packages and modules</h2>
+<h2 class=original>Packages and modules</h2>
+<h2>パッケージとモジュール</h2>
 
-<p>In Perl, packages and modules are different things.</p>
+<p class=original>In Perl, packages and modules are different things.</p>
+<p>Perlでは、パッケージとモジュールは違うものです。</p>
 
-<h3>Packages</h3>
+<h3 class=original>Packages</h3>
+<h3>パッケージ</h3>
 
-<p>A <i>package</i> is a namespace in which subroutines and package variables can be declared. Any subroutine or package variable you declare is implicitly declared within the current package. At the beginning of execution, you are in the <tt>main</tt> package, but you can switch package using the <tt>package</tt> built-in function:</p>
+<p class=original>A <i>パッケージ</i> is a namespace in which subroutines and package variables can be declared. Any subroutine or package variable you declare is implicitly declared within the current package. At the beginning of execution, you are in the <tt>main</tt> package, but you can switch package using the <tt>package</tt> built-in function:</p>
+<p><i>package</i>は名前空間で、その中で、宣言したサブルーチンやパッケージ変数は、暗黙的に、現在のパッケージ内で宣言されます。実行の最初は、<tt>main</tt>パッケージになりますが、組込関数の<tt>package</tt>を使って、パッケージを切り替えられます:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 sub subroutine {
 	print "universe";
 }
@@ -1353,9 +1378,10 @@
 our $variable = "mashed";
 </pre>
 
-<p>Any time you call a subroutine, you implicitly call a subroutine which is inside the current package. The same is true of package variables. Alternatively, you can explicitly provide a package. See what happens if we continue the above script:</p>
+<p class=original>Any time you call a subroutine, you implicitly call a subroutine which is inside the current package. The same is true of package variables. Alternatively, you can explicitly provide a package. See what happens if we continue the above script:</p>
+<p>サブルーチンを呼んだときはいつでも、暗黙に現在のパッケージ内のサブルーチンを呼んでいます。同じことは、パッケージ変数にも言えます。その代わりに、パッケージを明示的に書くこともできます。下のスクリプトを実行したら、何が起きるでしょうか:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 subroutine();    # "kingedward"
 print $variable; # "mashed"
 
@@ -1365,11 +1391,12 @@
 print $Food::Potatoes::variable; # "mashed"
 </pre>
 
-<h3>Modules</h3>
-
-<p>A <i>module</i> is a <tt>.pm</tt> file that you can include in another Perl file (script or module). A module is a text file with exactly the same syntax as a <tt>.pl</tt> Perl script. An example module might be located at <tt>C:\foo\bar\baz\Mathematics\Powers.pm</tt> or <tt>/foo/bar/baz/Mathematics/Powers.pm</tt>, and read as follows:</p>
+<h3 class=original>Modules</h3>
+<h3>モジュール</h3>
 
-<pre class="perl">
+<p class=original>A <i>module</i> is a <tt>.pm</tt> file that you can include in another Perl file (script or module). A module is a text file with exactly the same syntax as a <tt>.pl</tt> Perl script. An example module might be located at <tt>C:\foo\bar\baz\Mathematics\Powers.pm</tt> or <tt>/foo/bar/baz/Mathematics/Powers.pm</tt>, and read as follows:</p>
+<p>A <i>モジュール</i>は、他のPerlファイル(スクリプトかモジュール)に含めることが出来る<tt>.pm</tt>ファイルです。モジュールは <tt>.pl</tt> Perlスクリプトとまったく同じシンタックのステキストファイルです。例のモジュールは、<tt>C:\foo\bar\baz\Mathematics\Powers.pm</tt> か <tt>/foo/bar/baz/Mathematics/Powers.pm</tt>にあります。続きを読んでください:</p>
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1384,9 +1411,12 @@
 1;
 </pre>
 
-<p>Because a module is executed from top to bottom when it is loaded, you need to return a true value at the end to show that it was loaded successfully. <tt>return 1</tt> would suffice. If you don't use <tt>return</tt>, the value returned is <em>the value returned when the most recent statement was evaluated</em>. So, you will often see <tt>1</tt> at the bottom of a Perl module, as shown above.</p>
+<p class=original>Because a module is executed from top to bottom when it is loaded, you need to return a true value at the end to show that it was loaded successfully. <tt>return 1</tt> would suffice. If you don't use <tt>return</tt>, the value returned is <em>the value returned when the most recent statement was evaluated</em>. So, you will often see <tt>1</tt> at the bottom of a Perl module, as shown above.</p>
+<p>モジュールはロードされると、最初から最後まで実行されるので、ロードが成功したことを示すために、最後に真の値を返す必要があります。<tt>return 1</tt>で十分です。<tt>return</tt>を使わなければ、返される値は、<em>直近のステートメントが評価されたときの戻り値</em>になります。そのために、上で見たように、Perlモジュールの最後に<tt>1</tt>が良く見られることになります。</p>
+
+<p class=original>So that the Perl interpreter can find them, directories containing Perl modules should be listed in your environment variable <tt>PERL5LIB</tt> beforehand. List the root directory containing the modules, don't list the module directories or the modules themselves:</p>
+<p>Perlインタープリタはそれらを見つけることができるためには、その前に、Perlモジュールが入っているディレクトリが、環境変数<tt>PERL5LIB</tt>にリストされているべきです。モジュールが入っているルートディレクトリをリストしてください。モジュールのディレクトリやモジュール自身をリストしてはいけません。</p>
 
-<p>So that the Perl interpreter can find them, directories containing Perl modules should be listed in your environment variable <tt>PERL5LIB</tt> beforehand. List the root directory containing the modules, don't list the module directories or the modules themselves:</p>
 <pre class="bash">
 set PERL5LIB=C:\foo\bar\baz;%PERL5LIB%
 </pre>
@@ -1396,8 +1426,9 @@
 </pre>
 
 <p>Once the Perl module is created and <tt>perl</tt> knows where to look for it, you can use the <tt>require</tt> built-in function to search for and execute it during a Perl script. For example, calling <tt>require Mathematics::Powers</tt> causes the Perl interpreter to search each directory listed in <tt>PERL5LIB</tt> in turn, looking for a file called <tt>Mathematics/Powers.pm</tt>. After the module has been loaded, the subroutines and variables that were defined there suddenly become available in the main script. Our example script might be called <tt>powers.pl</tt> and read as follows:</p>
+<p class=original>Perlモジュールが作られて、<tt>perl</tt>がそれがどこにあるかを知っていれば、組込の<tt>require</tt>関数を使って探し、Perlのスクリプト中で実行することができます。例えば、<tt>require Mathematics::Powers</tt>を呼ぶと、Perlインタープリタは<tt>PERL5LIB</tt>にリストされているディレクトリを順番に、<tt>Mathematics/Powers.pm</tt>というファイルを探します。モジュールがロードされたら、突然にサブルーチンと変数がメインスクリプトに定義されます。この例のスクリプトを<tt>powers.pl</tt>と呼びましょう。続けて読んでくさい:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1406,8 +1437,11 @@
 print Mathematics::Powers::exp(2); # "7.3890461584"
 </pre>
 
-<p>Now read this next bit carefully.</p>
-<p>Packages and modules are two completely separate and distinct features of the Perl programming language. The fact that they both use the same double colon delimiter is a monumental red herring. It is possible to switch packages multiple times over the course of a script or module, and it is possible to use the same package declaration in multiple locations in multiple files. Calling <tt>require Foo::Bar</tt> <em>does not</em> look for and load a file with a <tt>package Foo::Bar</tt> declaration somewhere inside it. Calling <tt>require Foo::Bar</tt> <em>does not</em> necessarily load subroutines or package variables in the <tt>Foo::Bar</tt> namespace. Calling <tt>require Foo::Bar</tt> merely loads a file called <tt>Foo/Bar.pm</tt>, which need not have <em>any</em> kind of package declaration inside it at all, and in fact might declare <tt>package Baz::Qux</tt> and other nonsense inside it for all you know.</p>
+<p class=original>Now read this next bit carefully.</p>
+<p>では、次はちょっと注意して読んでください。</p>
+<p class=original>Packages and modules are two completely separate and distinct features of the Perl programming language. The fact that they both use the same double colon delimiter is a monumental red herring. It is possible to switch packages multiple times over the course of a script or module, and it is possible to use the same package declaration in multiple locations in multiple files. Calling <tt>require Foo::Bar</tt> <em>does not</em> look for and load a file with a <tt>package Foo::Bar</tt> declaration somewhere inside it. Calling <tt>require Foo::Bar</tt> <em>does not</em> necessarily load subroutines or package variables in the <tt>Foo::Bar</tt> namespace. Calling <tt>require Foo::Bar</tt> merely loads a file called <tt>Foo/Bar.pm</tt>, which need not have <em>any</em> kind of package declaration inside it at all, and in fact might declare <tt>package Baz::Qux</tt> and other nonsense inside it for all you know.</p>
+<p>パッケージとモジュールの2つは、プログラミング言語Perlにおいて完全に分かれており、区別された機能です。この2つが同じダブルコロンのデリミタを使っていることは、記念碑的な赤ニシンです。これは、スクリプトまたはモジュールのコース経由でパッケージを複数回切り替えることができ、また、複数のファイル内の複数の場所で同一のパッケージ宣言を使うこともできます。<tt>require Foo::Bar</tt>を呼ぶことは<tt>Foo::Bar</tt>名前空間にあるサブルーチンやパッケージ変数を必ずしもロード<em>しません</em>。<tt>require Foo::Bar</tt>を呼ぶことは、単に<tt>Foo/Bar.pm</tt>というファイルをロードするだけであり、そのファイルに、<em>どのような</em>種類のパッケージ宣言も必要有りません。実際には、あなたの知っている全ての<tt>package Baz
 ::Qux</tt>のような意味のないものも宣言できます。</p>
+
 <p>Likewise, a subroutine call <tt>Baz::Qux::processThis()</tt> need not necessarily have been declared inside a file named <tt>Baz/Qux.pm</tt>. It could have been declared <em>literally anywhere</em>.</p>
 <p>Separating these two concepts is one of the stupidest features of Perl, and treating them as separate concepts invariably results in chaotic, maddening code. Fortunately for us, the majority of Perl programmers obey the following two laws:</p>
 <ol>
@@ -1428,7 +1462,7 @@
 
 <p>A quick example. An example module <tt>Animals/Animals.pm</tt> containing a class <tt>Animals::Animal</tt> reads like this:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1456,7 +1490,7 @@
 
 <p>And a Perl script making use of this class might read:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1478,7 +1512,7 @@
 
 <p>To create a class inheriting from a base class, populate the <tt>@ISA</tt> package variable. Let's suppose we subclassed <tt>Animals::Animal</tt> with <tt>Animals::Bear</tt>, located at <tt>Animals/Bear.pm</tt>:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1501,7 +1535,7 @@
 
 <p>And some sample code:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1519,7 +1553,7 @@
 
 <p>A <tt>BEGIN</tt> block is executed as soon as the compiler has finished parsing it, even before the compiler parses the rest of the file. It is ignored at execution time.</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1534,7 +1568,7 @@
 
 <p>A <tt>BEGIN</tt> block is always executed first. If you create multiple <tt>BEGIN</tt> blocks (don't), they are executed in order from top to bottom as the compiler encounters them. A <tt>BEGIN</tt> block always executes first even if it is placed halfway through a script (don't do this) or even at the end (or this).</p>
 <p>Because they are executed at compilation time, a <tt>BEGIN</tt> block placed inside a conditional block will <em>still</em> be executed first, even if the conditional evaluates to false and despite the fact that the conditional <em>has not been evaluated at all yet</em> and in fact <em>may never be evaluated</em>. <strong>Do not put <tt>BEGIN</tt> blocks in conditionals!</strong> If you want to do something conditionally at compile time, you need to put the conditional <em>inside</em> the <tt>BEGIN</tt> block:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 BEGIN {
 	if($condition) {
 		# etc.
@@ -1545,13 +1579,13 @@
 <h2><tt>use</tt></h2>
 <p>Okay. Now that you understand the obtuse behaviour and semantics of packages, modules, class methods and <tt>BEGIN</tt> blocks, I can explain the exceedingly commonly-seen <tt>use</tt> function.</p>
 <p>The following three statements:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 use Bugs::Caterpillar ("crawl", "pupate");
 use Bugs::Caterpillar ();
 use Bugs::Caterpillar;
 </pre>
 <p>are respectively equivalent to:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 BEGIN {
 	require Bugs::Caterpillar;
 	Bugs::Caterpillar-&gt;import("crawl", "pupate");
@@ -1577,7 +1611,7 @@
 
 <p>This concept is easiest to grasp using an example. Here's what <tt>Bugs/Caterpillar.pm</tt> looks like:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1599,7 +1633,7 @@
 
 <p>And here's a script which makes use of the <tt>Bugs/Caterpillar.pm</tt> module:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1630,7 +1664,7 @@
 
 <p>Filehandles don't need declaring explicitly using <tt>my</tt> or <tt>our</tt>. They pop into existence automatically. A file handle can be opened using <tt>open</tt>. <tt>open</tt> must be supplied with a <i>method</i>. The method <tt>&lt;</tt> indicates that we wish to open the file to read from it:</p>
 
-<pre class="perl">
+<pre class="perl prettyprint">
 my $f = "text.txt";
 my $result = open INPUT, "&lt;", $f;
 
@@ -1640,23 +1674,23 @@
 </pre>
 
 <p>As seen above, you should always check that the <tt>open</tt> operation completed successfully. If successful, <tt>open</tt> returns a true value. Otherwise, it returns <tt>undef</tt>. This checking procedure being rather tedious, a frequently-seen idiom is this:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 open(INPUT, "&lt;", $f) || die "Couldn't open ", $f, " for reading";
 </pre>
 <p>Notice how without the brackets, this would be:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 open INPUT, "&lt;", $f || die "Couldn't open ", $f, " for reading";
 </pre>
 <p>Which is the same as the nonsensical:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 open INPUT, "&lt;", ($f || die "Couldn't open ", $f, " for reading");
 </pre>
 <p>For this reason (and, as far as I can tell, solely this reason), Perl provides a completely separate operator, <tt>or</tt>, which works exactly like <tt>||</tt> except that it has extremely low precedence, making this possible:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 open INPUT, "&lt;", $f or die "Couldn't open ", $f, " for reading";
 </pre>
 <p>To read a line of text from a filehandle, use the <tt>readline</tt> built-in function. <tt>readline</tt> returns a full line of text, with a line break intact at the end of it (except possibly for the final line of the file), or <tt>undef</tt> if you've reached the end of the file.</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 while(1) {
 	my $line = readline INPUT;
 	last unless defined $line;
@@ -1664,51 +1698,51 @@
 }
 </pre>
 <p>To truncate that possible trailing line break, use <tt>chomp</tt>:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 chomp $line;
 </pre>
 <p>Note that <tt>chomp</tt> acts on <tt>$line</tt> in place. <tt>$line = chomp $line</tt> is probably not what you want.</p>
 <p>You can also use <tt>eof</tt> to detect the end of the file:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 while(!eof INPUT) {
 	my $line = readline INPUT;
 	# process $line...
 }
 </pre>
 <p>But beware of just using <tt>while(my $line = readline INPUT)</tt>, because if <tt>$line</tt> turns out to be <tt>"0"</tt>, the loop will terminate early. If you want to write something like that, Perl provides the <tt>&lt;&gt;</tt> operator which wraps up <tt>readline</tt> in a fractionally safer way. This is very commonly-seen and perfectly safe:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 while(my $line = &lt;INPUT&gt;) {
 	# process $line...
 }
 </pre>
 <p>And even:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 while(&lt;INPUT&gt;) {
 	# process $_...
 }
 </pre>
 <p>To read a single line of user input:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $line = &lt;STDIN&gt;;
 </pre>
 <p>To just wait for the user to hit Enter:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 &lt;STDIN&gt;;
 </pre>
 <p>Calling <tt>&lt;&gt;</tt> with no filehandle reads data from standard input, or from any files named in arguments when the Perl script was called.</p>
 <p>Writing to a file involves first opening it in a different mode. The method <tt>&gt;</tt> indicates that we wish to open the file to write to it. (<tt>&gt;</tt> will clobber the content of the target file if it already exists and has content. To merely append to an existing file, use mode <tt>&gt;&gt;</tt>). Then, simply provide the filehandle as a zeroth argument for the <tt>print</tt> function.</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 open OUTPUT, "&gt;", $f or die "Couldn't open ", $f, " for writing";
 print OUTPUT "The eagles have left the nest";
 </pre>
 <p>Notice the absence of a comma between the filehandle and the first argument in <tt>print</tt>. As you've gathered, if the filehandle is omitted, <tt>STDOUT</tt> is used by default.</p>
 <p>File handles are actually closed automatically at script exit time, but otherwise:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 close INPUT;
 close OUTPUT;
 </pre>
 <p>A scalar variable may hold a reference to a file handle instead of a variable:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $fh;
 open $fh, "&lt;", "text.txt" or die;
 while(&lt;$fh&gt;) {
@@ -1721,18 +1755,18 @@
 <p>You can exit from a Perl script with the return code of your choice (from 0 to 255) using <tt>exit</tt>.</p>
 <p>Perl provides More Than One Way To - in a single call - spawn a child process, pause the current script until the child process has finished, and then resume interpretation of the current script. Whichever method is used, you will find that immediately afterwards, the built-in variable <tt>$?</tt> (<tt>$CHILD_ERROR</tt>) has been populated with the status word that was returned from that child process's termination. You can get the return code by taking just the highest 8 of those 16 bits: <tt>$? >> 8</tt>.</p>
 <p>The <tt>system</tt> function can be used to invoke another program with the arguments listed. The value returned by <tt>system</tt> is the same value with which <tt>$?</tt> is populated:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $rc = system "perl", "anotherscript.pl", "foo", "bar", "baz";
 $rc >>= 8;
 print $rc; # "37";
 </pre>
 <p>Alternatively, you can use backticks <tt>``</tt> to run an actual command at the command line and capture the standard output from that command. In scalar context the entire output is returned as a single string. In list context, the entire output is returned as an array of strings, each one representing a line of output.</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $text = `perl anotherscript.pl foo bar baz`;
 print $text; # "foobarbaz"
 </pre>
 <p>This is the behaviour which would be seen if <tt>anotherscript.pl</tt> contained, for example:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 use strict;
 use warnings;
 
@@ -1745,13 +1779,13 @@
 <ul>
 	<li>
 		<p>There's an alternate syntax, <tt>qw{ }</tt>, for declaring arrays. This often seen in <tt>use</tt> statements:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 use Account qw{create open close suspend delete};
 </pre>
 	</li>
 	<li>
 		<p><tt>qr//</tt> can be used to put a regex into a scalar variable. This is especially useful because recompiling a regular expression multiple times actually takes substantial time:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my @capitals = ("Baton Rouge", "Indianapolis", "Columbus", "Montgomery", "Helena", "Denver", "Boise");
 my $regex = qr/^[B-H]/;
 print join ", ", grep /$regex/, @capitals;
@@ -1759,7 +1793,7 @@
 	</li>
 	<li>
 		<p><tt>qx{ }</tt> can be used instead of `backticks` to invoke a program and capture its output:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 my $text = qx{perl anotherscript.pl foo bar baz};
 </pre>
 	</li>
@@ -1774,7 +1808,7 @@
 <p>The Data::Dumper module can be used to output an arbitrary scalar variable to the screen. This is an essential debug tool.</p>
 
 <p>Warning! Many built-in functions can be called with no arguments, <strong>causing them to operate on <tt>$_</tt> instead</strong>. Hopefully this will help you understand formations like:</p>
-<pre class="perl">
+<pre class="perl prettyprint">
 print foreach @array;
 
 foreach ( @array ) {
@@ -1784,17 +1818,20 @@
 <p>I dislike this formation because it can lead to problems when refactoring.</p>
 
 
-<h3>File tests</h3>
+<h3 class=original>File tests</h3>
+<h3>ファイルテスト</h3>
 
-<p>The function <tt>-e</tt> is a built-in function which tests whether the named file exists.</p>
-<pre class="perl">
+<p class=original>The function <tt>-e</tt> is a built-in function which tests whether the named file exists.</p>
+<p>関数<tt>-e</tt> は組込の関数で与えられた名前のファイルが存在するかどうかをテストします。</p>
+<pre class="perl prettyprint">
 print "what" unless -e "/usr/bin/perl";
 </pre>
-<p>The function <tt>-d</tt> is a built-in function which tests whether the named file is a directory.</p>
-<p>The function <tt>-f</tt> is a built-in function which tests whether the named file is a plain file.</p>
-<p>These are just three of a large class of functions of the form <tt>-X</tt> where <tt>X</tt> is some lower- or upper-case letter. These functions are called <i>file tests</i>. Note the leading minus sign. In a Google query, the minus sign indicates to exclude results containing this search term. This makes file tests hard to Google for! Just search for "perl file test" instead.</p>
-
-
+<p class=original>The function <tt>-d</tt> is a built-in function which tests whether the named file is a directory.</p>
+<p>関数<tt>-d</tt> は組込の関数で与えられた名前のファイルがディレクトリかどうかをテストします。</p>
+<p class=original>The function <tt>-f</tt> is a built-in function which tests whether the named file is a plain file.</p>
+<p>関数<tt>-f</tt> は組込の関数で与えられた名前のファイルが普通のファイルかどうかをテストします。</p>
+<p class=original>These are just three of a large class of functions of the form <tt>-X</tt> where <tt>X</tt> is some lower- or upper-case letter. These functions are called <i>file tests</i>. Note the leading minus sign. In a Google query, the minus sign indicates to exclude results containing this search term. This makes file tests hard to Google for! Just search for "perl file test" instead.</p>
+<p><tt>-X</tt>形式の大きなクラスの関数の3つの関数です。<tt>X</tt>は小文字か大文字です。これらの関数は<i>ファイルテスト</i>と呼ばれます。マイナス記号が先に来ることに気をつけてください。Googleクエリでは、マイナス記号は、その言葉を結果に含めないことを指示します。そのため、ファイルテストをGoogleで検索しづらくしています! 代わりに、"perl file test"で検索して下さい。</p>
 
 <script type="text/javascript"><!--
 	var sc_project=667681; 



perldocjp-cvs メーリングリストの案内
Zurück zum Archiv-Index