[Solved] Meaning of the ‘+=’ operator


It is adding the value of $receipt to the value of $receipts{$weather} and storing the result back into $receipts{$weather}. It is the equivalent of:

$receipts{$weather} = $receipts{$weather} + $receipt

However, it may be implemented more efficiently in some cases.

1

solved Meaning of the ‘+=’ operator