You need to keep every line in the block, probably by assigning each line as an element of an array. After you determine that a text block is the one you want, you can print each line you want from the array, or all of them. How you decide to print a given line could be done with a regex or grep or other possiblities. If you can't get it to work now, post some code, and we'll give you pointers.
Scott
In reply to Re: Re: Re: Can PERL know a line without matching?
by scain
in thread Can PERL know a line without matching?
by brassmon_k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |