I need a second pair of eyes

2020-05-25 Thread ToddAndMargo via perl6-users
HI All, I am missing something here: 154: # figure out the label 155: say %CommandLine; 156: if "%CommandLine".starts-with( "[" ) && 157: "%CommandLine".contains( "]" ) { BACKUP:\MyDocsBackup\backup1 Cannot resolve caller index(Str:U: Str:D); none of these signatures match: (L

Re: I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
On 2020-05-25 14:00, Brad Gilbert wrote: In the following the 「:」 makes it so you don't need parenthesis You have created a monster! > my $s="a:c"; say $s.index: ":" 1 :-)

RakudoStar-2020.05 just hit

2020-05-25 Thread ToddAndMargo via perl6-users
Hot off the presses: RakudoStar-2020.05.1.01-win-x86_64-(JIT).msi :-)

Re: I do not understand method":"

2020-05-25 Thread Brad Gilbert
A lambda is a function that doesn't have a name, or a location. my $var = *.raku(); say $var.( Date.today ); # Date.new(2020,5,25) The long way to write that would be: my $var = anon sub ( $_ ) { .raku() }; So this is passing in a function to sort, to calculate the value that

Re: I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
On Mon, May 25, 2020 at 1:24 PM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: Hi All, Looking at the following: > my @things = .sort: *.Version; dd @things; for @things {say $_;} Array @things = ["a1b33", "a1", "a2rc2", "a2.3", "a5.1", "b1a23"] a

Regexps using 'after' and 'before' like ^ and $

2020-05-25 Thread Joseph Brenner
Given this string: my $str = "Romp romp ROMP"; We can match just the first or last by using the usual pinning features, '^' or '$': say $str ~~ m:i:g/^romp/; ## (「Romp」) say $str ~~ m:i:g/romp$/; ## (「ROMP」) Moritz Lenz (Section 3.8 of 'Parsing', p32) makes t

Re: I do not understand method":"

2020-05-25 Thread Brad Gilbert
In the following the 「:」 makes it so you don't need parenthesis (…).sort: … (…).sort(…) The reason there needs to be a space is so it isn't confused for an adverb. 「*.Version」 is a method call turned into a lambda. Basically it creates a lambda where the only thing it does is call a met

I do not understand method":"

2020-05-25 Thread ToddAndMargo via perl6-users
Hi All, Looking at the following: > my @things = .sort: *.Version; dd @things; for @things {say $_;} Array @things = ["a1b33", "a1", "a2rc2", "a2.3", "a5.1", "b1a23"] a1b33 a1 a2rc2 a2.3 a5.1 b1a23 Other than not quite getting the alpha, beta, and release candidate thing down, I do not unde