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).

Sorry for any bad spelling, broken formatting and missing code examples. During a slight disagreement with my bicycle (which i lost), i broke my left forearm near the elbow. I'm doing the best i can here...