in reply to treating * as a normal character in a regex

First, you want to use /\Q$line\E/. Second, why are you doing if (/$x/) { s/$x/$y/g } instead of the simpler s/$x/$y/g?

_____________________________________________________
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:??;