On Jan 30, Nikola Janceski said:

>What's the difference between the following:
>
>! and not
>|| and or
>&& and and

Precedence.  See 'perlop'.  Basically:

  $x = 10 and 20;

sets $x to 10 (and warns that '20' is a useless use of a constant in void
context), whereas:

  $x = 10 && 20;

sets $x to 20.

-- 
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 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


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

Reply via email to