in reply to Problem using YAML
You can't get rid of ---, but what about like this?
DumpFile can't see the name of the variable you used, so you have to put that in the datastructure itself.