argra****@users*****
argra****@users*****
2008年 5月 14日 (水) 05:26:40 JST
Index: docs/perl/5.10.0/perltrap.pod diff -u docs/perl/5.10.0/perltrap.pod:1.1 docs/perl/5.10.0/perltrap.pod:1.2 --- docs/perl/5.10.0/perltrap.pod:1.1 Wed Apr 23 20:13:25 2008 +++ docs/perl/5.10.0/perltrap.pod Wed May 14 05:26:40 2008 @@ -370,11 +370,10 @@ =end original -The shell's C<test> uses "=", "!=", "<" etc for string comparisons and "-eq", -"-ne", "-lt" etc for numeric comparisons. This is the reverse of Perl, which -uses C<eq>, C<ne>, C<lt> for string comparisons, and C<==>, C<!=> C<< < >> etc -for numeric comparisons. -(TBT) +シェルの C<test> は "=", "!=", "<" などを文字列比較に使い、"-eq", "-ne", +"-lt" などを数値比較に使います。 +これは Perl とは逆です; Perl では C<eq>, C<ne>, C<lt> を文字列比較に使い、 +C<==>, C<!=> C<< < >> などを数値比較に使います。 =back