When does (pre|post)increment happen?

Answer

Perl evaluation order is as follows

Do not rely on all this staying the same in future versions

$n = 1;
print $n / ++$n;
$n = 1;
print $n / $n++;

Brian McCauley's original answer

Next