in reply to Re^3: Will "$_[0]=shift" always resolve shift first?
in thread Will "$_[0]=shift" always resolve shift first?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Will "$_[0]=shift" always resolve shift first?
by ikegami (Patriarch) on Sep 09, 2008 at 01:57 UTC | |
by GrandFather (Saint) on Sep 09, 2008 at 03:16 UTC |