in reply to Matching and order of evaluation
Both constructs are safe.
Justification: If it were not so, $x = $x + 1; would also be unsafe.