in reply to List context or not?
the value returned by foo is evaluated in an array context
Actually, the = (assignment operator) imposes the context of the 'lvalue' onto the 'rvalue.' That means that since the left side of the = is a scalar ($bar), the right side is evaluated in a scalar context.
|
|---|