Subject: | serialisation of a hashref as array element |
not shure if its a bug or change in spec from 1.0 to 1.1 but the structure
my $a = {
'menu_file' => [
'item file-new',
'',
'menu file_insert_templates',
{'menu file_open' => [
'item file-reload',
'item file-reload-all',
'',
'item file-insert',
],},
],
};
do the original yaml write into:
---
menu_file:
- 'item file-new'
- ''
- 'menu file_insert_templates'
-
menu file_open:
- 'item file-reload'
- 'item file-reload-all'
- ''
- 'item file-insert'
but yaml::Tiny into:
---
menu_file:
- 'item file-new'
- ''
- 'menu file_insert_templates'
-
menu file_open:
- 'item file-reload'
- 'item file-reload-all'
- ''
- 'item file-insert'
please notice the slight but important difference before menu file_open:
or it this just no bug and the preferred way to go
thanks a lot
herbert