Change 23663 by [EMAIL PROTECTED] on 2004/12/21 11:58:53

        Note that the shell's test uses eq etc for numbers, = etc for
        strings, the reverse of Perl, which is definitely a trap.
        Spotted by Alexei Alexandrov.

Affected files ...

... //depot/perl/AUTHORS#127 edit
... //depot/perl/pod/perltrap.pod#33 edit

Differences ...

==== //depot/perl/AUTHORS#127 (text) ====
Index: perl/AUTHORS
--- perl/AUTHORS#126~23662~     Mon Dec 20 05:38:45 2004
+++ perl/AUTHORS        Tue Dec 21 03:58:53 2004
@@ -31,6 +31,7 @@
 Albert Chin-A-Young            <[EMAIL PROTECTED]>
 Albert Dvornik                 <[EMAIL PROTECTED]>
 Alessandro Forghieri           <[EMAIL PROTECTED]>
+Alexei Alexandrov              <[EMAIL PROTECTED]>
 Alex Gough                     <[EMAIL PROTECTED]>
 Alex Vandiver                  <[EMAIL PROTECTED]>
 Alexander Gough                        <[EMAIL PROTECTED]>

==== //depot/perl/pod/perltrap.pod#33 (text) ====
Index: perl/pod/perltrap.pod
--- perl/pod/perltrap.pod#32~20154~     Fri Jul 11 11:54:09 2003
+++ perl/pod/perltrap.pod       Tue Dec 21 03:58:53 2004
@@ -267,6 +267,13 @@
 The environment is not automatically made available as separate scalar
 variables.
 
+=item *
+
+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.
+
 =back
 
 =head2 Perl Traps
End of Patch.

Reply via email to