Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: YAML::Tiny can't handle &... and *... constructs
[YAML::Tiny 1.21] Yes, I know, YAML::Tiny implements only a subset of YAML. But its goal seems also to be able to read META.yml. Unfortunately, META.yml could have constructs which are not readable by YAML::Tiny. See this script: use YAML::Tiny qw(); use YAML qw(); use Data::Dumper; my $req = {Module => 1.0}; my $meta = {build_requires => $req, configure_requires => $req}; my $yml = YAML::Dump($meta); warn Dumper(YAML::Tiny::Load($yml)); #warn Dumper(YAML::Load($yml)); __END__ Possible solutions: - implement &... and *... in YAML::Tiny - or have the META.yml specification changed so that it states that META.yml should not be written as YAML, but as a subset of YAML Regards, Slaven
Resolved by the latter of those two options. The META.yml spec is going to be changed.