http://www.perlmonks.org?node_id=617125


in reply to Re^2: Why does assignment change the result?
in thread Why does assignment change the result?

I'm fairly sure it's not special cased. It's essentially what you said. (Look at the associativity see how the context propagates and look at the precedence to see who wins :).

Replies are listed 'Best First'.
Re^4: Why does assignment change the result?
by blazar (Canon) on May 23, 2007 at 22:25 UTC

    Yes, but then in the example above, why isn't the rightmost element of the list returned instead of its length? There's no array involved.