The address of $varible, which contains the value 22, is SCALAR(0x55d283691438) Look at that! $variable now equals 25 the sum of 5 and 2 is 7 and the difference is 3 the sum of 9 and 2 is 11 and the difference is 7