Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
On Tue, Jan 21, 2020, 12:16 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: They did not give me > the link to report it. > JJ's very first comment: "You would probably want to raise this issue in the zef repo itself ." The words "zef repo itself" are

Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
On Mon, Jan 20, 2020, 11:48 PM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2020-01-20 15:23, Philip Hazelden wrote: > > Since you continue to insult the maintainers, > > What a bunch of crap! It was only one person > and I don't think he meant any h

Re: my first two doc issues

2020-01-20 Thread Philip Hazelden
Since you continue to insult the maintainers, I will step in to defend them: the response you got to 145 was perfectly reasonable. You were told that you opened it in the wrong place, which you argued with, and you were told where you should have opened it instead, which you ignored. The problem

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

2019-12-09 Thread Philip Hazelden
(Apologies, forgot to reply all.) On Mon, Dec 9, 2019 at 1:47 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi Phillip, > Have you ever been to an IEEE seminar and attended a lecture > on a subject that you have intimate knowledge on hoping > to pick up some additional tips.

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: Is there a bash/shlex-like processor with double-quotes handling?

2017-07-14 Thread Philip Hazelden
If you haven't yet, you might want to look into a CSV parser. I think that if you configure one of those to split on whitespace, that should give you the results you want. (Now with added reply all.) On Fri, 14 Jul 2017, 08:42 Mark Carter, wrote: > Is there a function

Re: How to I create a file?

2017-03-21 Thread Philip Hazelden
> $PathAndName.IO.f or $PathAndName.IO.open(:w).close; Note, the following sequence is possible: 1. .IO.f returns false 2. Someone creates the file and writes some data to it 3. .IO.open truncates the file Thus, this has a chance of editing the file. I suggest instead (untested):

Re: order of input using Capture

2016-01-11 Thread Philip Hazelden
You're passing `a` as a named arg, and `e` as a positional arg. .list only returns the positional args, and .elems only counts those. You can use .hash to get the named args. Alternatively, if you replace `a=>1` with `(a=>1)` or `'a'=>1`, it should show up in the .list and .elems counts. See:

Re: release?

2015-12-31 Thread Philip Hazelden
Note that if we want scripts to be interpreter-agnostic, the perl6 binary needs to exist for #! purposes. So renaming it would be bad, but a simlink would work. On Thu, Dec 31, 2015 at 2:27 PM Brock Wilcox wrote: > On Tue, Dec 29, 2015 at 11:39 AM, webmind

Re: grep changes?

2015-10-02 Thread Philip Hazelden
Grep still accepts a regex, so `grep /\.pl6/, ` does what you want. On Fri, Oct 2, 2015 at 5:12 PM mt1957 wrote: > Hi, > noticed that grep doesn't accept a Match operation anymore > In repl ... > > > grep { /\.pl6/ }, > Method 'match' not found for invocant of class 'Any' >

Re: Default args in custom constructor

2015-09-05 Thread Philip Hazelden
Oh, I'd been intending to explore that before sending but forgot. Thanks. I currently think that's the best alternative to duplicating defaults, but still more verbose and less intuitive than I'd hope for. On Sat, Sep 5, 2015 at 12:57 AM Timo Paulssen wrote: > Have you

Formatting in Pod declarator blocks

2015-08-26 Thread Philip Hazelden
Synopsis 26 http://design.perl6.org/S26.html#Declarator_blocks says of declarator blocks: A declarator can have multiple leading and/or trailing Pod comments, in which case they are concatenated with an intermediate newline when their object's .WHY return value is stringified But the current

Re: Proposed new string methods: trim-rw, trim-leading-rw, trim-trailing-rw

2015-08-14 Thread Philip Hazelden
Correct me if I'm wrong, can't you do $s .= trim ? On 12:45pm, Fri, 14 Aug 2015 Tom Browder tom.brow...@gmail.com wrote: In an earlier thread of mine on this list seeking help, Liz mentioned one string method that has now been dcoumented, 'substr-rw', which allows in-place modification of a

Re: Bag with explicit 0 elements?

2015-03-01 Thread Philip Hazelden
So FWIW, I think the interface I'd like to use is one where there's nothing special about 0 values. You can put them in and they'll stay there, and if (+) results in an element with value 0, that stays there too. But if you ask for the value of something which doesn't have an explicit value,

Bag with explicit 0 elements?

2015-02-28 Thread Philip Hazelden
I'm trying to represent something of the form I've chosen one member of this group, three members of that group, and nobody from the other group. A Bag seems right for this, except that if I want to get the list of groups, it doesn't seem to include the one with nobody:

Re: (Rakudo 2014.04) 'item %h' working differently between REPL and interpreter?

2014-05-07 Thread Philip Hazelden
Thanks! I guess I'm kind of lucky for this bug, otherwise I might have taken a lot longer to figure out what to do. :) On Wed, May 7, 2014 at 4:44 AM, Larry Wall la...@wall.org wrote: On Sun, May 04, 2014 at 10:40:16AM +0100, Philip Hazelden wrote: : Hi, : : I'm trying to create a one

(Rakudo 2014.04) 'item %h' working differently between REPL and interpreter?

2014-05-04 Thread Philip Hazelden
Hi, I'm trying to create a one-element array containing a hash. I eventually managed to do this from the REPL, but when I create a script containing the same commands, it doesn't work. $ cat test.p6 my %h = (y = 1, x = 1); say [item %h].elems; say [item %h][0].WHAT; $ perl6