Yes, as BrowserUk and Anonymous Monk have said, it is by removing the line:
local $/;
that you circumvent slurping the entire file and revert to the default of reading line-by-line. You will find this explained in the entry for $/ (which is also called $INPUT_RECORD_SEPARATOR) in perlvar.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re^5: Read one line at a time
by Athanasius
in thread READ one line at a time
by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |