in reply to Re^2: Prefix and postfix increment/decrement operator query
in thread Prefix and postfix increment/decrement operator query

In my opinion, a lexically scoped $var is a very cheap thing and should be used if there is any doubt about some subsequent statement. I'm not advocating creating extra unnecessary vars, just ones that "add clarity".

I agree with you. I had posted this query because I thought about the expression behaving in a certain manner but it didn't. So it was pure curiosity. Thanks for that addition. I too wouldn't use such ambiguity in my work.

  • Comment on Re^3: Prefix and postfix increment/decrement operator query