Forum Moderators: coopster & phranque
I've just started learning Perl and the maths part is confusing me.
Say I have $value, which is equal to 75 (or any integer), how would I perform mathematical sums on this? e.g. - + * /
$value = 75 $value2 = 25 $value3 = $value + $value2 $value4 = $value - $value2
this means $value3 = 100 and $value4 = 50
I am getting the support I was promised, brilliant!
$value = 75 $value += 25
$value now contains 100. the second line is equivalent to $value = $value + 25