in reply to duplicate keys in YAML
If you don't have the more fanciful features of YAML in your input, try YAML::Tiny.
Test.plTest.yamluse strict; use warnings; use YAML::Tiny; my $yaml = YAML::Tiny->read('test.yaml');
Results:--- rootproperty: blah section: one: two three: four Foo: Bar one: again empty: ~
D:\>perl test.pl YAML::Tiny found a duplicate key 'one' in line 'again' at test.pl line + 5.
|
|---|