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
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 --> S
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 th
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 o
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
Ma
On Sat, 29 Aug 2020, ToddAndMargo via perl6-users wrote:
> 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".
Maybe this is what you want?
~$ raku -e 'say "test_lines.txt".IO.lines;'
(Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Line 11)
~$ raku -e 'say "test_lines.txt".IO.lines.join("\n");'
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
~$ raku