That's a weird thing to do. You call a function that returns the lines of input as a list, in a context that joins them back together as words, and then try to split the result on lines again.
lines already gives you what you want. Don't split. perl6 -e 'for lines { say "<$_>"; }' On Friday, August 4, 2017, ToddAndMargo <toddandma...@zoho.com> wrote: > Hi All, > > > What am I doing wrong here? > > $ echo -e "abc\ndef\nghi" | perl6 -e 'for ( split "\n", lines ) { say > "<$_>"; }' > > <abc def ghi> > > > I am trying to get > > <abc> > <def> > <ghi> > -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net