in reply to Quoting strings in regexps

Simply use the \Q escape.
if ($str =~ /\Q$pat/) { ... } if ($str =~ /.\Q$pat\E./) { ... }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;