The increment operator is evaluated before the comma operator is, I believe due to higher precedence. It is unwise to mix increment/decrement ops in a statement with other expressions containing their variables. That is explicitly declared undefined behavior in perlop.
See Matching and order of evaluation for a lively and excellent free-for-all on the subject.
After Compline,
Zaxo
In reply to Re: order of arguments evaluated
by Zaxo
in thread order of arguments evaluated
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |