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