Re: Is there another way to define a regex?

2016-01-18 Thread Nelo Onyiah
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

Re: Is there another way to define a regex?

2016-01-18 Thread Gianni Ceccarelli
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?

Re: Workaround for Perl 5's __DATA__

2016-01-18 Thread Tom Browder
On Mon, Jan 18, 2016 at 6:47 AM, Kamil Kułaga wrote: > You may be happy with =finish block ... Thanks, Kamil! -Tom

'!' versus 'not' in boolean expression

2016-01-18 Thread Tom Browder
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 '!'

Re: Workaround for Perl 5's __DATA__

2016-01-18 Thread Kamil Kułaga
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 >

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread yary
In Perl5, there's "&&" vs "and", "||" vs "or", "^" vs "xor", and "!" vs "not", the difference being precedence. Perhaps it's the same with Perl6...

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread Elizabeth Mattijsen
> 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

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread James Ellis Osborne III
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

Re: '!' versus 'not' in boolean expression

2016-01-18 Thread Tom Browder
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 >> --- >> >>>