For simpler syntaxes, give YAML::Tiny a try. It's designed to read and write YAML-style files with as little code as possible. It has two functions that I think that you can use. The Dump function turns Perl data into YAML, and the Load function turns YAML data into Perl data.