diff options
Diffstat (limited to 'pod/perltrap.pod')
-rw-r--r-- | pod/perltrap.pod | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perltrap.pod b/pod/perltrap.pod index d8f667c736..0ad0086a59 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -267,6 +267,13 @@ The arguments are available via @ARGV, not $1, $2, etc. 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 |