Hi,

At 1-10-2001 10:12 -0400, Bob Showalter wrote:

> >     my $wordtodelete = "[Deletethis];
>
>There's a quote missing at the end of this line.

Sorry, typo in my email, not in the script.


>Since your $wordtodelete may or may not include such "meta"
>chars, the best way to do this is to use the \Q sequence in
>your regex. This automatically escapes all following meta
>chars in the regex, if any:
>
>    /\Q$wordtodelete/

This is what I made of it :

    $phrase =~ s/\Q$wordtodelete//i;

I also had to put an "i" at the end to make it case-insensitive.


Thank you, this problem is solved.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to