liens and :chomp question

2020-08-29 Thread ToddAndMargo via perl6-users
Hi All, I am trying to figure out how to use line with :$chomp. Now what am I doing wrong? $ alias p6 alias p6='perl6 -e' $ p6 'say "Lines.txt".IO.open.lines(:chomp)[3,2];' (Line 3 Line 2) $ p6 'say "Lines.txt".IO.open.lines(:!chomp)[3,2];' (Line 3 Line 2) I am looking for Line 3 Line 2

Re: lines :$nl-in question

2020-08-29 Thread ToddAndMargo via perl6-users
On 2020-08-29 17:04, ToddAndMargo via perl6-users wrote: On 2020-08-28 23:51, Tobias Boege wrote:    - :$chomp, :$enc, :$nl-in which are passed on to the open call in the first bullet point above, Hi Tobias, I am in process of revising my keeper on lines. May I talk you out of examples

Re: lines :$nl-in question

2020-08-29 Thread ToddAndMargo via perl6-users
On 2020-08-28 23:51, Tobias Boege wrote: - :$chomp, :$enc, :$nl-in which are passed on to the open call in the first bullet point above, Hi Tobias, I am in process of revising my keeper on lines. May I talk you out of examples of the syntax used by :$chomp, :$enc, and :$nl-in? Many

Re: lines :$nl-in question

2020-08-29 Thread ToddAndMargo via perl6-users
On 2020-08-28 23:51, Tobias Boege wrote: 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 -->

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-29 Thread William Michels via perl6-users
Dear Tobias (and Sean), I opened a Github issue: https://github.com/rakudo/rakudo/issues/3881 On Wed, Aug 26, 2020 at 12:12 PM Tobias Boege wrote: > On Wed, 26 Aug 2020, Tobias Boege wrote: > > Observe: > > > > > 1 ...^ 20 > > (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > > > > 1

Re: lines :$nl-in question

2020-08-29 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