On Wed, May 02, 2001 at 06:29:51PM +0200, Bart Lateur wrote:
> On Wed, 2 May 2001 17:05:31 +0100, Graham Barr wrote:
> 
> >wantarray-ness is already passed along the call stack today. Thats
> >the whole point of it. So what is the difference in passing a number
> >instead of a boolean ?
> 
> Because you might have a wantarray situation that expects no values?
> 
>       () = whateveryouwant();

I am sure that situation is handled by the 'want' RFC. I have not
read it recently, but I suspect in this case want('LIST') would
return that magical "0 but true" or something similar.

> You can always expect one more than is on the LHS.
> 
> How is this currently handled with split()?

split is special cased when it's assignment is directly to a list
of known length. The current perl does not pass wanted list lengths
around.

Graham.

Reply via email to