What is the binary assignment operator used for?
A binary operator takes two pieces of data and combines
them in some way. An example is addition, such as
$balance + $deposit;
An assignment operator evaluates an expression on the
right-hand-side of an equal sign, it then makes the variable
on the left-hand-side equal to the value obtained on the
right-hand-side.
$newbalance = $balance + $deposit;
It often turns out that the same variable is used on the
left-hand-side and right-hand-side of the assignment
operator.
$balance = $balance + $deposit;
where one is using the old value of a variable to determine a
new value for the same variable. This situation occurs so
frequently, there is a shortcut version of it known as
a "binary assignment operator", such as
$balance += $deposit;
Most of the binary opertors have a corresponding binary
assignment operator version. (Learning Perl, p. 27)