in reply to Re^2: Will "$_[0]=shift" always resolve shift first?
in thread Will "$_[0]=shift" always resolve shift first?
It does, unless precedence or associativity gets in your way. Your example demonstrates this quite well:
Not at all. My example shows that precedence has no effect on the operatoroperand evaluation order.
And since associativity breaks ties in precedence, how could it possibly have any effect on the operatoroperand evaluation order if precedence doesn't.
Updated (18:55 EDT): I keep typing "operator" when I try to type "operand"! argh!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Will "$_[0]=shift" always resolve shift first?
by tilly (Archbishop) on Sep 09, 2008 at 00:47 UTC | |
by ikegami (Patriarch) on Sep 09, 2008 at 02:03 UTC | |
by ikegami (Patriarch) on Sep 09, 2008 at 00:54 UTC | |
by tilly (Archbishop) on Sep 09, 2008 at 01:02 UTC | |
by ikegami (Patriarch) on Sep 09, 2008 at 01:08 UTC | |
|
Re^4: Will "$_[0]=shift" always resolve shift first?
by moritz (Cardinal) on Sep 08, 2008 at 22:28 UTC | |
by ikegami (Patriarch) on Sep 08, 2008 at 22:55 UTC |