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--

using 'xor' in place of '^' seems to work also--- another response by
John W. Krahn [EMAIL PROTECTED] ::

>At the bit level
>they work the same as the example above.

(referering to using "and" "or" "xor" vs "&" "|" "^" etc...)

>  If you use them on numbers or
>strings they modify each bit of the number or string according to the
>example above.

>perldoc perlop


i will have to go over this documentation more thoroughly, i can now use the
tool- but understanding it is another thing entirely.  

thanks much  :)

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

Reply via email to