Yes, you're right, it is a Seq. I was trying to be pedagogical, but probably wasn't very accurate. It is a Seq, and the "slurping" will be lazy.
Le mar. 9 oct. 2018 à 15:30, Curt Tilmes <c...@tilmes.org> a écrit : > On Tue, Oct 9, 2018 at 9:27 AM Laurent Rosenfeld via perl6-users < > perl6-us...@perl.org> wrote: > >> This: >> my $f = $fh.lines; >> will slurp all the lines into $f (but you can still access the individual >> items with something like $f[4]). >> > > Is that true? I supposed that it would hold the Seq as a scalar > (un-iterated) Seq. > > I know that my @f = $fh.lines will slurp it all, but I thought you could > avoid that by assigning it to a scalar. > > Curt > >