Amit Saxena <[EMAIL PROTECTED]> wrote:
> What's the difference between "=>" and ">=" in Perl ?
>From "perldoc perlop":
Comma Operator
Binary "," is the comma operator. In scalar context it evaluates its
left argument, throws that value away, then evalu-
ates its right argument and returns that value. This is just like C's
comma operator.
In list context, it's just the list argument separator, and inserts both
its arguments into the list.
The "=>" operator is a synonym for the comma, but forces any word
(consisting entirely of word characters) to its left to
be interpreted as a string (as of 5.001). This includes words that
might otherwise be considered a constant or function
call.
HTH,
Thomas
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/