Hi,

is there a possibility to recognize multiple keys while
reading a hash using YAML?

example:

arr= YAML::load("aaa: 1\nbbb: 2\naaa: 3" )
=> {"aaa"=>3, "bbb"=>2}

but I would like to get a warning or an exception when
encountering the key 'aaa' for the second time, and not just
get the first entry overwritten.

Any ideas?

--
Artur