My file contains
a: b
d: e
f: a:b:c
g: a
b
c
d
f:g:h
h: d
d:dd:d
J: g,j
How can I parse this file into lefthand side values into one array and right hand side to another array? I tried with split, but I am not able to get it back.
I want to store them into hash.