in reply to I still can't get only the necessary lines from the file.

Sorry ,My mistake.I have the correct line in my code's unless. \* Exit context \* The problem is that in print results I get lines that are not between the closest "Start context" and "* end context *". I suspect that maybe the problem is in this line: if (/Start context/ .. /\* End Context \*/) which IMHO takes all the lines between the first "Start context" in the file and last "* end context *" . Am I right? Or the line: if (/Start context/ .. /\* End Context \*/) looks for the closest "Start context" and "* End context *" Thanks
  • Comment on Re: I still can't get only the necessary lines from the file.