If you have a file that you want to be treated as code, use do on it, rather than reading it as text. In Perl, strings are just strings, even if they look like Perl code, unless you eval them (and do is essentially the file form of eval).
Caution: Contents may have been coded under pressure.