in reply to How to read in large files
You're reading the complete file into memory before doing anything. If your program logic allows for this, it's easy to rewrite it by processing the file line-by-line. Change:
foreach my $line (<$readHandle>) {
to
while (defined( my $line= <$readHandle>)) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read in large files
by kennethk (Abbot) on Jan 28, 2016 at 15:50 UTC | |
by davido (Cardinal) on Jan 28, 2016 at 16:42 UTC | |
by Only1KW (Sexton) on Jan 28, 2016 at 17:33 UTC |