in reply to Text Conversion
But if that's too much, an elegant idea that's half way between this and the pipeline as a separate process/script is to use a tied file handle. Have the "read a line" logic do the continuation, reading one ahead. This isolates the state into the object and doesn't change your main code at all.
—John
|
|---|