develooper Front page | perl.perl6.users | Postings from October 2018

Re: eof ?

Thread Previous | Thread Next
From:
Curt Tilmes
Date:
October 9, 2018 13:30
Subject:
Re: eof ?
Message ID:
CAMv20O-ZBVzw6ZJYstdQQCkTUiq2tH9fs6yFpethWzZgzdBS9A@mail.gmail.com
On Tue, Oct 9, 2018 at 9:27 AM Laurent Rosenfeld via perl6-users <
perl6-users@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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About