http://www.perlmonks.org?node_id=945709


in reply to Problem using YAML

You can't get rid of ---, but what about like this?

DumpFile("test.yaml", { test => \%test })

DumpFile can't see the name of the variable you used, so you have to put that in the datastructure itself.