Re: Running out of memory

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 01:35:05PM +0100, John Edwards wrote: > open ( FWLOG, "./logfile.010626"); > > while() { # Reads one line at a time into memory > ... > } > > @data = ; # Reads the whole file into memory > > You are replicating the second case, by reading the file a line at a time, > the

RE: Running out of memory

2001-07-10 Thread John Edwards
IIRC open ( FWLOG, "./logfile.010626"); while() { # Reads one line at a time into memory ... } @data = ; # Reads the whole file into memory You are replicating the second case, by reading the file a line at a time, then splitting into an array, you are creating a massive array which will be me