in reply to Perl Read-Ahead I/O Buffering
You assume incorrectly. Perl will use the underlying IO routines (stdio or PerlIO or what not) to read chunks of the file in and will return just up to the next record separator at a time. Until this behind the scenes buffer is emptied (presuming the chunk read was large enough to contain up until the subsequent record separator) no disk IO will occur.
|
|---|