|
|
| P is for Practical | |
| PerlMonks |
Re: Search between two words in a fileby matija (Priest) |
| on Jun 14, 2004 at 10:32 UTC ( #366481=note: print w/ replies, xml ) | Need Help?? |
|
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/;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||