On Jul 31, Christiam Camacho said:

>     Is the only difference between "and" and "&&" and
>"or" and "||" the precedence of the operators?

&& has higher precedence (it binds more tightly) than 'and'.

  $x = 2 and 5;  # ($x = 2) and 5;
  $x = 2 &&  5'  # $x = (2 && 5);

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to