in reply to Perl YAML \n error

Have you tried adding a newline to your YAML input?