I need to create a YAML file to store some configuration data for a Perl script. This seems like it should be really easy but I haven\'t been able to work it out, I think if I h
Try dumping out the configuration you want.
use strict; use warnings; use YAML; my %settings = ( foo => 1, bar => [qw/one two three/], ); print Dump(\%settings);
This prints
--- bar: - one - two - three foo: 1
Also, wikipedia has a good overview of YAML if the specification is a bit too dense.