Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: duplicate keys in YAML

by the_dark_lord (Novice)
on Nov 28, 2014 at 08:51 UTC ( [id://1108627]=note: print w/replies, xml ) Need Help??


in reply to duplicate keys in YAML

This is the sample config file: test1: abc: abc: - sdhfg test1: - def test1: ghi: - sdjfhgsdj - sdgfgsd ghi: - rty - weytr test2: - jkl No i dont have control over the config file. Other users who use my software may have config files with duplicate keys. Such is the case which i want to catch and error out. The structure is very complex to define and there are lot of config files with lots of keys. So will have to form another hash key values and then loop over each task to find its duplicate. This extra processing can be avoided if YAML or any other config file reader gave error for duplicate keys

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found