in reply to Re: Re: Optimizing a script
in thread Optimizing a script
for( $above_post ) {s/lines/records/g; s/single line/single record/g} # </pedantic>
Update: Never mind me, I misread and thought this was in reply to the original post which was processing by records. However if you do the record processing it's more state you have to keep up with yourself rather than letting perl handle it for you. Not to mention that reading by lines isn't necessarily going to protect you from malformed input any better (for example someone sends you a multi-meg file with Mac \cM line endings . . .).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Optimizing a script
by aquarium (Curate) on Apr 19, 2004 at 13:25 UTC |