in reply to Parsing very big files GB
How long are the lines in the file? Unless they are extremely long what you have shown should be fine. Are you sure you are not leaking memory in the loop or accumulating data in the loop? As a sanity check you might like to try:
open my $fh,... while (<$fh>) { } close $fh;
and check that that runs correctly. Assuming it does, start adding back the contents of the while loop and see where the problem happens. If it doesn't run correctly (terminate cleanly) you need to rethink what constitutes a line and possibly come back for more advice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing very big files GB
by goibhniu (Hermit) on Aug 31, 2007 at 06:50 UTC |