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.
In reply to •Re^3: Optimizing with wantarray
by merlyn
in thread Optimizing with wantarray
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |