in reply to Help required in optimizing the output (PERL)
Let's assume the text to search is in a text file. Since randomid is treating the text as paragraphs, typing "perldoc perlvar" and reading about $INPUT_RECORD_SEPARATOR aka $/ will be instructive. Especially what happens when you set it to "\n\n".
And then read about $INPUT_LINE_NUMBER aka $. to see how to easily get the paragraph number.
Then read something like searching for keywords to get an idea of how to search for various keywords in text. Now getting all the useful info out of that thread will take a little more than a simple copy and paste, but one will learn a little in the process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help required in optimizing the output (PERL)
by BrowserUk (Patriarch) on Jun 22, 2010 at 03:29 UTC | |
by randomid (Initiate) on Jun 22, 2010 at 15:12 UTC | |
by BrowserUk (Patriarch) on Jun 22, 2010 at 15:49 UTC | |
by BrowserUk (Patriarch) on Jun 22, 2010 at 20:08 UTC | |
by choroba (Cardinal) on Jun 22, 2010 at 23:04 UTC | |
by BrowserUk (Patriarch) on Jun 23, 2010 at 00:52 UTC |