Pazzeo has asked for the wisdom of the Perl Monks concerning the following question:

Hello everybody,

I have a problem using YAML, in particular I want to save the values with also the hash variable name.

Example in my code I have the following code:
use YAML qw'DumpFile LoadFile'; . . . DumpFile("test.yaml", \%test);
In the generated test.yaml I have always the following information:
--- key1: value1 key2: value2
But I would like to have the following datas:
test: key1: value1 key2: value2

In particular I would substitute the --- with the name of hash variable.

How could I generate this output in the file? Is it possible? Thanks in advance Pazzeo