in reply to Search between two words in a file
One way would be to read each paragraph into a single variable
(either by setting $/ or by appending line to the variable until you get to the end of the paragraph), then simply match using something like $paragraph=~/FROM(something wild)WHERE/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Search between two words in a file
by Happy-the-monk (Canon) on Jun 14, 2004 at 11:58 UTC | |
Re^2: Search between two words in a file
by Anonymous Monk on Jun 15, 2004 at 05:51 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
In Section
Seekers of Perl Wisdom