I am looking in the documentation what the ^ = assigment operator does.
The only thing I can find so far:
Other assignment operators work in a similar way. The following are recognized: **= += *= &= &.= <<= -= /= |= |.= >>= ||= .= %= ^= ^.= //= &&=
Other assignment operators work in a similar way. The following are recognized:
**= += *= &= &.= <<= -= /= |= |.= >>= ||= .= %= ^= ^.= //= &&=
What is the result $c ^= $r;?
$c ^= $r;
Perl ^=uses syntactic sugarfor xor operator
^=
$xor_sum = $xor_sum ^ $i;
can be rewritten as
$xor_sum ^= $i;
Every time you see a Perl expression of a form:
$l op= $r;
It can be rewritten as:
$l = $l op $r;
(Well, I say “anytime,” but there are probably exceptions. There are always exceptions in Perl, but I can't think about it now.)
Source: https://habr.com/ru/post/1676352/More articles:babel-preset-expo does not work with reaction settings and es2015 - javascriptFacebook together with user parameters with API version 2.9 - facebookIs there any difference between waiting for the last asynchronous call and just returning it? - c #ORACLE: quick update on a materialized view that does not work with OUTER JOIN in some conditions - sqlCalculate status bar height / actual browser height in Android browser using pure javascript? - javascriptDeclaration and difference between prototype - cReturn an empty array instead of null - c #AWS RDS retention period longer than specified in instance settings - amazon-rdswhy do we need to do a side check for google recaptcha? - spring-bootIs this clojure.core.match error or is it just me? - pattern-matchingAll Articles