in reply to AutoMagic HTML
I have some replacements to perform on a text file which are best done as line-by-line processing on the file.
I have some more which are best done as applying patterns to a block of text which happens to contain newlines.
I could slurp it into an array, work on the array and do some, then join it and work on the others, or start by slurping into one big file and do it with multi-line regexes, which is best?
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: AutoMagic HTML
by Skeeve (Parson) on Jun 24, 2003 at 06:08 UTC | |
by Cody Pendant (Prior) on Jun 24, 2003 at 07:02 UTC | |
by sgifford (Prior) on Jun 24, 2003 at 07:07 UTC |