R. Joseph Newton wrote:
>
> The problems with operators may come from the way some characters are used as control
> characters in some contexts.  It might be best to try the qr() [quote-regex] or qm()
> [quotemeta] functions to insure that any control character is properly escaped.

There's not qm() operator Joseph. It's:

    $safe = quotemeta ($string);
or
    $safe = "embedded \Q$string\E call";

where the latter is the same as

    $safe = "embedded " . quotemeta ($string) . " call";

Also, qr() won't protect any metacharacters for you. It's just a chance
to force compilation of a regex away from the (implied or explicit)
binding operators like =~.

Cheers,

Rob




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

Reply via email to