perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodney Broom" <rbr...@home.com>
Subject Re: Regex problem
Date Mon, 10 Jul 2000 23:36:25 GMT
The regex engine is seeing extra stuff in $string and thinking that you are
trying to build an expression with it. To get Perl to handle $string as straight
text, you need to quote it like this:

$input =~ s/\Q$string\E/$change/g;

----
Rodney Broom




Mime
View raw message