in reply to Re^3: Will "$_[0]=shift" always resolve shift first?
in thread Will "$_[0]=shift" always resolve shift first?

My example shows that precedence has no effect on the operator evaluation order.

Not quite true. * is evaluated before +. (Which makes a difference for overloaded operators)

And since associativity breaks ties in precedence, how could it possibly have any effect on the operator evaluation order if precedence doesn't.
You're right here. After reading betterworld's comment I thought that the right associativity of the = operator was the key, but it isn't. It seems to be just a special case for =.

Replies are listed 'Best First'.
Re^5: Will "$_[0]=shift" always resolve shift first?
by ikegami (Patriarch) on Sep 08, 2008 at 22:55 UTC
    Sorry for the confusion. I said "operator" where I meant "operand" earlier. I keep mistyping it. I corrected myself in time elsewhere, but missed that one. It's now fixed, so you may want to reread it.