in reply to Searching for a string in a text and printing the next few lines

So, where is your problem?

This site is about learning and using Perl. It is is not a script writing site where you post your specifications and get fully functional scripts in return. So please, post the code you have written, and tell us where exactly you encounter problems and what you've tried so far to solve them and how it failed for you.

  • Comment on Re: Searching for a string in a text and printing the next few lines

Replies are listed 'Best First'.
Re^2: Searching for a string in a text and printing the next few lines
by sierpinski (Chaplain) on Nov 12, 2009 at 15:47 UTC
    This is one of the reasons why I love this site. It very much seemed to me like a homework/interview question.
    Before you go asking for help, at least try it yourself!
    /\ Sierpinski