http://www.perlmonks.org?node_id=1026060


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");