in reply to Perl script to match a regexp in the prior line and other multiple lines

This might help

Re^2: Grab 3 lines before and 2 after each regex hit (sliding window)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re: Perl script to match a regexp in the prior line and other multiple lines