in reply to Out of memory problem when copying contents of file into array
sub perform { # do per line processing to avoid out-of-memory error. open( FILE, "< ./file.txt" ) or die "Can't open : $!"; while (my $line = <FILE>) { processLine(chomp($line)); } close FILE; } sub processLine { my $line=shift; # etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Out of memory problem when copying contents of file into array
by chromatic (Archbishop) on Feb 19, 2005 at 07:37 UTC |