in reply to An obfuscation script, and a question

I never came up with anything stunning. Perhaps symbolic reference to %ENV and some munging of the strings. For all constant strings I just used a normal double quote operator and each character is octal and hex encoded in turn. The regex uses alternation to either match the right value or die.

${"\145\x6e\166"}{ ... encoded HTTP_HOST } =~ "(?: ... encoded site name.com |(?{die})"</code>