in reply to Re^2: Split file, first 30 lines only
in thread Split file, first 30 lines only
but still reads whole file.
thats what get($fullfile)does , read the whole file at once.
and i think @hippo meant
Put it right after $line_count++;. You may Read the whole file via get, but then only PROCESS the beginninglast if $line_count > 29;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Split file, first 30 lines only
by wrkrbeee (Scribe) on Feb 27, 2017 at 23:16 UTC | |
by huck (Prior) on Feb 27, 2017 at 23:24 UTC | |
by wrkrbeee (Scribe) on Feb 27, 2017 at 23:25 UTC | |
by huck (Prior) on Feb 27, 2017 at 23:35 UTC | |
by wrkrbeee (Scribe) on Feb 27, 2017 at 23:46 UTC |