Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-07 Thread William Michels via perl6-users
Apologies, looks like the smartmatch operator is listed in the Operator Precedence table (15th row: under "Chaining infix"): https://docs.raku.org/language/operators#Assignment_operators However, am I correct in stating that the assignment operator ("=") is on the 19th row ("Item assignment")?

Re: My keeper on hashes

2019-12-07 Thread William Michels via perl6-users
On Sat, Dec 7, 2019 at 9:36 PM ToddAndMargo via perl6-users wrote: > > On 2019-12-07 18:30, Mark Senn wrote: > >> Corrected section > >> > >> my %h = a => "x", b=>"r", c=>"z"; > >> if %h { say "exists"; } else { say "DOES NOT exist"; } > >> DOES NOT exist > >> > >>

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-07 Thread William Michels via perl6-users
Wow Brad, that's interesting and informative. I haven't seen the S/// operator before, so I had to look it up. On the first page I found the docs say (quite informatively): "S/// uses the same semantics as the s/// operator, except it leaves the original string intact and returns the resultant

Re: My keeper on hashes

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-07 18:30, Mark Senn wrote: Corrected section my %h = a => "x", b=>"r", c=>"z"; if %h { say "exists"; } else { say "DOES NOT exist"; } DOES NOT exist if %h { say "exists"; } else { say "DOES NOT exist"; } exists Hi. The following code prints

Perl6 vs Julia

2019-12-07 Thread Tom Blackwood
Hello How do you think of Julia language? https://en.wikipedia.org/wiki/Julia_(programming_language) It says it is also influenced by perl language. Regards

Re: looking for good project to learn perl6

2019-12-07 Thread Tom Blackwood
Hello William, We are actually a small team making the primary job for big data/machine learning etc. We know nothing about mailing list gateway and NNTP stuff. But thanks for your suggestion, I will take a took at the references you provided. Regards Tom On Sun, Dec 8, 2019 at 3:30 AM William

Re: My keeper on hashes

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-06 16:15, ToddAndMargo via perl6-users wrote: Checking for the presence of a key/value:    my %h = a => "x", b=>"r", c=>"z";    if %h { say "exists"; } else { say "DOES NOT exist"; }    DOES NOT exist    if %h { say "exists"; } else { say "DOES NOT exist"; }

Re: looking for good project to learn perl6

2019-12-07 Thread William Michels via perl6-users
Hi Tom, My vote would be for someone to take on the task of writing "mailing-list" software in Raku/Perl6, and/or writing "mailing-list-archiving" software (e.g. an NNTP server) in Raku/Perl6. First of all, for your group this would be a relatively-high profile project, with the potential for

Re: Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-07 Thread JJ Merelo
El sáb., 7 dic. 2019 a las 17:24, Philip Hazelden (< philip.hazel...@gmail.com>) escribió: > On Sat, Dec 7, 2019 at 12:04 PM ToddAndMargo via perl6-users < > perl6-users@perl.org> wrote: > >> On 2019-12-07 03:00, Tom Browder wrote: >> > Forgot to reply to all. >> > >> > -- Forwarded

Re: Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-07 Thread Philip Hazelden
On Sat, Dec 7, 2019 at 12:04 PM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-07 03:00, Tom Browder wrote: > > Forgot to reply to all. > > > > -- Forwarded message - > > From: *Tom Browder* mailto:tom.brow...@gmail.com > >> > > Date: Sat, Dec 7, 2019 at

Re: Precedence: assignment vs smartmatch? (...was Re: where is my map typo)

2019-12-07 Thread Brad Gilbert
The return value of s/// is the same as $/ If you want the resulting string instead you can use S/// instead. > $_ = 'abc' > my $r = S/b/./ > say $r a.c Note that it warns you try to use S/// with ~~ > my $r = 'abc' ~~ S/b/./ Potential difficulties: Smartmatch

Re: How do I do literal quotes in a regex?

2019-12-07 Thread Brad Gilbert
The shortcut spelling of Q[…] is to use 「 and 」 (U+FF62 and U+FF63) my $x = 「\:\\::」; ( my $y = $x ) ~~ s/ 「\\」 /x/; say $y \:\\:: The case could be made that \Q[\\] should work as well. (It would need to be added). (Along with \q[…] and \qq[…]) Note that \Q[…] doesn't work in string

Re: My pop ups for windows module

2019-12-07 Thread Tom Browder
On Sat, Dec 7, 2019 at 05:41 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > I wrote and extensive module for pop up in Windows. Todd, you need to publish your module to the Raku module ecosystem. Many people, including myself, want to see an easily-installable module

Re: Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-07 03:59, ToddAndMargo via perl6-users wrote: On 2019-12-07 03:00, Tom Browder wrote: Forgot to reply to all. -- Forwarded message - From: *Tom Browder* > Date: Sat, Dec 7, 2019 at 04:58 Subject: Raku, docs, help [was: Re: vulgar?] To:

Re: Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-07 03:00, Tom Browder wrote: Forgot to reply to all. -- Forwarded message - From: *Tom Browder* mailto:tom.brow...@gmail.com>> Date: Sat, Dec 7, 2019 at 04:58 Subject: Raku, docs, help [was: Re: vulgar?] To: ToddAndMargo mailto:toddandma...@zoho.com>> On Fri, Dec 6,

My pop ups for windows module

2019-12-07 Thread ToddAndMargo via perl6-users
Hi All, I wrote and extensive module for pop up in Windows. It does not contain a time out option. Maybe some day I will work on the timer function. Thank you all for helping me with various parts of this! There are basically two subs to import WinMsg and WinPopUp Here are some one

Re: vulgar?

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-07 01:42, Elizabeth Mattijsen wrote: Well, for one you seem to have missed the fact that RT is no longer used to report bugs in Rakudo. So I'd argue, yes, you do appear*not* to know how to report bugs. I haven't reported any in a while to Perl 6, so I you won't find any of my

Re: vulgar?

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-07 01:37, Elizabeth Mattijsen wrote: On 7 Dec 2019, at 01:17, ToddAndMargo via perl6-users wrote: Oh and not to beat a dead horse, but perl 5's perldocs wipes raku's docs face. Now, that is what *I* call vulgar. Interesting. It means it outdoes you by quiet a bit. Another way

Fwd: Raku, docs, help [was: Re: vulgar?]

2019-12-07 Thread Tom Browder
Forgot to reply to all. -- Forwarded message - From: Tom Browder Date: Sat, Dec 7, 2019 at 04:58 Subject: Raku, docs, help [was: Re: vulgar?] To: ToddAndMargo On Fri, Dec 6, 2019 at 23:23 ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-06 18:34, Tom

Re: vulgar?

2019-12-07 Thread Elizabeth Mattijsen
> On 7 Dec 2019, at 00:30, ToddAndMargo via perl6-users > wrote: > What makes you think I do not know how to use > the bug reporting system? Well, for one you seem to have missed the fact that RT is no longer used to report bugs in Rakudo. So I'd argue, yes, you do appear *not* to know how to

Re: vulgar?

2019-12-07 Thread Elizabeth Mattijsen
> On 7 Dec 2019, at 01:17, ToddAndMargo via perl6-users > wrote: > Oh and not to beat a dead horse, but perl 5's perldocs > wipes raku's docs face. Now, that is what *I* call vulgar. > So it is possible to write > a doc reference that serves both the developer and > the user. Raku just does

Re: restricted value passed to a sub question

2019-12-07 Thread ToddAndMargo via perl6-users
On 2019-12-04 00:40, ToddAndMargo via perl6-users wrote: Hi All, I am cooking up something where I want top pass a value to a sub, but I want to restrict what those values are. For instance, things like    AbortRetryIgnore    CancelRetryContinue    Help    YesNo    Maybe And so on and