Name

getlines

Synopsis

$fh->getlines

Works like <$ fh > when called in an array context to read all the remaining lines in a file, but is more readable. croaks if called in scalar context.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.