in reply to out of memory problem
@data=split (/\s+/,$_); $a=$data[0]; $b=$data[3]; $c=$data[4]; $d=$data[5];
Note that because you don't use "my" here, all these variables will stay in memory even after the loop has finished. If the last line is very long, this might be a memory problem.
Anyway, this code does not look like it is strict. You should fix this, and maybe then you discover more problems in your code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: out of memory problem
by ikegami (Patriarch) on Sep 13, 2008 at 13:00 UTC | |
by betterworld (Curate) on Sep 13, 2008 at 14:16 UTC | |
by ikegami (Patriarch) on Sep 13, 2008 at 15:56 UTC | |
by betterworld (Curate) on Sep 13, 2008 at 20:44 UTC | |
by ikegami (Patriarch) on Sep 13, 2008 at 21:26 UTC | |
by BrowserUk (Patriarch) on Sep 13, 2008 at 21:37 UTC |