in reply to duplicate keys in YAML
Can you show us your sample confi file?
I am also using YAML file config with same keys, I used to read all the keys as array of hashes.
Test.yamluse strict; use warnings; use YAML::XS qw/LoadFile/; use Data::Dumper; my $config = LoadFile('./config.yaml'); print Dumper($config);
But in your case, you expect the module has to say error on duplicate keys?--- - emailName: ree - emailAddresses: - test@test.com - user@domain.com - credential: username: user1 password: password - credential: username: vinothg password: password
|
|---|