Hello:
I have a yaml file

key1:
  a: value1
  b: value1
key2:
  a: value2
  b: value2

I want it converted to

a:
    key1:value1
    key2:value2
b:
    key1:value1
    key2:value2

I could use YAML module to load the first yaml file to a hash and
manually populate another hash and dump. But is there a easier way of
doing this I might not be aware of?

Thanks!
Jim


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/



Reply via email to