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.
- Re: Change "($one, $two)=" b... Damian Conway
- Re: Change "($one, $two)=" b... Tom Christiansen
- Re: Change "($one, $two)=" b... Nathan Wiger
- Re: Change "($one, $two)=" b... Peter Scott
- Re: Change "($one, $two)=" b... Jeremy Howard
- Re: Change "($one, $two)=" b... Nathan Wiger
- Re: RFC 175 (v1) Add C<list> keyword to forc... Randal L. Schwartz
- Re: RFC 175 (v1) Add C<list> keyword to force lis... Bart Lateur
- Re: RFC 175 (v1) Add C<list> keyword to forc... Tom Christiansen
- Re: RFC 175 (v1) Add C<list> keyword to forc... Tom Christiansen
- Re: RFC 175 (v1) Add C<list> keyword to ... Bart Lateur
- Re: RFC 175 (v1) Add C<list> keyword... Tom Christiansen
- Re: RFC 175 (v1) Add C<list> keyword... Tom Christiansen
- Re: RFC 175 (v1) Add C<list> keyword to forc... John Porter