On Jul 29, West, William M said:

>from Gary Stainburn:
>
>>> print "xor1" if ($a = $a) ^ ($b = $c);
>>
>>Presumably this is because you're using the assignment operator and not the
>>comparison operator.
>>
>>print "xor1" if ($a == $b) ^ ($b == $c);
>
>interesting.. a '=' seems to work fine in an 'and' or 'or' statement--

No, they don't.  If they "work fine", it's by accident somehow.  You can't
use = where you mean == and expect it to work properly.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


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

Reply via email to