[MacPerl-AnyPerl] Let perl replase words

2006-10-07 Thread Eelco Alosery
Hello, I have a small, (maby big) problem. Im writing a search script for my site, and wand to do some replacing of words. I have a string that contains for example this : Test this is a smal test script line. Now i have a search patern : test What i want to do is this. Test and test must

[MacPerl-AnyPerl] Re: Let perl replase words

2006-10-07 Thread Chris Sarnowski
On Oct 7, 2006, at 2:59 PM, Eelco Alosery wrote: Hello, I have a small, (maby big) problem. Im writing a search script for my site, and wand to do some replacing of words. I have a string that contains for example this : Test this is a smal test script line. Now i have a search patern :

Re: [MacPerl-AnyPerl] Let perl replase words

2006-10-07 Thread Jeff Lowrey
$head =~ s/($replace)/$1<\/u>/gi;