On Fri, 2002-09-20 at 04:14, Larry Wall wrote:
> On 20 Sep 2002, Simon Cozens wrote:
> : > their names. also if you use a scalar to grab something which is in a
> : > quantified outer rule what is put in the var? a ref to a list of the
> : > grabbed things?
> : 
> : *nod* Something I'd like to know.
> 
> Yes, in fact any list forced into scalar context will make a ref in Perl 6:
> 
>     $arrayref = (1,2,3);

Is that "any list" as oppopsed to "any array"? Or is that arrayref in a
numeric context the length of the array? In other words does this do
what I think I think it does?

        $shouldbe3 = (1,2,3) + 0;

-- 
Aaron Sherman <[EMAIL PROTECTED]>

Reply via email to