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

From printf documentation:

Don't fall into the trap of using a printf when a simple print would do. The print is more efficient and less error prone.
#!/usr/bin/perl use 5.010; use strict; use warnings; # open for write, append open(my $fh,'>>','c:/temp/test.txt')or die "Can't open file: $!\n"; + print $fh "\n[ARTEC]\n". "IniFile=f:\\vaa\\basis\\vaa01.ini\n" close($fh);