Hi,
In one of my scripts I do a search and replace like this :
$text =~ s/$search/$replace/;
This works fine, but if $search or $replace contains one or more words
between round brackets () it doesn't what I had in mind :
$text = "This is a text (with brackets)...";
$rearch = "(with brackets)";
$replace = "without brackets";
$text =~ s/$search/$replace/;
print $text;
If I run this example it prints : This is a text (without brackets)...
Where did I go wrong ?
Kind regards,
Rene Verharen
Please DO NOT reply to me personally. I'll get my copy from the list.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]