in reply to
Print next N lines after a pattern is matched.
Your question is unclear. What if the next diff is after N+2 lines? I think your question is one of:
Print the next N lines after a match.
Print all lines between two matches.
But it's unclear to me which of the two you want.
Comment on
Re: Print next N lines after a pattern is matched.
In Section
Seekers of Perl Wisdom