Edit by BazB: ucfirst title.
To the Original Poster:
The manuals perldoc perlrequick and perldoc perlre describe it quite well.
You will understand matija's solution after a quick glance into one of them and be able to use it.
$paragraph =~ m/FROM(.*?)WHERE/; # now everything in between is in $1
my $inbetween = $1;
If that still doesn't make much sense, everything else can be found in perldoc perlintro.
Cheers, Sören
perlmonks.org content © perlmonks.org and Anonymous Monk, halley, Happy-the-monk, matija, Not_a_Number
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03