> From: Pablo Fischer <[EMAIL PROTECTED]> > > I have in $myvar a BIG HTML Text. I need to change some values to > > others. > > > > For example, in one part I have > > > > <b>Come and discover the OpenSource ###1###</b> > > > > I need to change all the ###1### values for $name, so It will be: > > > > <b>Come and discover the OpenSource pablo</b> > > > > if the content of $name its "pablo". > > > > I have tried with > > > > $myvar =~ s/\###1###/$name; > > I believe the actuall code looks like this, right? > > $myvar =~ s/\###1###/$name/; > > You are missing a /g at the end to make sure you replace ALL > occurances even if there are several on one line. And you do not need > the backslash there: > > $myvar =~ s/###1###/$name/g; > This way will do it but have you looked at The Template Toolkit? Take a look at it on cpan. Very cool of rthis sort of thing.
HTH Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
