> Ooh. Interesting. Well spotted. I added this item to perltrap: > > =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. > > Nicholas Clark >
Thanks. One correction: 'uses "=", "!=", "<" etc for string comparisons' should be 'uses "==", "!=", "<" etc for string comparisons'