in reply to Better way to print text appended to a file "syntax problem"?

To escape the filename you're trying to write, use double backslash:

print MYFILE "IniFile=f:\\vaa\\basis\\vaa01.ini";

To copy the file, use:

use File::Copy copy('c:/temp/test.txt, 'c:/temp/test.txt.orig');