In the last case ($array[++$x] = ++$x;) both $x pre-increments are evaluated before the content of $x is returned as the value for the RHS (2 is assigned) so at least part of the LHS calculation is performed before the RHS is fully evaluated.
In reply to Re^4: Will "$_[0]=shift" always resolve shift first?
by GrandFather
in thread Will "$_[0]=shift" always resolve shift first?
by kyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |