in reply to Re: Re: Can PERL know a line without matching?
in thread Can PERL know a line without matching?

Ok, it is becoming a little more clear.

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

  • Comment on Re: Re: Re: Can PERL know a line without matching?