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.pl
use strict; use warnings; use YAML::Tiny; my $yaml = YAML::Tiny->read('test.yaml');
Test.yaml
--- rootproperty: blah section: one: two three: four Foo: Bar one: again empty: ~
Results:
D:\>perl test.pl YAML::Tiny found a duplicate key 'one' in line 'again' at test.pl line + 5.