in reply to How to match pattern and next 5 lines?
Two words: "stepwise refinement."
I understand that you are having some difficulty figuring this out, but starting from a top-down approach and doing stepwise refinement will allow you to arrive at your answer. Then, if your code does not work, you can post what you have and monks would be much more willing to help. If this sounds unfamiliar, you should read about stepwise refinement in this famous introduction by Niklaus Wirth.
In the meantime, this kind of looks like a homework problem. My suspicions are aroused.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to match pattern and next 5 lines?
by cacharbe (Curate) on Apr 06, 2002 at 22:57 UTC | |
|
Re: Re: How to match pattern and next 5 lines?
by tstock (Curate) on Apr 06, 2002 at 21:40 UTC |