in reply to Re^2: Print next N lines after a pattern is matched.
in thread Print next N lines after a pattern is matched.

Why are you telling me this? That's not the code I posted.

PS — Please put <c>...</c> tags around computer text (code, data, output, etc).

Replies are listed 'Best First'.
Re^4: Print next N lines after a pattern is matched.
by i5513 (Pilgrim) on Jul 23, 2011 at 16:33 UTC

    Maybe manutd doesn't know <> meaning. It read a line from standard input, and if you have an argument in the command line statement, perl will interpret (by default) that it is a file which has to read as standard input (see perlrun)

    Regards,
      To read from FILE, he just has to change <> to <FILE>.