Thanks Sean. Made some progress. I like this result better:
~$ raku -e 'put "1\n2\n3";' | raku -e 'lines.map(*.contains(/ \h /)).put;' False False False Thx, Bill. On Thu, Jan 26, 2023 at 12:12 PM Sean McAfee <eef...@gmail.com> wrote: > On Thu, Jan 26, 2023 at 12:05 PM William Michels via perl6-users < > perl6-us...@perl.org> wrote: > >> ~$ raku -e 'put "1\n2\n3";' | raku -e 'put lines.contains(/ \h /) ?? True >> !! False;' >> True >> > > lines() returns a Seq. The contains method for a Seq coerces its argument > to a Str and calls contains on that Str. And: > > $ raku -e 'put "1\n2\n3"' | raku -e 'put lines.Str' > 1 2 3 > > There's your horizontal whitespace. > >