Re: how do i update one section of a page leaving rest?




Michele Dondi wrote:
On 26 Oct 2006 12:45:31 -0700, "DJ Stunks" <DJStunks@xxxxxxxxx> wrote:

$page =~ s/$startsection.*?$endsection/;

well I hate to do this, but

Substitution replacement not terminated at -e line 1.

(How do you know it was on -e line 1? Actually it wasn't!! :-)

Why do you hate to do so? We're not here advertise broken code. My
mistake, I stand corrected:

$page =~ s/$startsection(.*?)$endsection/update_section($1)/e;

just because this is a stupid thread started by an even stupider troll
and because I know you know better :)

picking nits,
-jp

.