On Mon, Jan 18, 2016 at 1:37 PM, Elizabeth Mattijsen wrote:
>> On 18 Jan 2016, at 19:55, Tom Browder wrote:
>> In creating some new Perl 6 programs I've run across several instances
>> I'm confused about, to wit:
>>
>> Example 1
>> ---
>>
>>> my %h; say 'false' if !%h:exists;
>> Unexp
Too many Reimanns & Not enough role?
-jas
On 18 January 2016 at 11:37, Elizabeth Mattijsen wrote:
>
>> On 18 Jan 2016, at 19:55, Tom Browder wrote:
>>
>> In creating some new Perl 6 programs I've run across several instances
>> I'm confused about, to wit:
>>
>> Example 1
>> ---
>>
>
> On 18 Jan 2016, at 19:55, Tom Browder wrote:
>
> In creating some new Perl 6 programs I've run across several instances
> I'm confused about, to wit:
>
> Example 1
> ---
>
>> my %h; say 'false' if !%h:exists;
> Unexpected named parameter 'exists’ passed
Yeah, this is an unexpect
In Perl5, there's "&&" vs "and", "||" vs "or", "^" vs "xor", and "!"
vs "not", the difference being precedence. Perhaps it's the same with
Perl6...
In creating some new Perl 6 programs I've run across several instances
I'm confused about, to wit:
Example 1
---
> my %h; say 'false' if !%h:exists;
Unexpected named parameter 'exists' passed
Example 2
---
> my %h; say 'false' if not %h:exists;
false
It looks like '!' d
On Mon, Jan 18, 2016 at 6:47 AM, Kamil Kułaga wrote:
> You may be happy with =finish block
...
Thanks, Kamil!
-Tom
Curious but are the non capturing groups necessary?
On 17 Jan 2016 11:35 p.m., "Tom Browder" wrote:
> On Sun, Jan 17, 2016 at 3:03 PM, Moritz Lenz wrote:
> > On 01/17/2016 06:07 PM, Tom Browder wrote:
> ...
> >> # regex of dirs to ignore
> >> my regex dirs {
> >> \/home\/user\/\.cpan |
> >>
On 2016-01-17 Tom Browder wrote:
> My question: Is there a way to have Perl 6 do the required escaping
> for the regex programmatically, i.e., turn this:
>
> my $str = '/home/usr/.cpan';
>
> into this:
>
> my regex dirs {
> \/home\/usr\/\.cpan
> }
>
> automatically?
Yes! And it's also sim
You may be happy with =finish block
use v6;
say $=finish.split("\n").perl;
=finish
_
I like pancakes
And apples
On Sat, Jan 16, 2016 at 8:07 PM, Tom Browder wrote:
> I have tried this in my Perl 6 code (v6.c):
>
> =begin DATA
> blah
> blah2
> =end DATA
>
> Then:
>
> fo
On Sunday, January 17, 2016, Nelo Onyiah wrote:
> Curious but are the non capturing groups necessary?
>
I don't know the answer for the Perl 6 construct but I think the grouping
is required in the Perl 5 equivalent. But I certainly may be wrong. Now
that you mention it, I think you are probably
10 matches
Mail list logo