in reply to Reading 60k lines in file
while (my $line = <MYINPUTFILE>){ ... }
is probably trying to read the whole file into @lines and _then_ loop over it. The while will read one line at a time.foreach $line (@lines){ ... }
Update
Better, check that $h[3] and $h[4] actually contain what you think they do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading 60k lines in file
by b_gsmls (Initiate) on Oct 08, 2009 at 16:18 UTC |