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.
In reply to Re: duplicate keys in YAML
by SuicideJunkie
in thread duplicate keys in YAML
by the_dark_lord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |