Skip Menu |

This queue is for tickets about the YAML-Tiny CPAN distribution.

Report information
The Basics
Id: 35322
Status: resolved
Priority: 0/
Queue: YAML-Tiny

People
Owner: Nobody in particular
Requestors: sir_lichtkind [...] sourceforge.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.29
Fixed in: (no value)



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
argh rt destroys indention but if you click on reply you see it. and i think i was too haxty here is the right yaml dump: --- menu_file: - item file-new - '' - menu file_insert_templates - menu file_open: - item file-reload - item file-reload-all - '' - item file-insert - '' - item file-open-dir compared with yaml tiny --- menu_file: - 'item file-new' - '' - 'menu file_insert_templates' - menu file_open: - 'item file-reload' - 'item file-reload-all' - '' - 'item file-insert' thanks
Subject: Re: [rt.cpan.org #35322] serialisation of a hashref as array element
Date: Wed, 23 Apr 2008 17:06:20 +1000
To: bug-YAML-Tiny [...] rt.cpan.org
From: "Adam Kennedy" <adamkennedybackup [...] gmail.com>
Does the data still read/write ok though? Adam K On 23/04/2008, Herbert Breunung via RT <bug-YAML-Tiny@rt.cpan.org> wrote: Show quoted text
> > Queue: YAML-Tiny > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=35322 > > > argh rt destroys indention but if you click on reply you see it. and i > think i was too haxty here is the right yaml dump: > > --- > menu_file: > - item file-new > - '' > - menu file_insert_templates > - menu file_open: > - item file-reload > - item file-reload-all > - '' > - item file-insert > - '' > - item file-open-dir > > compared with yaml tiny > > --- > menu_file: > - 'item file-new' > - '' > - 'menu file_insert_templates' > - > menu file_open: > - 'item file-reload' > - 'item file-reload-all' > - '' > - 'item file-insert' > > thanks >
From: sir_lichtkind [...] sourceforge.net
it does Show quoted text
> Does the data still read/write ok though? > > Adam K >
From: sir_lichtkind [...] sourceforge.net
please give me feedback if you consider that as bug or feature. thanks
From: sir_lichtkind [...] sourceforge.net
i think i found the reason: http://search.cpan.org/~ingy/YAML-0.66/lib/YAML.pm#CompressSeries its that feature and completely you decision to support it, i also really doesnt need it strongly even if its nice for my purposes.
I believe this is dealt with now