On Fri, 01 Sep 2000 07:30:54 -0600, Tom Christiansen wrote:

>   % man perldata
>
>       List assignment in a scalar context returns the number of
>       elements produced by the expression on the right side of
>       the assignment:
>
>           $x = (($foo,$bar) = (3,2,1));       # set $x to 3, not 2

And not 1, either.

>           $x = (($foo,$bar) = f());           # set $x to f()'s return count

Does that answer your own previous question?

To be consistent, "scalar list" should return the number of elements.

-- 
        Bart.

Reply via email to