in reply to postincrement bug(?) in for

G'day rsFalse,

I don't know what your question is. You got a syntax error; you fixed the syntax; the error went away.

See "perlop: Auto-increment and Auto-decrement". It shows a couple of examples of whitespace between the operator and operand. These are followed by:

"Perl will not guarantee what the result of the above statements is."

You should also use these pragmata:

If you had wanted to operate on the value(s) from for, that may have alerted you to the fact that $i was the wrong variable and you should have been using $_. See "perlsyn -- Perl Syntax".

— Ken

Replies are listed 'Best First'.
Re^2: postincrement bug(?) in for
by rsFalse (Chaplain) on Dec 29, 2016 at 12:18 UTC
    Thanks for answers.