Re: How to I modify what is a new line in lines?

2020-08-31 Thread ToddAndMargo via perl6-users
On 2020-08-31 18:54, William Michels via perl6-users wrote: On Mon, Aug 31, 2020 at 6:07 PM ToddAndMargo via perl6-users wrote: On 2020-08-31 17:21, yary wrote: First part of my previous email on this thread! Re-read this bit First, you were looking at the docs for Path's "lines", but you

Re: How to I modify what is a new line in lines?

2020-08-31 Thread William Michels via perl6-users
On Mon, Aug 31, 2020 at 6:07 PM ToddAndMargo via perl6-users wrote: > > On 2020-08-31 17:21, yary wrote: > > First part of my previous email on this thread! Re-read this bit > > > >> First, you were looking at the docs for Path's "lines", but you are > >> using a string "lines" and those docs say

Re: How to I modify what is a new line in lines?

2020-08-31 Thread ToddAndMargo via perl6-users
On 2020-08-31 17:21, yary wrote: First part of my previous email on this thread! Re-read this bit First, you were looking at the docs for Path's "lines", but you are using a string "lines" and those docs say multi method lines(Str:D: $limit, :$chomp = True) multi method lines(Str:D: :$chomp

Re: How to I modify what is a new line in lines?

2020-08-31 Thread yary
First part of my previous email on this thread! Re-read this bit > First, you were looking at the docs for Path's "lines", but you are > using a string "lines" and those docs say > > multi method lines(Str:D: $limit, :$chomp = True) > multi method lines(Str:D: :$chomp = True) > > Files get

Re: How to I modify what is a new line in lines?

2020-08-31 Thread ToddAndMargo via perl6-users
On 2020-08-30 08:42, yary wrote: You were close! First, you were looking at the docs for Path's "lines", but you are using a string "lines" and those docs say multi method lines(Str:D: $limit, :$chomp = True) multi method lines(Str:D: :$chomp = True) Files get "nl-in" due to the special

Re: How to I modify what is a new line in lines?

2020-08-30 Thread Brad Gilbert
$file.IO.lines( :nl-in(…), :chomp, … ) is actually short for $file.IO.open( :nl-in(…), :chomp ).lines( … ) On Sun, Aug 30, 2020 at 10:43 AM yary wrote: > You were close! > > First, you were looking at the docs for Path's "lines", but you are using > a string "lines" and those docs say

Re: How to I modify what is a new line in lines?

2020-08-30 Thread yary
You were close! First, you were looking at the docs for Path's "lines", but you are using a string "lines" and those docs say multi method lines(Str:D: $limit, :$chomp = True) multi method lines(Str:D: :$chomp = True) Files get "nl-in" due to the special case of text files having various line

How to I modify what is a new line in lines?

2020-08-30 Thread ToddAndMargo via perl6-users
Hi All, https://docs.raku.org/type/IO::Path#method_lines method lines(IO::Path:D: :$chomp = True, :$enc = 'utf8', :$nl-in = ["\x0A", "\r\n"], |c --> Seq:D) How do I change what lines sees as a new line. Is it :$nl-in? A tab in this case. Some of my missteps: $ p6 'my $x="a\tb\tc\td\t";