http://www.perlmonks.org?node_id=667685


in reply to file handles and file input

Use perldoc -q when in doubt. perldoc -q file and perldoc -f readline in this case.