in reply to Perl 'how to' question
Yeah, as you see from the first post, this comes down to two basic concerns: first, identifying the lines that you are interested in; then, splitting them.
If you have not yet plunged into the world of Perl regular expressions, take a little time-out and do so now.