Re: lines :$nl-in question

2020-08-28 Thread Tobias Boege
On Fri, 28 Aug 2020, ToddAndMargo via perl6-users wrote: >https://docs.raku.org/type/IO::Path#method_lines > >(IO::Path) method lines > >Defined as: > >method lines(IO::Path:D: :$chomp = True, :$enc = 'utf8', :$nl-in = > ["\x0A", "\r\n"], |c --> Seq:D) > >Opens the invocant

Re: lines :$nl-in question

2020-08-28 Thread ToddAndMargo via perl6-users
On 2020-08-28 18:49, Paul Procacci wrote: |c slurps the remaining arguments into c and passese those arguments to the lines method of IO::Handle. I do not understand

Re: lines :$nl-in question

2020-08-28 Thread Paul Procacci
:nl-in is a named parameter that defines what the method lines would consider as line endings. It defines "\x0A", "\r\n" as the default. Example: % echo "Hi, Frank." > test.txt ; echo "What's up?" >> test.txt ; echo '"test.txt".IO.lines(:nl-in).say' > test.pl6 ; perl6 ./test.pl6 (Hi, Fr nk. Wh t

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread ToddAndMargo via perl6-users
On 2020-08-25 16:46, ToddAndMargo via perl6-users wrote: On 2020-08-25 16:18, William Michels via perl6-users wrote: Reposting this from Rakudo Weekly News: 2020.34 Another Survey Time [by liztormato] "It's that time of the year again! Time for the yearly Raku User Survey! Please fill in the s

lines :$nl-in question

2020-08-28 Thread ToddAndMargo via perl6-users
Hi All, In the following: https://docs.raku.org/type/IO::Path#method_lines (IO::Path) method lines Defined as: method lines(IO::Path:D: :$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c --> Seq:D) Opens the invocant and returns its lines. The behavior is equ

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread ToddAndMargo via perl6-users
On 2020-08-28 07:49, Brad Gilbert wrote: Now with all of that said, it is little wonder why Todd has difficulties with the function descriptions where others don't. I also think that if we just replaced what we have for something that works for Todd it might make it more difficult for others.

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread ToddAndMargo via perl6-users
On 2020-08-28 03:57, Tom Browder wrote: On Thu, Aug 27, 2020 at 20:41 ToddAndMargo via perl6-users wrote: On 2020-08-27 16:53, Daniel Long Sockwell wrote: Very few of the other [methods are documented] this way. Todd, I have one more suggestion: Why don't you put your "keepers" on Github? S

Re: Extended identifiers in named attributes

2020-08-28 Thread Marcel Timmerman
Hi Ralph, Thanks for your answer. The name 'attributes' was wrong, I meant 'arguments'. Sorry for that. I was working on XML files and mixed up some terms. I don't think you're supposed to be able to have extended identifiers as named parameter/argument identifiers. They are meant for a few spe

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread yary
Right after sending I saw that the semicolon wasn't the issue, sorry! The second half of my message is correct I think. The command reads a line at a time, then calls lines()[3,2,5] on that single line which has no lines after the zeroth. tee hee, zeroth is a word! -y On Fri, Aug 28, 2020 at 10

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread William Michels via perl6-users
I remove the semicolon, and it throws an error: $ cat test_lines.txt | raku -ne 'my $x=$_; say $x for $x.lines()[3,2,5] -> $i {say $i;}' ===SORRY!=== Error while compiling -e Unexpected block in infix position (missing statement control word before the expression?) at -e:1 --> my $x=$_; say $x

Re: Extended identifiers in named attributes

2020-08-28 Thread yary
I wonder what was intended with these extended identifiers? https://github.com/Raku/problem-solving/issues/224* - Extended identifiers-why and where, exactly?* -y On Fri, Aug 28, 2020 at 8:26 AM Ralph Mellor wrote: > I don't think you're supposed to be able to have extended identifiers > as nam

Re: Readline package

2020-08-28 Thread Daniel ”Fooist” Lathrop
10-4 cpan:fooist it is. Sent from my iPhone Daniel Lathrop (@lathropd) Mobile: (206) 718-0349 PGP key: https://keybase.io/lathropd (raw) > On Aug 28, 2020, at 9:51 AM, Ralph Mellor wrote: > >  >> >> You can alter to whatever (it just needs to be a string... > > Larry may comment, but in

Re: Extended identifiers in named attributes

2020-08-28 Thread Ralph Mellor
I don't think you're supposed to be able to have extended identifiers as named parameter/argument identifiers. They are meant for a few specific scenarios where there's special value in having adverbs aka pairs embedded in identifiers: * Alternations in grammars. Typically of form `foo:sym`. * Ap

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread Andy Bach
>> Without any arguments, sub lines operates on $*ARGFILES, which >> defaults to $*IN in the absence of any filenames. > Be careful with that one, $*IN will lop of the first line if you are not > careful. I think you're talking about mixing $*IN with the "-n" option # raku -e 'say join(", ", $*I

Re: Readline package

2020-08-28 Thread Ralph Mellor
> You can alter to whatever (it just needs to be a string... Larry may comment, but in case not, or, if he does, to save him some time and give him something to correct, here's my take on what he specified^H^H^H^H^Hulated. @Larry defined the auth to be a URI. Quoting https://en.wikipedia.org/wi

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread Brad Gilbert
Daniel, the thing about Todd is that his brain doesn't process the written word the way most people do. That is according to him by the way. He is under the assumption that it is because of how he was taught to read. I think the issue is different. I think that he might be on the Autistic Spectru

Re: Raku User's Survey 2020 out now....

2020-08-28 Thread Tom Browder
On Thu, Aug 27, 2020 at 20:41 ToddAndMargo via perl6-users wrote: > On 2020-08-27 16:53, Daniel Long Sockwell wrote: > >> Very few of the other [methods are documented] this way. Todd, I have one more suggestion: Why don't you put your "keepers" on Github? Several advantages: 1. easy to change

perl6-us...@perl.org, sanfrancisco...@pm.org

2020-08-28 Thread Joseph Brenner
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams of the Raku Study Group. https://us02web.zoom.us/j/88495193366?pwd=TXpMSlVqaVVGMm52SWlvSmRrZXFBUT09 Password: 4RakuRoll Note: we're still using that earlier start time: 1pm in California. This make