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.
In reply to Re^6: wantarray - surprise behaviour
by diotalevi
in thread wantarray - surprise behaviour
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |