NAME

readline


SYNOPSIS

readline EXPR


DESCRIPTION

Reads from the file handle EXPR. In scalar context, a single line is read and returned. In list context, reads until end-of-file is reache d and returns a list of lines (however you've defined lines with $/ or $INPUT_RECORD_SEPARATOR). This is the internal function implementing the <EXPR> operator, but you can use it directly. The <EXPR> operator is discussed in more detail in I/O Operators.