in reply to Re^2: Optimizing with wantarray
in thread Optimizing with wantarray

I'm not sure what you mean.

The LHS of an assignment determines whether the assignment is a scalar assignment or a list assignment, which are entirely separate operations even though they are both spelled with "=".

And based on the type of assignment operation, the RHS is evaluated in a list context or a scalar context.

That's the way it works. Now if you could explain your question in terms of that, I'd be happy to answer. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.