in reply to Re^9: Scalar context of slice ("list")
in thread Scalar context of slice

Function of operators in question:

Applying precedence and associativity, we get:

  1. Right-most slice (in list context) returns the specified elements.
  2. Left-most slice (in list context) returns the specified elements.
  3. List assignment (in scalar context) returns the number of elements assigned.
  4. Scalar assignment (in list context) returns its LHS.
  • Comment on Re^10: Scalar context of slice ("list")