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
operator, but you can use it directly. The
operator is discussed in more detail in I/O Operators.