in reply to Undefined value returned on call to readline (<>)?
EOF or error. Read errors tend to be program errors (e.g. using a closed or unopened handle) rather than actual I/O errors.