diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | pod/perltrap.pod | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -31,6 +31,7 @@ Alan Ferrency <alan@pair.com> Albert Chin-A-Young <china@thewrittenword.com> Albert Dvornik <bert@genscan.com> Alessandro Forghieri <alf@orion.it> +Alexei Alexandrov <alexei.alexandrov@gmail.com> Alex Gough <alex@rcon.rog> Alex Vandiver <alexmv@mit.edu> Alexander Gough <alex-p5p@earth.li> 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 |