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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Text match
by kennethk (Abbot) on Oct 14, 2009 at 14:40 UTC | |
Re: Text match
by rovf (Priest) on Oct 14, 2009 at 14:34 UTC | |
Re: Text match
by lima1 (Curate) on Oct 14, 2009 at 15:18 UTC |
Back to
Seekers of Perl Wisdom