will read one line, and in list context$line = <$file>;
will read all of them, even if the file is terabytes in size. Is there a simple and efficient way to read "several" lines, passing a limit to the number it reads at a time?@lines = <$file>;
In reply to reading several lines in a gulp by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |