Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: readdirChapter 5
Function Reference
Next: Reference: readlink
 

readline

readline *filehandle

Reads a line or lines from the specified filehandle. (A typeglob of the filehandle name should be supplied.) Returns one line per call in a scalar context. Returns a list of all lines until the end-of-file in list context.


Previous: Reference: readdirPerl in a NutshellNext: Reference: readlink
Reference: readdirBook IndexReference: readlink