in reply to Reading variables from a txt file
Yes, you can use require or eval. I'm doing eval in my adventure game demo 980155 although here the file is "obfuscated" as well (base64 encoded) to avoid spoilers.
Remember, this generally unsafe for user supplied content, as this will execute all Perl code in the file, not just the variables (which would still be unsafe).
|
|---|