in reply to •Re: Optimizing with wantarray
in thread Optimizing with wantarray

So, this would basically be the difference between the LHS and RHS of the assignment?

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
•Re^3: Optimizing with wantarray
by merlyn (Sage) on Aug 06, 2004 at 07:34 UTC
    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.