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.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!