in reply to Re^2: Lost in Perl - text file searching and printing
in thread Lost in Perl - text file searching and printing

Thanks again for the input! The text file I am reading in is a couple of paragraphs of text from an article about Perl. One of the lines that the program should find is: Server (PAUSE) and it was happily feeding modules through to the CPAN archive sites. The output of the program, seeing the punctuation at the end, and the word "it" in the line would be : was happily feeding modules through to the CPAN archive sites. My program finds that line now, but it prints the entire line, not just what comes after "it". Any thoughts? Thanks! Eric
  • Comment on Re^3: Lost in Perl - text file searching and printing

Replies are listed 'Best First'.
Re^4: Lost in Perl - text file searching and printing
by CountZero (Bishop) on Jul 24, 2011 at 06:53 UTC
    My program finds that line now, but it prints the entire line, not just what comes after "it". Any thoughts?

    It would surely help if we could see your program.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^4: Lost in Perl - text file searching and printing
by JavaFan (Canon) on Jul 24, 2011 at 08:16 UTC
    My program finds that line now, but it prints the entire line, not just what comes after "it". Any thoughts? Thanks! Eric
    Uhm, the first reply to your original question contains two answers. I know it wasn't invisible, because it received more downvotes than upvotes. But there was no reply to it. If that answer doesn't work for you, please reply to it with specific questions. Thanks! JavaFan