Subject: | Hash keys are not always escaped |
Try the following:
%Hash = ( 'AVE,' => { '??' => { '?? => 1 } } );
DumpFile( "file.yml", \%Hash );
$hashref = LoadFile( "file.yml" );
YAML is not escaping 'AVE,' by putting quotes around it, so there's an error. If I manually edit the file to put single quotes around it, it works.