Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: duplicate keys in YAML

by vinoth.ree (Monsignor)
on Nov 28, 2014 at 05:42 UTC ( [id://1108619]=note: print w/replies, xml ) Need Help??


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.

use strict; use warnings; use YAML::XS qw/LoadFile/; use Data::Dumper; my $config = LoadFile('./config.yaml'); print Dumper($config);
Test.yaml
--- - emailName: ree - emailAddresses: - test@test.com - user@domain.com - credential: username: user1 password: password - credential: username: vinothg password: password
But in your case, you expect the module has to say error on duplicate keys?

All is well

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1108619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found