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

Sorry, but not entirely true. If you remove precedence, then things get evaluated in a different order:

eh? The operands are evaluated in the same order as before (foo then bar then baz). I've said all along precedence wasn't relevant to operand evaluation order, so what is "not entirely true"?

  • Comment on Re^5: Will "$_[0]=shift" always resolve shift first?

Replies are listed 'Best First'.
Re^6: Will "$_[0]=shift" always resolve shift first?
by tilly (Archbishop) on Sep 09, 2008 at 01:02 UTC
    There may be a bit of language confusion here. Mathematically the return of (foo() + bar()) is as much an operand as foo() and bar() are. Those intermediate operands get evaluated in different orders in our two examples.
      Ah! good point.