Re: perltrap: Shell traps page might be updated
[email protected] (Alexei Alexandrov) Tue, 21 Dec 2004 15:51:25 +0300
| Newsgroups | perl.documentation |
|---|---|
| Message-ID | <[email protected]> |
> 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'