develooper Front page | perl.perl6.users | Postings from October 2019

Re: Match operator: error with any() junction and user-defined $_topic variable

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
October 12, 2019 03:33
Subject:
Re: Match operator: error with any() junction and user-defined $_topic variable
Message ID:
f0593fd8-d3b1-a9c3-22b5-a6f10457512d@zoho.com
On 10/11/19 8:09 PM, William Michels via perl6-users wrote:
> Hi Todd, Per the REPL, $x looks to be a List:
> 
> mbook:~ homedir$ perl6
> To exit type 'exit' or '^D'
>>
>> my $x = (44,66)
> (44 66)
>> say $x.WHAT
> (List)
>> say $x.^name
> List
>>
>> my $y = < 55 77 >
> (55 77)
>> say $y.WHAT
> (List)
>> say $y.^name
> List
>>
>> say $*VM
> moar (2019.07.1)
> 
> HTH, Bill.
> 
> 

>>> HTH, Bill.
>>
>> Sweet.  Love examples.  Thank you!
>>
>> Question:  what type is "my $x = (44, 66)".   An array?


$ p6 'my List $x = (44,66); say $x;'
(44 66)

:-)


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About