Hi
I am having a bit of a problem working out operator precedence in the follow expression, the output of which is 0.
I realize ++$value2 is incremented immediately so both ++$value2s should now contain 3,
and $value1-- is not decremented immediately so contains 8, which should make the expression
8 % 3 * 3 which when run mysteriously returns 6, 8 / 3 has remainder 2, 2 * 3 = 6, I had a look at a perl operator
precedence chart, which said * is before % this would make the expression 8 % 9

Code:
$value1 = 8;
$value2 = 2;
$value3 = $value1-- % $value2 * ++$value2;
print ($value3);

output: 0
I also tried to see how it calculated by enclosing the expression in double quotes which returned the following -

Code:
print "$myvar1-- % $myvar2 * ++$myvar2";

output:  8-- % 2 * ++282