in reply to READ one line at a time
The entire file is slurped into $data, due to local $/ (there is even a comment describing that). No wonder your machine runs out of memory... Delete the line with local $/ and test what that does.{ local $/; open (INPUT, "$direct$slash"."$file"); while ($data=<INPUT> ) { ...
(you should know that this code is VERY badly written...)
Also I don't see what those monstrous regexes ($startstring, $endstringhtm) are doing there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: READ one line at a time
by wrkrbeee (Scribe) on Dec 27, 2014 at 16:10 UTC | |
by Athanasius (Archbishop) on Dec 27, 2014 at 16:36 UTC | |
by wrkrbeee (Scribe) on Dec 27, 2014 at 16:40 UTC | |
by Athanasius (Archbishop) on Dec 27, 2014 at 16:49 UTC | |
by wrkrbeee (Scribe) on Dec 27, 2014 at 16:57 UTC | |
by wrkrbeee (Scribe) on Dec 27, 2014 at 17:07 UTC | |
by poj (Abbot) on Dec 27, 2014 at 16:25 UTC | |
by wrkrbeee (Scribe) on Dec 27, 2014 at 16:29 UTC | |
by wrkrbeee (Scribe) on Dec 27, 2014 at 17:08 UTC |