in reply to Re^5: wantarray - surprise behaviour
in thread wantarray - surprise behaviour

Well, no. That's a case of a list in scalar or list context. I quote from perlop about the assignment operator.

a list assignment in list context produces the list of lvalues assigned to, and a list assignment in scalar context returns the number of elements produced by the expression on the right hand side of the assignment.