> > Because you might have a wantarray situation that expects no values?
> >
> > () = whateveryouwant();
>
> I am sure that situation is handled by the 'want' RFC.
Yep. The most recent version is at:
http://www.yetanother.org/damian/Perl5+i/want.html
> I have not read it recently, but I suspect in this case
> want('LIST') would return that magical "0 but true" or something
> similar.
No. It provides this information as (want)[1] or want->{COUNT}.
But more frequently, the programmer herself would provide the information:
if (want 3) {...}
Damian
Thread Previous
|
Thread Next