mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
I know this must be easy but I just can not get it write:
I need parse a file that is structured like so:
Start: afadffdafadf stuff stuff stuff stuff Close: xzy Start: afadffdafadf stuff stuff stuff stuff Close: xzy Start: afadffdafadf stuff stuff stuff stuff Close: xzy
For each set of Start and Close I need to get 1 line with Start stuff close on one line. The example above I would then need three lines:
Start: afadffdafadf stuff stuff stuff stuff Close: xzyAny suggestions or direction will be greatly appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File parsing question
by stiller (Friar) on Feb 28, 2008 at 19:37 UTC | |
|
Re: File parsing question
by Skeeve (Parson) on Feb 28, 2008 at 20:26 UTC | |
|
Re: File parsing question
by CountZero (Bishop) on Feb 28, 2008 at 21:55 UTC | |
|
Re: File parsing question
by Popcorn Dave (Abbot) on Feb 28, 2008 at 19:34 UTC | |
|
Re: File parsing question
by mmittiga17 (Scribe) on Feb 29, 2008 at 00:38 UTC |