develooper Front page | perl.perl6.users | Postings from August 2020

liens and :chomp question

Thread Next
ToddAndMargo via perl6-users
August 30, 2020 05:14
liens and :chomp question
Message ID:
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"[3,2];'
(Line 3 Line 2)

$ p6 'say "Lines.txt"!chomp)[3,2];'
(Line 3 Line 2)

I am looking for

Line 3
Line 2

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About