Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks i have a big file form my results with perl.i want to look for words around a specific word in this file.for example if i have a file with following sentences : i am going home they are going school. sam is going to lunch. how can i find words before and after "going" and save it in a hash. with 200 line program ,now,i am totally confusing and need help.:-( thank you.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: find words around a word in a file.
by JavaFan (Canon) on Jul 28, 2011 at 09:33 UTC | |
Re: find words around a word in a file.
by GrandFather (Saint) on Jul 28, 2011 at 10:17 UTC | |
Re: find words around a word in a file.
by moritz (Cardinal) on Jul 28, 2011 at 09:36 UTC | |
Re: find words around a word in a file.
by jethro (Monsignor) on Jul 28, 2011 at 09:30 UTC | |
Re: find words around a word in a file.
by happy.barney (Friar) on Jul 28, 2011 at 09:35 UTC | |
by The Perlman (Scribe) on Jul 29, 2011 at 17:13 UTC | |
Re: find words around a word in a file.
by Not_a_Number (Prior) on Jul 28, 2011 at 18:09 UTC |