If you have a string that is going to need escaping, consider using /\Q$string\U/ to handle quoting regex special chars.
Right -- but that should be \E (for "end") instead of \U (the mnemonic for which is "uppercase", not "unquote").
% perl -le 'print "\Qxxx\Uyyy"' xxxYYY
-- Steve
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>