in reply to Store regular expressions in a file.
If you just wanted to create regular expressions for matching from a file, you could use the qr quoting operator, but don't think that will work for substituting as you appear to want to do - as others have pointed out, you would probably have to use eval for that.
In Section
Seekers of Perl Wisdom