in reply to Eating RAM problem
sub test_loop_4 { ####### Uses a lot less RAM, but still a lot, because there are 2mil + elems in @all2... ####### A wild guess would be about 20-25*filesize in ramusage open(FILE, $file) or die $!; my $buf = ''; my @all2 = (); while(read FILE,$buf,1) { push @all2,$buf; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Eating RAM problem
by TheFifthDeuce (Novice) on Aug 01, 2002 at 18:47 UTC | |
by Cine (Friar) on Aug 01, 2002 at 19:23 UTC |