Front page | perl.perl6.language |
Postings from September 2002
Re: Regex query
From:
John Williams
Date:
September 20, 2002 09:01
Subject:
Re: Regex query
Message ID:
Pine.LNX.4.33.0209200955090.2793-100000@sharkey.morinda.com
On Fri, 20 Sep 2002, Larry Wall wrote:
>
> Yes, in fact any list forced into scalar context will make a ref in Perl 6:
>
> $arrayref = (1,2,3);
That would seem to obviate the need for brackets to define array
references. Is there any case where [1,2,3] would be needed instead of
(1,2,3)?
Also, does "any" list include a list of pairs? Because that would look
more like a hash than a list.
$ref = ( one => 1, two => 2, three => 3);
~ John Williams