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
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?
On Mon, Jan 18, 2016 at 6:47 AM, Kamil Kułaga wrote:
> You may be happy with =finish block
...
Thanks, Kamil!
-Tom
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 '!'
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
>
In Perl5, there's "&&" vs "and", "||" vs "or", "^" vs "xor", and "!"
vs "not", the difference being precedence. Perhaps it's the same with
Perl6...
> 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
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
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
>> ---
>>
>>>