in reply to Reading from/writing to files with variables substitutions
suggestion: it's best if you use 3 arg opens
like:
open(FILE, ">>", "filename.txt"); [download]