http://qs321.pair.com?node_id=801097

NorthShore44 has asked for the wisdom of the Perl Monks concerning the following question:

Monks- I'm running a program that searches for a text match within a txt file and I'm currently able to pull the text after the match, but how can I adjust my code to also pull text before the match? I'm currently able to pull the twenty lines of text after the match, but how can I pull, say twenty lines of text before the match as well? Thanks!