in reply to Premature End-of-File - Scope problems?
It's because this line:
foreach my $line (<FILE_FD>) { # pull records from replay file
is reading every line from the file into memory.
You should read only as far as you need to each time.
For example:
while (my $line = <FILE_FD>) { # just read a line at a time
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Premature End-of-File - Scope problems?
by bratwiz (Sexton) on Feb 15, 2007 at 00:43 UTC |