in reply to
Pattern match....
So basically you want to grab the first block, right? If yes, count the number of times you've seen a line made of dashes, and if that number is between one and two, print the line.
If you want more specific help, show us what you've tried so far.
Comment on
Re: Pattern match....
In Section
Seekers of Perl Wisdom